Condition Coverage

blib/lib/Redis/ClusterRider.pm
Criterion Covered Total %
condition 12 18 66.6


and 3 conditions

line !l l&&!r l&&r condition
367 0 9 0 $self->{'refresh_interval'} > 0 and Time::HiRes::tv_interval($self->{'_refresh_timestamp'}) > $self->{'refresh_interval'}
380 1 0 0 $cmd_info->{'movablekeys'} and $args->[1] > 0
396 2 1 4 $allow_slaves &&= $cmd_info->{'readonly'}

or 3 conditions

line l !l&&r !l&&!r condition
154 2 2 6 not &looks_like_number($seconds) or $seconds < 0
367 1 0 9 not defined $self->{'_slots'} or $self->{'refresh_interval'} > 0 and Time::HiRes::tv_interval($self->{'_refresh_timestamp'}) > $self->{'refresh_interval'}
469 1 0 2 $err_code eq 'MOVED' or $err_code eq 'ASK'