| blib/lib/Device/Modbus/Exception.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % | 
| branch | 10 | 10 | 100.0 | 
| line | true | false | branch | 
|---|---|---|---|
| 22 | 1 | 53 | unless (exists $args{'function'} or exists $args{'code'}) | 
| 26 | 12 | 54 | if (exists $args{'function'} and exists $Device::Modbus::code_for{$args{'function'}}) { } | 
| 51 | 3 | elsif (exists $args{'code'} and exists $Device::Modbus::function_for{$args{'code'} - 128}) { } | |
| 2 | 1 | elsif (exists $args{'code'}) { } | |
| 41 | 2 | 62 | unless exists $args{'exception_code'} and $args{'exception_code'} > 0 and $args{'exception_code'} <= 4 |