Condition Coverage

blib/lib/Protocol/Redis.pm
Criterion Covered Total %
condition 44 50 88.0


and 3 conditions

line !l l&&!r l&&r condition
258 1 6 2 $message->{'data'} != 0 and $message->{'data'} == $message->{'data'} * 2
314 0 0 4 $message->{'type'} eq "." and $message->{'_parent'}
0 0 4 $message->{'type'} eq "." and $message->{'_parent'} and $message->{'_parent'}{'_argument'} eq "?"
366 20 82 4 $message->{'type'} eq "\$" and $message->{'_argument'} eq "?"
374 80 0 9 $message->{'type'} eq "=" and $message->{'data'} =~ s/^(.{3})://s

or 2 conditions

line l !l condition
47 3 9 $cb || \&Protocol::Redis::_gather_messages
109 78 2 $self->{'_message'} ||= {}
296 165 1 $self->{'_message'} ||= {}
448 91 7 $parent->{'_elements'} || 0

or 3 conditions

line l !l&&r !l&&!r condition
20 2 0 4 $self->{'api'} == 1 or $self->{'api'} == 2
2 1 3 $self->{'api'} == 1 or $self->{'api'} == 2 or $self->{'api'} == 3
198 5 2 32 $message->{'type'} eq "*" or $message->{'type'} eq "~"
7 1 31 $message->{'type'} eq "*" or $message->{'type'} eq "~" or $message->{'type'} eq ">"
13 3 14 exists $simple_types{$message->{'type'}} or $message->{'type'} eq "("
388 3 6 40 $message->{'type'} eq "%" or $message->{'type'} eq "|"
395 4 40 5 $message->{'_argument'} eq "?" or $message->{'_argument'} > 0
431 8 18 86 $parent->{'type'} eq "%" or $parent->{'type'} eq "|"
448 14 58 40 $parent->{'_argument'} eq "?" or ($parent->{'_elements'} || 0) < $parent->{'_argument'}