Branch Coverage

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


line true false branch
124 1 0 unless $session->{$prefix}{'__initialized'}
144 1 0 unless $session->{$prefix}{'__initialized'}
168 1 0 unless $session->{$prefix}{'__initialized'}
197 0 2 if exists get_init_slot($session)->{$prefix} and get_init_slot($session)->{$prefix} == 0 and not $reload
205 2 2 if $session->error
209 0 2 if $session->error
229 2 2 $session->nonblocking ? :
0 4 $session->version ? :
243 2 2 unless defined $result
244 2 0 if $session->nonblocking
261 2 0 unless (defined $vbl)
262 2 0 if (my $err_msg = $session->error)
282 0 0 unless $session->{$prefix}{'VlanState'}{$vlan_id} == 1
303 2 0 $session->nonblocking ? :
0 2 $session->version ? :
320 0 2 unless defined $result
321 2 0 if $session->nonblocking
338 2 0 unless (defined $vbl)
339 2 0 if (my $err_msg = $session->error)
368 0 0 if ($session->{$prefix}{'VlansEncapsOperType'}{$if_idx} != 4)
437 0 0 unless exists $session->{$prefix}{'ports2vlans'}{$if_idx}
441 0 0 if (substr($session->{$prefix}{'VlansEnabled'}{$if_idx}, $vlan_id, 1) eq 1)
464 0 0 unless exists $session->{$prefix}{'vlans2ports'}{$vlan_id}
466 0 0 if (substr($session->{$prefix}{'VlansEnabled'}{$if_idx}, $vlan_id, 1) eq 1)