blib/lib/Power/Outlet/Common/IP/SNMP.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
branch | 3 | 26 | 11.5 |
line | true | false | branch |
---|---|---|---|
38 | 0 | 4 | if @_ |
39 | 2 | 2 | unless defined $self->{'community'} |
64 | 0 | 0 | if @_ |
65 | 0 | 0 | unless (defined $self->{'snmp_session'}) |
72 | 0 | 0 | if $error |
100 | 0 | 0 | unless ref $oids eq "ARRAY" |
102 | 0 | 0 | unless my $result = $session->get_request("-varbindlist", $oids) |
103 | 0 | 0 | wantarray ? : |
116 | 0 | 0 | unless defined $oid |
130 | 0 | 0 | unless ref $oids eq "ARRAY" |
132 | 0 | 0 | unless defined $value |
134 | 0 | 0 | unless defined $type |
136 | 0 | 0 | unless $session->set_request("-varbindlist", [map({$_, $type, $value;} @$oids)]) |