Condition Coverage

blib/lib/Protocol/Modbus/Request.pm
Criterion Covered Total %
condition 11 16 68.7


or 2 conditions

line l !l condition
54 30 30 $$self{'_header'} || ''
64 0 54 $$self{'_trailer'} || ''

or 3 conditions

line l !l&&r !l&&!r condition
15 0 12 0 ref $obj || $obj
74 18 0 36 $func == &Protocol::Modbus::FUNC_READ_COILS or $func == &Protocol::Modbus::FUNC_READ_INPUTS
18 18 18 $func == &Protocol::Modbus::FUNC_READ_COILS or $func == &Protocol::Modbus::FUNC_READ_INPUTS or $func == &Protocol::Modbus::FUNC_READ_HOLD_REGISTERS
18 0 18 $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