| blib/lib/Protocol/Modbus.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| branch | 10 | 22 | 45.4 |
| line | true | false | branch |
|---|---|---|---|
| 82 | 1 | 4 | if (exists $args{'driver'} and $args{'driver'} ne '') |
| 85 | 0 | 1 | if ($@) |
| 118 | 1 | 2 | if (not exists $args{'value'}) { } |
| 2 | 0 | elsif ($args{'value'} != 0) { } | |
| 143 | 0 | 1 | unless (exists $args{'value'}) |
| 156 | 0 | 0 | if ($self->transport->connected) |
| 178 | 0 | 12 | unless (exists $req_params{'function'}) |
| 202 | 0 | 0 | unless ($res) |
| 208 | 0 | 0 | unless ($res->pdu) |
| 221 | 6 | 0 | if (not exists $$self{'_transaction'} && $$self{'_transaction'}) { } |
| 248 | 6 | 0 | if (@_) |