Branch Coverage

blib/lib/Cisco/SNMP.pm
Criterion Covered Total %
branch 0 82 0.0


line true false branch
31 0 0 if (defined $s and not $s =~ /^Cisco::SNMP/)
34 0 0 if (defined $v and $v =~ /^4|6|${\2;}|$AF_INET6$/)
35 0 0 if ($v == 4 or $v == 2) { }
62 0 0 if (@_ == 1) { }
63 0 0 if ($_[0] =~ /^Cisco::SNMP/) { }
71 0 0 if (/^-?family$/i) { }
72 0 0 if ($args{$_} =~ /^(?:(?:(:?ip)?v?(?:4|6))|${\2;}|$AF_INET6)$/) { }
74 0 0 if ($args{$_} =~ /^(?:(?:(:?ip)?v?4)|${\2;})$/) { }
94 0 0 if ($params{'version'} =~ /[1,2]/ and not defined $params{'community'})
100 0 0 unless (defined $params{'hostname'})
105 0 0 if (defined(my $ret = _resolv($params{'hostname'}, $family))) { }
107 0 0 if (defined $ret->{'port'})
111 0 0 if ($family == 2) { }
122 0 0 unless (defined $session)
175 0 0 if (not defined $idx) { }
0 0 elsif (not $idx =~ /^\d+$/) { }
191 0 0 if (not defined $idx) { }
0 0 elsif (not $idx =~ /^\d+$/) { }
207 0 0 if (not defined $idx2) { }
0 0 elsif (not $idx1 =~ /^\d+$/) { }
0 0 elsif (not $idx2 =~ /^\d+$/) { }
236 0 0 unless ($opt =~ /^\d+([\,\-]\d+)*$/)
251 0 0 if ($opt =~ /-/) { }
286 0 0 if (oid_base_match($base, $o)) { }
294 0 0 if (@oids == 0 and @vals == 0)
295 0 0 if (defined($result = $session->get_request($oid))) { }
319 0 0 unless (defined $family)
328 0 0 if ($cnt == 0) { }
0 0 elsif ($cnt == 1) { }
0 0 elsif ($cnt >= 2) { }
339 0 0 if ($name =~ /^\[.*\]:\d{1,5}$/) { }
351 0 0 if (defined $h{'port'} and !($h{'port'} =~ /^\d{1,5}$/) || $h{'port'} < 1 || $h{'port'} > 65535)
364 0 0 if ('version'->parse($Socket::VERSION) >= 'version'->parse(1.94)) { }
374 0 0 if (defined $getaddr[0])
385 0 0 if (defined $ret and inet_ntoa($ret) eq $h{'host'})
394 0 0 if ('version'->parse($Socket::VERSION) >= 'version'->parse(1.94)) { }
402 0 0 if (defined $getaddr[0]) { }
405 0 0 if (defined $address) { }
415 0 0 $family == 2 ? :
422 0 0 if ($family == $AF_INET6)
429 0 0 if (defined $gethost[4]) { }