Branch Coverage

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


line true false branch
24 9 8 if ($message->{'type'} eq '$') { }
5 3 elsif ($message->{'type'} eq '*') { }
3 0 elsif (exists $simple_types{$message->{'type'}}) { }
25 7 2 if (defined $message->{'data'}) { }
35 4 1 if (defined $message->{'data'}) { }
76 60 3 unless ($self->{'_curr'}{'type'})
78 6 54 if $pos < 0
89 29 28 if ($self->{'_curr'}{'type'} eq '$') { }
18 10 elsif (exists $simple_types{$self->{'_curr'}{'type'}}) { }
10 0 elsif ($self->{'_curr'}{'type'} eq '*') { }
90 4 25 if ($self->{'_curr'}{'len'} == -1) { }
3 22 elsif (length($$buf) - 2 < $self->{'_curr'}{'len'}) { }
109 1 9 $self->{'_curr'}{'len'} < 0 ? :
112 8 2 if ($self->{'_curr'}{'len'} > 0)
128 10 8 if (@{$parent->{'data'};} < $parent->{'len'}) { }
139 8 28 if (defined $self->{'_on_message_cb'}) { }