blib/lib/Protocol/Modbus/Request.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
branch | 8 | 10 | 80.0 |
line | true | false | branch |
---|---|---|---|
51 | 6 | 54 | if (@_) |
61 | 0 | 54 | if (@_) |
74 | 36 | 18 | if ($func == &Protocol::Modbus::FUNC_READ_COILS or $func == &Protocol::Modbus::FUNC_READ_INPUTS or $func == &Protocol::Modbus::FUNC_READ_HOLD_REGISTERS or $func == &Protocol::Modbus::FUNC_READ_INPUT_REGISTERS) { } |
13 | 5 | elsif ($func == &Protocol::Modbus::FUNC_WRITE_COIL) { } | |
5 | 0 | elsif ($func == &Protocol::Modbus::FUNC_WRITE_REGISTER) { } |