Branch Coverage

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


line true false branch
24 8 8 if ($message->{'type'} eq '$') { }
5 3 elsif ($message->{'type'} eq '*') { }
3 0 elsif (exists $simple_types{$message->{'type'}}) { }
25 6 2 if (defined $message->{'data'}) { }
35 4 1 if (defined $message->{'data'}) { }
76 48 1 unless ($self->{'_curr'}{'type'})
78 5 43 if $pos < 0
89 20 24 if ($self->{'_curr'}{'type'} eq '$') { }
16 8 elsif (exists $simple_types{$self->{'_curr'}{'type'}}) { }
8 0 elsif ($self->{'_curr'}{'type'} eq '*') { }
90 1 19 if ($self->{'_curr'}{'len'} == -1) { }
1 18 elsif (length($$buf) - 2 < $self->{'_curr'}{'len'}) { }
110 1 7 $self->{'_curr'}{'len'} < 0 ? :
113 6 2 if ($self->{'_curr'}{'len'} > 0)
129 4 6 if (@{$parent->{'data'};} < $parent->{'len'}) { }
140 8 25 if (defined $self->{'_on_message_cb'}) { }