| blib/lib/Device/Modbus/RTU.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| branch | 12 | 14 | 85.7 |
| line | true | false | branch |
|---|---|---|---|
| 18 | 1 | 4 | unless exists $self->{'port'} |
| 29 | 0 | 4 | unless $serial |
| 42 | 3 | 1 | if ($self->{'baudrate'} < 19200) { } |
| 49 | 0 | 4 | unless $serial->write_settings |
| 78 | 7873 | 9 | unless defined $self->{'buffer'} and length $self->{'buffer'} >= $bytes |
| 85 | 5 | 7875 | if (defined $msg) |
| 87 | 3 | 2 | if defined $msg->{'unit'} |