Branch Coverage

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


line true false branch
53 0 0 if (@_ == 1) { }
55 0 0 unless ($uIfx =~ /^\d+$/)
62 0 0 if (/^-?interface$/i or /^-?index$/i)
63 0 0 if ($args{$_} =~ /^\d+$/) { }
72 0 0 unless (defined $uIfx)
77 0 0 unless (defined $rIf)
84 0 0 if ($rIfx->[$_] == $uIfx)
102 0 0 if (@_ == 1) { }
107 0 0 if (/^-?interface$/i) { }
0 0 elsif (/^-?index$/i) { }
110 0 0 if ($args{$_} == 1)
116 0 0 unless (exists $params{'uIf'})
122 0 0 unless (defined $rIf)
143 0 0 if ($rIfNamePart =~ /^$uIfNamePart/i and $rIfNumPart eq $uIfNumPart)
148 0 0 if (@matches == 1) { }
0 0 elsif (@matches == 0) { }
149 0 0 if ($params{'index'} == 0) { }
174 0 0 if (@_ == 1) { }
176 0 0 unless (defined($params{'ifs'} = Cisco::SNMP::_get_range($params{'ifs'})))
182 0 0 if (/^-?interface(?:s)?$/i)
183 0 0 unless (defined($params{'ifs'} = Cisco::SNMP::_get_range($args{$_})))
194 0 0 if ($ifs == -1) { }
205 0 0 unless (defined $ret{$IFKEYS[$oid]})
241 0 0 if ($_ == 5) { }
0 0 elsif ($_ == 6 or $_ == 7) { }
0 0 elsif ($_ == 9) { }
242 0 0 $ret{$IFKEYS[$_]}[$idx] =~ /^0x/ ? :
0 0 $ret{$IFKEYS[$_]}[$idx] =~ /^\0/ ? :
244 0 0 exists $UpDownStatus{$ret{$IFKEYS[$_]}[$idx]} ? :
247 0 0 if (exists $duplexIfs{$ret{$IFKEYS[0]}[$idx]}) { }
248 0 0 exists $DuplexType{$duplexIfs{$ret{$IFKEYS[0]}[$idx]}} ? :
282 0 0 if (@_ == 1) { }
284 0 0 unless (defined($params{'ifs'} = Cisco::SNMP::_get_range($params{'ifs'})))
290 0 0 if (/^-?interface(?:s)?$/i) { }
0 0 elsif (/^-?metric(?:s)?$/i) { }
291 0 0 unless (defined($params{'ifs'} = Cisco::SNMP::_get_range($args{$_})))
299 0 0 if (ref $args{$_} eq 'ARRAY') { }
302 0 0 if (exists $params{ucfirst lc $mets}) { }
311 0 0 if (exists $params{ucfirst lc $args{$_}}) { }
327 0 0 if ($ifs == -1) { }
335 0 0 unless (defined $ret{'Index'})
340 0 0 if ($params{$IFMETRICUSERKEYS[0]})
343 0 0 unless (defined $ret{$IFMETRICKEYS[0]})
349 0 0 unless (defined $ret{$IFMETRICKEYS[1]})
355 0 0 if ($params{$IFMETRICUSERKEYS[1]})
358 0 0 unless (defined $ret{$IFMETRICKEYS[2]})
364 0 0 unless (defined $ret{$IFMETRICKEYS[3]})
370 0 0 if ($params{$IFMETRICUSERKEYS[2]})
373 0 0 unless (defined $ret{$IFMETRICKEYS[4]})
379 0 0 unless (defined $ret{$IFMETRICKEYS[5]})
385 0 0 if ($params{$IFMETRICUSERKEYS[3]})
388 0 0 unless (defined $ret{$IFMETRICKEYS[6]})
394 0 0 unless (defined $ret{$IFMETRICKEYS[7]})
400 0 0 if ($params{$IFMETRICUSERKEYS[4]})
403 0 0 unless (defined $ret{$IFMETRICKEYS[8]})
409 0 0 unless (defined $ret{$IFMETRICKEYS[9]})
415 0 0 if ($params{$IFMETRICUSERKEYS[5]})
418 0 0 unless (defined $ret{$IFMETRICKEYS[10]})
424 0 0 unless (defined $ret{$IFMETRICKEYS[11]})
430 0 0 if ($params{$IFMETRICUSERKEYS[6]})
433 0 0 unless (defined $ret{$IFMETRICKEYS[12]})
465 0 0 if (@_ != 1)
468 0 0 if (/^-?polling$/i or /^-?interval$/i) { }
0 0 elsif (/^-?recursive$/i) { }
469 0 0 if ($args{$_} =~ /^\d+$/ and $args{$_} > 0) { }
482 0 0 if (exists $params{'recur'} and ref $params{'recur'} eq 'Cisco::SNMP::Interface') { }
485 0 0 unless (defined($prev = $self->interface_metrics(@_)))
492 0 0 unless (defined($curr = $self->interface_metrics(@_)))
502 0 0 if ($_ == 4 or $_ == 5) { }
503 0 0 defined $curr->{$ifs}{$IFMETRICKEYS[$_]} ? :
505 0 0 defined $curr->{$ifs}{$IFMETRICKEYS[$_]} ? :
511 0 0 wantarray ? :
529 0 0 if (@_ == 1) { }
531 0 0 unless (defined($params{'ifs'} = Cisco::SNMP::_get_range($params{'ifs'})))
537 0 0 if (/^-?interface(?:s)?$/i) { }
0 0 elsif (/^-?operation$/i or /^-?command$/i) { }
538 0 0 unless (defined($params{'ifs'} = Cisco::SNMP::_get_range($args{$_})))
542 0 0 if (exists $op{uc $args{$_}}) { }
553 0 0 unless (defined $params{'ifs'})
555 0 0 unless (defined $params{'ifs'})
563 0 0 if (defined $session->set_request(_ifOID() . '.7.' . $_, INTEGER(), $params{'oper'})) { }
582 0 0 unless (defined $val)
595 0 0 unless (defined $val)
607 0 0 unless (defined $val)
619 0 0 unless (defined $val)
633 0 0 unless (defined $val)
648 0 0 unless (defined $val)