Condition Coverage

blib/lib/AnyEvent/Redis/RipeRedis.pm
Criterion Covered Total %
condition 18 54 33.3


and 3 conditions

line !l l&&!r l&&r condition
143 0 46 0 not exists $hdl_params->{$name} and defined $params{$name}
270 0 0 1 exists $SUB_CMDS{$cmd->{'kwd'}} and not defined $cmd->{'on_message'}
310 63 30 0 defined $seconds and !&looks_like_number($seconds) || $seconds < 0
495 0 0 0 $type ne '+' and $type ne ':'
616 0 0 0 defined $self->{'min_reconnect_interval'} and $self->{'min_reconnect_interval'} > 0
659 0 0 0 defined $self->{'encoding'} and &is_utf8($token)
670 0 0 0 defined $self->{'read_timeout'} and not @{$self->{'_processing_queue'};}
759 0 0 0 $self->{'_channel_cnt'} > 0 and ref $reply
0 0 0 $self->{'_channel_cnt'} > 0 and ref $reply and exists $MSG_TYPES{$reply->[0]}
819 18 0 0 $_[1] == 11 and defined $cmd->{'script'}
908 14 0 0 $was_connected and defined $self->{'on_disconnect'}
934 12 0 2 not defined $err_msg and @unfin_cmds
940 6 0 8 defined $self->{'on_connect_error'} and $err_code == 1
947 14 0 0 %channels and $err_code != 5

or 2 conditions

line l !l condition
125 0 30 $params{'host'} || 'localhost'
126 12 18 $params{'port'} || 6379
141 0 23 $params{'handle_params'} || {}

or 3 conditions

line l !l&&r !l&&!r condition
310 6 6 18 !&looks_like_number($seconds) || $seconds < 0
806 0 0 0 not defined $cmd->{'replies_cnt'} or --$cmd->{'replies_cnt'} <= 0