blib/lib/Mojo/SNMP.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 17 | 33 | 51.5 |
line | !l | l&&!r | l&&r | condition |
---|---|---|---|---|
48 | 0 | 13 | 5 | $hosts->[0] and $hosts->[0] eq '*' |
77 | 12 | 6 | 0 | not $self->{'_setup'}++ and $self->ioloop->is_running |
282 | 0 | 0 | 0 | not $types{$oid} and Net::SNMP::oid_base_match($base_oid, $oid) |
line | l | !l | condition | |
---|---|---|---|---|
50 | 2 | 37 | 0 | defined $args{$_} or $args{$_} = $self->defaults->{$_} |
51 | 11 | 7 | $args{'version'} || '' | |
70 | 3 | 15 | $self->{'n_requests'} ||= 0 | |
165 | 0 | 0 | $self->{'n_requests'} || '0e0' | |
200 | 1 | 0 | $args->{'maxrepetitions'} || 10 | |
204 | 0 | 0 | $self->{'n_requests'} || '0e0' | |
229 | 1 | 1 | $args{'maxrepetitions'} || 10 |
line | l | !l&&r | !l&&!r | condition |
---|---|---|---|---|
60 | 15 | 10 | 0 | $self->{'sessions'}{$key} ||= $self->_new_session(\%args) |
171 | 3 | 8 | 0 | $SNMP_METHOD{$method} || "${method}_request" |
251 | 0 | 0 | 0 | $types{$oid} or not Net::SNMP::oid_base_match($base_oid, $oid) |