Branch Coverage

blib/lib/NSNMP.pm
Criterion Covered Total %
branch 43 48 89.5


line true false branch
199 5 962 if $@
219 1015 1326 if ($len & 128)
220 389 626 if ($len == 130) { }
626 0 elsif ($len == 129) { }
241 6 219 unless ($type & ' ') ne "\000"
252 1 2115 unless $len == length $value
261 5 217 if $error
264 0 217 if $error
281 745 101 unless ($@ or ($packetlength | $verlen | $pdulen | $eslen | $eilen | $vblen) & 128)
354 144 777 if $@
358 53 726 if $length < 0
367 0 197 if $error
397 2141 4 if ($oid =~ s/^1\.3\./43./) { }
407 96 0 if ($encoded =~ s/\A\x2b/\cA\cC/) { }
429 2 2474 if (keys %encode_oids > 1000)
433 2 2474 if exists $encode_oids{$oid}
435 329 2145 if exists $encode_oids{$oid}
452 0 649 if (keys %encode_oids > 1000)
456 553 96 if exists $decode_oids{$encoded}
466 231 1007 if ($_[0] < 128)
467 625 382 if ($_[0] < 256)
476 770 195 if (length($oid) + length($value) < 123) { }
542 956 8 unless defined $community
553 750 214 if (length($encoded_varbinds) + length($pdu_start) + length($message_start) < 123) { }