Branch Coverage

blib/lib/Net/SNMP/Mixin/CiscoDot1qVlanStaticTrunks.pm
Criterion Covered Total %
branch 21 48 43.7


line true false branch
131 1 0 unless $session->{$prefix}{'__initialized'}
151 1 0 unless $session->{$prefix}{'__initialized'}
175 1 0 unless $session->{$prefix}{'__initialized'}
204 0 2 if exists get_init_slot($session)->{$prefix} and get_init_slot($session)->{$prefix} == 0 and not $reload
212 2 2 if $session->error
216 0 2 if $session->error
236 2 2 $session->nonblocking ? :
0 4 $session->version ? :
250 2 2 unless defined $result
251 2 0 if $session->nonblocking
268 2 0 unless (defined $vbl)
269 2 0 if (my $err_msg = $session->error)
289 0 0 unless $session->{$prefix}{'VlanState'}{$vlan_id} == 1
310 2 0 $session->nonblocking ? :
0 2 $session->version ? :
327 0 2 unless defined $result
328 2 0 if $session->nonblocking
345 2 0 unless (defined $vbl)
346 2 0 if (my $err_msg = $session->error)
375 0 0 if ($session->{$prefix}{'VlansEncapsOperType'}{$if_idx} != 4)
444 0 0 unless exists $session->{$prefix}{'ports2vlans'}{$if_idx}
448 0 0 if (substr($session->{$prefix}{'VlansEnabled'}{$if_idx}, $vlan_id, 1) eq 1)
471 0 0 unless exists $session->{$prefix}{'vlans2ports'}{$vlan_id}
473 0 0 if (substr($session->{$prefix}{'VlansEnabled'}{$if_idx}, $vlan_id, 1) eq 1)