| blib/lib/API/MikroTik.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| condition | 19 | 28 | 67.8 |
| line | !l | l&&!r | l&&r | condition |
|---|---|---|---|---|
| 88 | 0 | 0 | 0 | $_->{'timeout'} and $_->{'loop'}->remove($_->{'timeout'}) |
| 89 | 0 | 1 | 0 | $_ and $_->unsubscribe('close')->close |
| 218 | 10 | 2 | 21 | %$_ and not $r->{'subscription'} |
| 220 | 22 | 10 | 1 | $type eq '!re' and $r->{'subscription'} |
| line | l | !l | condition |
|---|---|---|---|
| 13 | 0 | 3 | $ENV{'API_MIKROTIK_DEBUG'} || 0 |
| 180 | 13 | 15 | $err // '' |
| line | l | !l&&r | !l&&!r | condition |
|---|---|---|---|---|
| 211 | 16 | 5 | 0 | $self->{'responses'}{$loop} ||= 'API::MikroTik::Response'->new |
| 217 | 5 | 16 | 0 | $r->{'data'} ||= 'Mojo::Collection'->new |
| 220 | 6 | 1 | 10 | $type eq '!trap' or $type eq '!fatal' |
| 225 | 10 | 5 | 0 | $r->{'data'} ||= 'Mojo::Collection'->new |