| blib/lib/MikroTik/Client.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| condition | 22 | 28 | 78.5 |
| line | !l | l&&!r | l&&r | condition |
|---|---|---|---|---|
| 41 | 0 | 1 | 0 | defined ${^GLOBAL_PHASE} and ${^GLOBAL_PHASE} eq 'DESTRUCT' |
| 121 | 15 | 0 | 0 | $self->{$_} and $$tls_opts{$_ . '_file'} = $self->{$_} |
| 214 | 7 | 2 | 15 | %$_ and not $r->{'subscription'} |
| 216 | 15 | 8 | 1 | $type eq '!re' and $r->{'subscription'} |
| line | l | !l | condition |
|---|---|---|---|
| 13 | 0 | 4 | $ENV{'MIKROTIK_CLIENT_DEBUG'} || 0 |
| 92 | 3 | 1 | $err || 'closed prematurely' |
| 172 | 13 | 8 | $err // '' |
| 214 | 4 | 11 | $r->{'data'} ||= [] |
| 221 | 5 | 3 | $r->{'data'} ||= [] |
| line | l | !l&&r | !l&&!r | condition |
|---|---|---|---|---|
| 208 | 11 | 4 | 0 | $self->{'response'} ||= 'MikroTik::Client::Response'->new |
| 216 | 5 | 2 | 8 | $type eq '!trap' or $type eq '!fatal' |