Branch Coverage

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


line true false branch
33 1 0 unless Mojo::Util::_global_destruction()
36 0 2 ref $_[-1] eq 'CODE' ? :
42 3 9 ref $_[-1] eq 'CODE' ? :
46 3 9 if $cb
68 2 1 if $_[1]
77 0 1 unless (ref $_[-1] eq 'CODE')
121 0 0 $tls ? :
7 0 $self->port ? :
135 2 5 if ($err)
144 0 0 if $self
145 2 0 if $self
150 1 4 if ($_[1])
166 7 3 unless my $queue = $self->{'queues'}{$r->{'loop'}}
179 24 4 if (my $timer = $r->{'timeout'})
193 0 5 if $err
215 1 33 unless my $r = $self->{'requests'}{delete $_->{'.tag'}}
218 21 12 if %$_ and not $r->{'subscription'}
220 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') { }
237 10 18 unless my $stream = $self->{'handles'}{$r->{'loop'}}
247 1 24 if $r->{'subscription'}