Branch Coverage

blib/lib/Net/SNMP/Mixin/Util.pm
Criterion Covered Total %
branch 27 28 96.4


line true false branch
81 1 9 unless defined $var_bind_list
82 1 8 unless defined $base_oid
87 1 7 if $pre < 0
88 1 6 if $tail < 0
93 5 18 unless Net::SNMP::oid_base_match($base_oid, $oid)
106 9 9 if $pre > 0
110 9 9 if $tail > 0
131 2 1 unless $hex_string =~ /^0x[0-9a-f]+$/i
159 1 19 unless defined $mac
162 1 18 if (length $mac == 6)
188 7 12 unless $norm_address =~ /^(${hex_digit}{2}:){5}${hex_digit}{2}$/
208 1 2 unless defined $session
209 1 1 unless defined $error_msg
211 0 1 unless ref $session and $session->isa('Net::SNMP')