Condition Coverage

blib/lib/Device/Modbus/RTU.pm
Criterion Covered Total %
condition 17 19 89.4


and 3 conditions

line !l l&&!r l&&r condition
60 5 193428 5 $bytes == 0 and length $buffer > 0
86 0 10746 20 defined $self->{'buffer'} and length $self->{'buffer'} >= $bytes

or 2 conditions

line l !l condition
21 5 2 $self->{'baudrate'} //= 9600
22 1 6 $self->{'databits'} //= 8
23 5 2 $self->{'parity'} //= 'even'
24 1 6 $self->{'stopbits'} //= 1
25 5 2 $self->{'timeout'} //= 10

or 3 conditions

line l !l&&r !l&&!r condition
60 10746 0 193438 $timeout <= 0 or $bytes == 0 and length $buffer > 0