Branch Coverage

blib/lib/Net/SNMP/Mixin/Util.pm
Criterion Covered Total %
branch 32 36 88.8


line true false branch
82 1 9 unless defined $var_bind_list
83 1 8 unless defined $base_oid
88 1 7 if $pre < 0
89 1 6 if $tail < 0
94 5 18 unless Net::SNMP::oid_base_match($base_oid, $oid)
107 9 9 if $pre > 0
111 9 9 if $tail > 0
132 2 1 unless $hex_string =~ /^0x[0-9a-f]+$/i
160 1 19 unless defined $mac
163 1 18 if (length $mac == 6)
189 7 12 unless $norm_address =~ /^(${hex_digit}{2}:){5}${hex_digit}{2}$/
207 1 3 unless defined $session
208 1 2 unless defined $error_msg
210 0 2 unless ref $session and $session->isa('Net::SNMP')
218 2 0 unless grep /\Q$error_msg\E$/, @errors
233 1 2 unless defined $session
235 0 2 unless ref $session and $session->isa('Net::SNMP')
239 2 0 unless exists $session->{'Net::SNMP::Mixin'}{'init_jobs_left'}