Branch Coverage

blib/lib/Device/Modbus/Serial.pm
Criterion Covered Total %
branch 5 10 50.0


line true false branch
17 0 2 unless exists $self->{'port'}
28 0 2 unless $serial
41 2 0 if ($self->{'baudrate'} < 19200) { }
48 0 2 unless $serial->write_settings
83 0 12 unless defined $self->{'buffer'} and length $self->{'buffer'} >= $bytes