Branch Coverage

blib/lib/Net/SNMP/Mixin/CiscoDot1qVlanStaticTrunks.pm
Criterion Covered Total %
branch 19 44 43.1


line true false branch
122 1 0 unless $$session{$prefix}{'__initialized'}
142 1 0 unless $$session{$prefix}{'__initialized'}
166 1 0 unless $$session{$prefix}{'__initialized'}
186 0 4 if $$session{$prefix}{'__initialized'} and not $reload
193 2 2 if $session->error
197 0 2 if $session->error
217 2 2 $session->nonblocking ? :
0 4 $session->version ? :
231 2 2 unless defined $result
232 2 0 if $session->nonblocking
249 2 0 unless defined $vbl
264 0 0 unless $$session{$prefix}{'VlanState'}{$vlan_id} == 1
282 2 0 $session->nonblocking ? :
0 2 $session->version ? :
302 0 2 unless defined $result
303 2 0 if $session->nonblocking
320 2 0 unless defined $vbl
346 0 0 if ($$session{$prefix}{'VlansEncapsOperType'}{$if_idx} != 4)
409 0 0 unless exists $$session{$prefix}{'ports2vlans'}{$if_idx}
414 0 0 if (substr($$session{$prefix}{'VlansEnabled'}{$if_idx}, $vlan_id, 1) eq 1)
433 0 0 unless exists $$session{$prefix}{'vlans2ports'}{$vlan_id}
437 0 0 if (substr($$session{$prefix}{'VlansEnabled'}{$if_idx}, $vlan_id, 1) eq 1)