Branch Coverage

blib/lib/Device/RFXCOM/Decoder/Oregon.pm
Criterion Covered Total %
branch 24 24 100.0


line true false branch
132 1 76 unless scalar @$bytes >= 2
137 53 23 unless ($rec)
145 3 20 if ($checksum and not &$checksum($bytes, \@nibbles))
150 1 19 unless ($method)
403 2 22 if (&$sum(\@bytes, \@nibbles))
411 1 36 if ($s == $c)
415 1 36 if ($bytes[$i + 1] == (nibble_sum(1 + $i * 2, \@nibbles) - 10 & 255))
419 1 36 if ($bytes[$i + 1] == (nibble_sum(($i + 1) * 2, \@nibbles) - 10 & 255))
437 1 2 unless $uv_str[$_[0]]
474 1 10 if $$bytes[6] & 8
502 1 1 unless $offset
524 1 11 $battery_low ? :