Branch Coverage

blib/lib/API/MikroTik.pm
Criterion Covered Total %
branch 34 44 77.2


line true false branch
35 1 0 unless Mojo::Util::_global_destruction()
38 0 2 ref $_[-1] eq 'CODE' ? :
44 3 9 ref $_[-1] eq 'CODE' ? :
48 3 9 if $cb
70 2 1 if $_[1]
79 0 1 unless (ref $_[-1] eq 'CODE')
123 0 0 $tls ? :
7 0 $self->port ? :
137 2 5 if ($err)
146 0 0 if $self
147 2 0 if $self
152 1 4 if ($_[1])
168 7 3 unless my $queue = $self->{'queues'}{$r->{'loop'}}
181 24 4 if (my $timer = $r->{'timeout'})
195 0 5 if $err
217 1 33 unless my $r = $self->{'requests'}{delete $_->{'.tag'}}
220 21 12 if %$_ and not $r->{'subscription'}
222 1 32 if ($type eq '!re' and $r->{'subscription'}) { }
15 17 elsif ($type eq '!done') { }
7 10 elsif ($type eq '!trap' or $type eq '!fatal') { }
239 10 18 unless my $stream = $self->{'handles'}{$r->{'loop'}}
249 1 24 if $r->{'subscription'}