Branch Coverage

blib/lib/Protocol/Redis.pm
Criterion Covered Total %
branch 29 34 85.2


line true false branch
13 0 1 if ref $class
17 0 1 unless $self->{'api'} == 1
44 9 8 if ($message->{'type'} eq '$') { }
5 3 elsif ($message->{'type'} eq '*') { }
3 0 elsif (exists $simple_types{$message->{'type'}}) { }
45 7 2 if (defined $message->{'data'}) { }
54 4 1 if (defined $message->{'data'}) { }
93 50 3 unless ($message->{'type'})
94 0 50 if ($pos < 1)
104 14 39 if (exists $simple_types{$message->{'type'}}) { }
29 10 elsif ($message->{'type'} eq '$') { }
10 0 elsif ($message->{'type'} eq '*') { }
109 4 25 if ($message->{'_argument'} eq '-1') { }
22 3 elsif (length $$buffer >= $message->{'_argument'} + 2) { }
122 1 9 if ($message->{'_argument'} eq '-1') { }
126 8 1 if ($message->{'_argument'} > 0)
144 10 8 if (@{$parent->{'data'};} < $parent->{'_argument'}) { }