| blib/lib/Device/Modbus/RTU.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| branch | 12 | 14 | 85.7 |
| line | true | false | branch |
|---|---|---|---|
| 18 | 1 | 7 | unless exists $self->{'port'} |
| 29 | 0 | 7 | unless $serial |
| 42 | 6 | 1 | if ($self->{'baudrate'} < 19200) { } |
| 49 | 0 | 7 | unless $serial->write_settings |
| 86 | 10746 | 20 | unless defined $self->{'buffer'} and length $self->{'buffer'} >= $bytes |
| 93 | 6 | 10751 | if (defined $msg) |
| 95 | 4 | 2 | if defined $msg->{'unit'} |