Branch Coverage

blib/lib/MikroTik/Client.pm
Criterion Covered Total %
branch 35 42 83.3


line true false branch
48 2 0 unless ${^GLOBAL_PHASE} eq "DESTRUCT"
51 0 2 ref $_[-1] eq 'CODE' ? :
57 3 13 ref $_[-1] eq 'CODE' ? :
61 3 13 if $cb
77 0 1 unless (ref $_[-1] eq "CODE")
120 9 0 $self->insecure ? :
143 2 7 if ($err)
151 0 0 if $self
152 1 0 if $self
162 9 3 unless $c->{'id'}
174 26 5 if (my $timer = $r->{'timeout'})
188 4 2 unless $res->[0]{'ret'}
201 5 2 $self->new_login ? :
210 4 8 if $_[1]
226 1 41 unless my $r = $self->{'requests'}{delete $_->{'.tag'}}
228 25 16 if %$_ and not $r->{'subscription'}
230 1 40 if ($type eq '!re' and $r->{'subscription'}) { }
16 24 elsif ($type eq '!done') { }
8 16 elsif ($type eq '!trap' or $type eq '!fatal') { }
247 12 19 unless my $stream = $self->{'connections'}{$r->{'loop'}}{'stream'}
257 1 26 if $r->{'subscription'}