Branch Coverage

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


line true false branch
42 0 0 if (@_ == 1) { }
47 0 0 if (/^-?family$/i) { }
48 0 0 if ($args{$_} =~ /^(?:(?:(:?ip)?v?(?:4|6))|${\2;}|$AF_INET6)$/) { }
49 0 0 if ($args{$_} =~ /^(?:(?:(:?ip)?v?4)|${\2;})$/) { }
68 0 0 if ($params{'version'} =~ /[1,2]/ and not defined $params{'community'})
73 0 0 unless (defined $params{'hostname'})
78 0 0 if (defined(my $ret = _resolv($params{'hostname'}, $family))) { }
81 0 0 if ($family == 2) { }
92 0 0 unless (defined $session)
148 0 0 if (not defined $idx) { }
0 0 elsif (not $idx =~ /^\d+$/) { }
164 0 0 if (not defined $idx) { }
0 0 elsif (not $idx =~ /^\d+$/) { }
180 0 0 if (not defined $idx2) { }
0 0 elsif (not $idx1 =~ /^\d+$/) { }
0 0 elsif (not $idx2 =~ /^\d+$/) { }
209 0 0 unless ($opt =~ /^\d+([\,\-]\d+)*$/)
224 0 0 if ($opt =~ /-/) { }
254 0 0 if (oid_base_match($base, $o)) { }
262 0 0 if (@oids == 0 and @vals == 0)
263 0 0 if (defined($result = $session->get_request($oid))) { }
290 0 0 unless (defined $family)
301 0 0 if ($cnt == 0) { }
0 0 elsif ($cnt == 1) { }
0 0 elsif ($cnt >= 2) { }
309 0 0 if ($name =~ /^\[.*\]:\d{1,5}$/) { }
321 0 0 if (defined $h{'port'} and !($h{'port'} =~ /^\d{1,5}$/) || $h{'port'} < 1 || $h{'port'} > 65535)
329 0 0 if ('version'->parse($Socket::VERSION) >= 'version'->parse(1.94)) { }
338 0 0 if (defined $getaddr[0])
347 0 0 if (defined $ret and inet_ntoa($ret) eq $h{'host'})
356 0 0 if ('version'->parse($Socket::VERSION) >= 'version'->parse(1.94)) { }
363 0 0 if (defined $getaddr[0]) { }
365 0 0 if (defined $address) { }
375 0 0 $family == 2 ? :
380 0 0 if ($family == $AF_INET6)
386 0 0 if (defined $gethost[4]) { }