Branch Coverage

blib/lib/Protocol/Redis/Faster.pm
Criterion Covered Total %
branch 30 32 93.7


line true false branch
20 3 13 if ($message->{'type'} eq '+' or $message->{'type'} eq '-' or $message->{'type'} eq ':') { }
8 5 elsif ($message->{'type'} eq '$') { }
5 0 elsif ($message->{'type'} eq '*') { }
28 6 2 if (defined $data) { }
40 4 1 if (defined $data) { }
78 44 1 unless ($curr->{'type'})
80 5 39 if $pos < 0
88 20 20 if ($curr->{'type'} eq '$') { }
12 8 elsif ($curr->{'type'} eq '+' or $curr->{'type'} eq '-' or $curr->{'type'} eq ':') { }
8 0 elsif ($curr->{'type'} eq '*') { }
89 1 19 if ($curr->{'len'} == -1) { }
1 18 elsif (length($$buf) - 2 < $curr->{'len'}) { }
109 1 7 $curr->{'len'} < 0 ? :
112 6 2 if ($curr->{'len'} > 0)
128 4 6 if (@{$parent->{'data'};} < $parent->{'len'}) { }
139 4 25 if (defined $cb) { }