Branch Coverage

blib/lib/Net/SNMP/Util/OID.pm
Criterion Covered Total %
branch 29 36 80.5


line true false branch
370 5 0 if (/^(.*)\*$/) { }
376 1 4 if ($which eq '') { }
385 1 3 if ($which eq 'if') { }
1 2 elsif ($which eq 'sys') { }
395 0 4 unless ($found)
416 5 0 if (exists $$map{$which})
445 0 432 unless (defined $mib and defined $oid)
449 0 432 unless ($mib =~ /^[a-zA-Z][\w\-]*(\.[a-zA-Z][\w\-])*$/)
453 0 432 unless ($oid =~ /^\.?\d+(\.\d+)*$/)
469 27 1 if (ref $mib eq 'HASH')
502 4 14 if ($grp)
513 0 11 if (@_Cache > $_CacheNum)
523 14 4 unless (defined $oid)
526 3 11 unless (defined $oid)
542 18 4 if $s =~ /\D/
547 3 14 wantarray ? :
570 1 12 unless (defined $mib)
576 1 11 wantarray ? :