Branch Coverage

blib/lib/Net/SNMP/Mixin/CiscoDot1qVlanStatic.pm
Criterion Covered Total %
branch 28 66 42.4


line true false branch
134 1 0 unless $session->{$prefix}{'__initialized'}
157 1 0 unless $session->{$prefix}{'__initialized'}
180 1 0 unless $session->{$prefix}{'__initialized'}
206 0 2 if exists get_init_slot($session)->{$prefix} and get_init_slot($session)->{$prefix} == 0 and not $reload
214 2 2 if $session->error
218 0 2 if $session->error
222 0 2 if $session->error
242 2 2 $session->nonblocking ? :
0 4 $session->version ? :
256 2 2 unless defined $result
257 2 0 if $session->nonblocking
274 2 0 unless (defined $vbl)
275 2 0 if (my $err_msg = $session->error)
294 0 0 unless $session->{$prefix}{'_VlanState'}{$vlan_id} == 1
314 2 0 $session->nonblocking ? :
0 2 $session->version ? :
334 0 2 unless defined $result
335 2 0 if $session->nonblocking
352 2 0 unless (defined $vbl)
353 2 0 if (my $err_msg = $session->error)
400 0 0 if ($session->{$prefix}{'_VlansEncapsOperType'}{$if_idx} != 4)
446 2 0 $session->nonblocking ? :
0 2 $session->version ? :
458 0 2 unless defined $result
459 2 0 if $session->nonblocking
476 2 0 unless (defined $vbl)
477 2 0 if (my $err_msg = $session->error)
495 0 0 if $session->{$prefix}{'_VlanType'}{$if_idx} != 1
519 0 0 if (my $access_vlan = $session->{$prefix}{'AccessVlan'}{$if_idx})
520 0 0 if $access_vlan == $vlan_id
527 0 0 unless defined $session->{$prefix}{'TaggedVlans'}{$if_idx}
529 0 0 if (substr($session->{$prefix}{'TaggedVlans'}{$if_idx}, $vlan_id, 1) eq 1)
530 0 0 if ($session->{$prefix}{'NativeVlan'}{$if_idx} != $vlan_id) { }