| blib/lib/Device/Modbus/RTU.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| branch | 12 | 14 | 85.7 |
| line | true | false | branch |
|---|---|---|---|
| 19 | 1 | 4 | unless exists $self->{'port'} |
| 30 | 0 | 4 | unless $serial |
| 43 | 3 | 1 | if ($self->{'baudrate'} < 19200) { } |
| 50 | 0 | 4 | unless $serial->write_settings |
| 79 | 5838 | 9 | unless defined $self->{'buffer'} and length $self->{'buffer'} >= $bytes |
| 86 | 5 | 5840 | if (defined $msg) |
| 88 | 3 | 2 | if defined $msg->{'unit'} |