Branch Coverage

blib/lib/FusionInventory/Agent/SNMP/Live.pm
Criterion Covered Total %
branch 0 76 0.0


line true false branch
14 0 0 unless $params{'hostname'}
16 0 0 $params{'version'} eq '3' ? :
0 0 $params{'version'} eq '2c' ? :
0 0 $params{'version'} eq '1' ? :
0 0 !$params{'version'} ? :
23 0 0 unless $version
33 0 0 if $params{'timeout'}
36 0 0 if ($version eq 'snmpv3') { }
39 0 0 if $params{'authprotocol'}
41 0 0 if $params{'authpassword'}
43 0 0 if $params{'privprotocol'}
45 0 0 if $params{'privpassword'}
53 0 0 unless ($$self{'session'})
54 0 0 if $error =~ /^No response from remote host/
56 0 0 if $error =~ /^Received usmStats(WrongDigests|UnknownUserNames)/
61 0 0 if ($version ne 'snmpv3')
66 0 0 unless $response
68 0 0 if $$response{$oid} =~ /No response from remote host/
82 0 0 $version_id == 3 ? :
0 0 $version_id == 1 ? :
0 0 $version_id == 0 ? :
89 0 0 if ($version eq 'snmpv3') { }
93 0 0 unless $$self{'oldsession'}
103 0 0 unless $$self{'session'}
111 0 0 $version_id == 3 ? :
0 0 $version_id == 1 ? :
0 0 $version_id == 0 ? :
117 0 0 if ($version eq 'snmpv3') { }
128 0 0 unless $oid
132 0 0 if $$self{'context'}
136 0 0 unless $response
138 0 0 if $$response{$oid} =~ /noSuchInstance/
139 0 0 if $$response{$oid} =~ /noSuchObject/
140 0 0 if $$response{$oid} =~ /No response from remote host/
151 0 0 unless $oid
155 0 0 if $$self{'context'}
156 0 0 if $session->version != 0
160 0 0 unless $response