Condition Coverage

blib/lib/Net/SNMP/Message.pm
Criterion Covered Total %
condition 26 78 33.3


and 3 conditions

line !l l&&!r l&&r condition
316 7 0 10 @_ > 1 and defined $_[1]
7 10 0 @_ > 1 and defined $_[1] and $type != $_[1]
808 0 0 2 @_ == 2 and $index >= 0
0 0 2 @_ == 2 and $index >= 0 and $index <= $$this{'_length'}
993 4 1 1 $value & 4278190080 & 2147483648 and not $negative
1001 4 2 12 !($value & 4286578688) || ($value & 4286578688) == 4286578688 && $negative and $size > 1
1109 0 2 0 $subids[0] < 2 and $subids[1] >= 40
1437 5 1 0 $length > 4 and $bytes[0] != 0
1674 0 1 0 $length > 8 and $bytes[0] != 0

or 2 conditions

line l !l condition
345 0 0 $$this{'_context_engine_id'} || ''
347 0 0 $$this{'_security'}->engine_id || ''
436 0 0 $$this{'_msg_max_size'} || 484
787 0 0 $$this{'_error'} || ''
875 0 3 $$this{'_error'} || ''
1929 0 0 shift() || 0

or 3 conditions

line l !l&&r !l&&!r condition
401 0 0 0 $msg_id < 0 or $msg_id > 2147483647
428 0 0 0 $size < 484 or $size > 2147483647
449 0 0 0 $model < 1 or $model > 2147483647
502 0 0 0 $level < SECURITY_LEVEL_NOAUTHNOPRIV() or $level > SECURITY_LEVEL_AUTHPRIV()
548 0 4 0 $version == SNMP_VERSION_1() or $version == SNMP_VERSION_2C()
4 0 0 $version == SNMP_VERSION_1() or $version == SNMP_VERSION_2C() or $version == SNMP_VERSION_3()
944 0 0 6 $value < -2147483648 or $value > 4294967295
969 0 0 0 $value < 0 or $value > 4294967295
1001 11 0 7 !($value & 4286578688) || ($value & 4286578688) == 4286578688 && $negative
1437 0 0 6 $length > 5 or $length > 4 and $bytes[0] != 0
1453 1 0 0 $type == INTEGER() or not $$this{'_translate'} & TRANSLATE_UNSIGNED()
1554 0 0 1 $@ or grep {$_ > 4294967295;} @oid
1674 0 0 1 $length > 9 or $length > 8 and $bytes[0] != 0