Condition Coverage

blib/lib/MikroTik/Client.pm
Criterion Covered Total %
condition 23 32 71.8


and 3 conditions

line !l l&&!r l&&r condition
87 0 0 0 $_->{'timeout'} and $_->{'loop'}->remove($_->{'timeout'})
89 0 4 0 $_->{'stream'} and $_->{'stream'}->unsubscribe("close")->close
228 14 2 25 %$_ and not $r->{'subscription'}
230 24 16 1 $type eq "!re" and $r->{'subscription'}

or 2 conditions

line l !l condition
13 0 4 $ENV{'MIKROTIK_CLIENT_DEBUG'} || 0
95 4 1 $err // "closed prematurely"
163 3 9 $c->{'queue'} ||= []
175 15 16 $err // ""

or 3 conditions

line l !l&&r !l&&!r condition
222 16 7 0 $self->{'connections'}{$loop}{'response'} ||= "MikroTik::Client::Response"->new
228 8 17 0 $r->{'data'} ||= "Mojo::Collection"->new
230 6 2 16 $type eq "!trap" or $type eq "!fatal"
235 10 6 0 $r->{'data'} ||= "Mojo::Collection"->new