lib/Test/Mock/Net/SNMP.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 38 | 54 | 70.3 |
line | !l | l&&!r | l&&r | condition |
---|---|---|---|---|
360 | 1 | 0 | 5 | defined $$self{'error'} and $$self{'error'} |
428 | 2 | 0 | 5 | $$vbl[0] eq '1.3.6.1.2.1.1.3.0' and $$vbl[$VARBINDLIST_MULTIPLE] eq '1.3.6.1.6.3.1.1.4.1.0' |
439 | 9 | 0 | 30 | defined $$self{'varbindlist'} and @{$$self{'varbindlist'};} |
561 | 2 | 0 | 1 | defined $$self{'trap_error'} and $$self{'trap_error'} |
623 | 2 | 0 | 0 | defined $$self{'trap_error'} and $$self{'trap_error'} |
815 | 1 | 1 | 1 | $option >= 0 and $option <= $MAX_RETRIES |
838 | 1 | 1 | 1 | $option >= $MIN_MSG_OCTETS and $option <= $MAX_MSG_OCTETS |
line | l | !l | condition |
---|---|---|---|
411 | 11 | 0 | $args{'Varbindlist'} || $args{-'varbindlist'} || [] |
451 | 1 | 18 | $args{-'callback'} || $args{'Callback'} || $$self{'cb'} || '' |
684 | 1 | 1 | $$self{'session'}{-'version'} || $$self{'session'}{'Version'} || 1 |
710 | 19 | 1 | $$self{'session'}{-'hostname'} || $$self{'session'}{'Hostname'} || 'localhost' |
823 | 1 | 1 | $$self{'retries'} || 1 |
863 | 2 | 1 | $$self{'translate'} || 1 |
line | l | !l&&r | !l&&!r | condition |
---|---|---|---|---|
399 | 0 | 41 | 6 | exists $args{'Varbindlist'} or exists $args{-'varbindlist'} |
419 | 9 | 0 | 0 | $args{-'varbindlist'} || $args{'Varbindlist'} |
536 | 11 | 0 | 0 | $args{-'varbindlist'} || $args{'Varbindlist'} |
644 | 3 | 0 | 1 | exists $args{-'baseoid'} or exists $args{'Baseoid'} |
666 | 3 | 0 | 1 | exists $args{-'columns'} or exists $args{'Columns'} |
800 | 1 | 1 | 0 | $$self{'timeout'} || $DEFAULT_TIMEOUT |
846 | 1 | 1 | 0 | $$self{'max_msg_size'} || $DEFAULT_MSG_SIZE |