Condition Coverage

blib/lib/Device/Modbus/Serial.pm
Criterion Covered Total %
condition 9 19 47.3


and 3 conditions

line !l l&&!r l&&r condition
59 2 0 2 $bytes == 0 and length $buffer > 0
83 0 0 12 defined $self->{'buffer'} and length $self->{'buffer'} >= $bytes

or 2 conditions

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

or 3 conditions

line l !l&&r !l&&!r condition
59 0 4 0 $timeout <= 0 or $bytes == 0 and length $buffer > 0