Branch Coverage

blib/lib/Device/Modbus/Client.pm
Criterion Covered Total %
branch 18 18 100.0


line true false branch
94 4 16 if ($code == 1 or $code == 2) { }
6 10 elsif ($code == 3 or $code == 4 or $code == 23) { }
3 7 elsif ($code == 5 or $code == 6) { }
2 5 elsif ($code == 15 or $code == 16) { }
1 4 elsif (grep {$code == $_;} 129, 130, 131, 132, 133, 134, 143, 144, 151) { }
97 1 3 unless $byte_count > 0
113 2 3 unless $byte_count > 0 and $byte_count <= 250 and $byte_count % 2 == 0
128 2 1 if ($code == 5)
129 1 1 if $value