Branch Coverage

blib/lib/Device/Modbus/Exception.pm
Criterion Covered Total %
branch 10 10 100.0


line true false branch
21 1 52 unless (exists $args{'function'} or exists $args{'code'})
25 12 53 if (exists $args{'function'} and exists $Device::Modbus::code_for{$args{'function'}}) { }
50 3 elsif (exists $args{'code'} and exists $Device::Modbus::function_for{$args{'code'} - 128}) { }
2 1 elsif (exists $args{'code'}) { }
40 2 61 unless exists $args{'exception_code'} and $args{'exception_code'} > 0 and $args{'exception_code'} <= 4