Condition Coverage

blib/lib/AnyEvent/RipeRedis.pm
Criterion Covered Total %
condition 20 63 31.7


and 3 conditions

line !l l&&!r l&&r condition
195 55 14 12 defined $seconds and !&looks_like_number($seconds) || $seconds < 0
383 0 0 0 $type ne '+' and $type ne ':'
508 18 0 7 $self->{'_multi_mode'} and exists $SUBUNSUB_CMDS{$cmd->{'name'}} || exists $NEED_POSTPROCESS{$cmd->{'name'}}
534 0 0 1 exists $SUB_CMDS{$cmd->{'name'}} and not defined $cmd->{'on_message'}
564 0 0 0 defined $self->{'reconnect_interval'} and $self->{'reconnect_interval'} > 0
610 0 0 0 do { $self->{'utf8'} } && do { utf8::encode($token) }
622 0 0 0 defined $self->{'read_timeout'} and not @{$self->{'_processing_queue'};}
649 0 0 0 defined $err and $err->message ne 'ERR Client sent AUTH, but no password is set'
724 0 0 0 $self->{'_channel_cnt'} + $self->{'_pchannel_cnt'} > 0 and ref $reply
0 0 0 $self->{'_channel_cnt'} + $self->{'_pchannel_cnt'} > 0 and ref $reply and exists $MESSAGE_TYPES{$reply->[0]}
763 0 0 0 $cmd->{'name'} eq 'eval_cached' and $err_code == 11
900 11 0 0 $was_connected and defined $self->{'on_disconnect'}
935 8 0 3 not defined $err and @queued_commands
946 11 0 0 %channels and $err_code != 5

or 2 conditions

line l !l condition
105 0 25 $params{'host'} || 'localhost'
106 8 17 $params{'port'} || 6379
113 0 25 $params{'handle_params'} || {}

or 3 conditions

line l !l&&r !l&&!r condition
195 6 6 14 !&looks_like_number($seconds) || $seconds < 0
508 4 3 0 exists $SUBUNSUB_CMDS{$cmd->{'name'}} || exists $NEED_POSTPROCESS{$cmd->{'name'}}
517 0 0 1 $cmd->{'name'} eq 'exec' or $cmd->{'name'} eq 'discard'
858 0 0 0 not defined $cmd->{'reply_cnt'} or --$cmd->{'reply_cnt'} == 0
864 0 0 0 $cmd->{'name'} eq 'info' or $cmd->{'name'} eq 'cluster_info'