Branch Coverage

blib/lib/Device/RFXCOM/RX.pm
Criterion Covered Total %
branch 37 42 88.1


line true false branch
41 3 5 if defined $res
42 1 4 if $$self{'_buf'} ne ''
48 1 5 unless $sel->can_read($timeout)
51 2 3 if defined $timeout
52 0 5 unless ($bytes)
53 0 0 defined $bytes ? :
56 4 1 if defined $res
57 1 4 unless $res
65 3 95 unless $$rbuf
78 1 94 if (exists $$self{'_waiting'} and $header_byte == 77) { }
2 92 elsif (exists $$self{'_waiting'} and $header_byte == 44 || $header_byte == 65) { }
1 91 elsif ($bits == 0) { }
105 0 91 if length $$rbuf < 1 + $length
107 28 63 if ($length != int $length)
117 2 89 if ($entry) { }
123 641 61 unless my $matched = $decoder->decode($self, $msg, \@bytes, $bits, \%result)
143 3 90 if $$result{'dont_cache'}
145 4 86 if ($entry)
146 3 1 if $self->_cache_is_duplicate($entry)
164 0 1 if ($$self{'_buf'} ne '' and $$self{'_last_read'} < $self->_time_now - $$self{'discard_timeout'})
172 2 3 if ($$self{'_last_read'} < $self->_time_now - $$self{'dup_timeout'})