Condition Coverage

blib/lib/Mojo/SNMP.pm
Criterion Covered Total %
condition 17 33 51.5


and 3 conditions

line !l l&&!r l&&r condition
304 0 13 5 $hosts->[0] and $hosts->[0] eq '*'
333 12 6 0 not $self->{'_setup'}++ and $self->ioloop->is_running
565 0 0 0 not $types{$oid} and Net::SNMP::oid_base_match($base_oid, $oid)

or 2 conditions

line l !l condition
306 2 37 0 defined $args{$_} or $args{$_} = $self->defaults->{$_}
307 11 7 $args{'version'} || ''
326 3 15 $self->{'n_requests'} ||= 0
452 0 0 $self->{'n_requests'} || '0e0'
488 1 0 $args->{'maxrepetitions'} || 10
492 0 0 $self->{'n_requests'} || '0e0'
517 1 1 $args{'maxrepetitions'} || 10

or 3 conditions

line l !l&&r !l&&!r condition
316 15 10 0 $self->{'sessions'}{$key} ||= $self->_new_session(\%args)
458 3 0 8 $SNMP_METHOD{$method} || "${method}_request"
534 0 0 0 $types{$oid} or not Net::SNMP::oid_base_match($base_oid, $oid)