| blib/lib/Device/Modbus/Exception.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % | 
| condition | 16 | 17 | 94.1 | 
| line | !l | l&&!r | l&&r | condition | 
|---|---|---|---|---|
| 25 | 52 | 1 | 12 | exists $args{'function'} and exists $Device::Modbus::code_for{$args{'function'}} | 
| 1 | 2 | 50 | exists $args{'code'} and exists $Device::Modbus::function_for{$args{'code'} - 128} | |
| 40 | 1 | 1 | 62 | exists $args{'exception_code'} and $args{'exception_code'} > 0 | 
| 2 | 1 | 61 | exists $args{'exception_code'} and $args{'exception_code'} > 0 and $args{'exception_code'} <= 4 | 
| line | l | !l | condition | 
|---|---|---|---|
| 53 | 50 | 2 | $Device::Modbus::function_for{$self->{'code'} - 128} // 'Unknown' | 
| line | l | !l&&r | !l&&!r | condition | 
|---|---|---|---|---|
| 21 | 13 | 0 | 53 | exists $args{'function'} or exists $args{'code'} |