Condition Coverage

blib/lib/Net/SNMP/Security/USM.pm
Criterion Covered Total %
condition 19 73 26.0


and 3 conditions

line !l l&&!r l&&r condition
160 6 0 0 /^-?engineid$/i and $$this{'_authoritative'}
604 0 0 0 $$this{'_discovered'} && $$this{'_synchronized'}
916 2 2 2 defined $$this{'_auth_password'} and $$this{'_discovered'}
953 2 2 2 defined $$this{'_priv_password'} and $$this{'_discovered'}
1016 0 0 0 $msg_boots == $this->_engine_boots and $msg_time > $$this{'_latest_engine_time'}
1071 0 0 0 $msg_boots == $engine_boots and $msg_time < $engine_time - 150
1125 0 4 0 defined $$this{'_auth_data'} and defined $msg
1613 0 2 0 defined $$this{'_engine_id'} and defined $$this{'_auth_password'}
1654 0 2 0 defined $$this{'_engine_id'} and defined $$this{'_priv_password'}

or 2 conditions

line l !l condition
989 2 0 $engine_id || ''
1211 0 0 $_[1]->error || 'Decryption error (No data)'

or 3 conditions

line l !l&&r !l&&!r condition
387 0 0 0 $msg_engine_boots < 0 or $msg_engine_boots > 2147483647
399 0 0 0 $msg_engine_time < 0 or $msg_engine_time > 2147483647
509 0 0 0 $$this{'_priv_protocol'} eq PRIV_PROTOCOL_AESCFB128() or $$this{'_priv_protocol'} eq PRIV_PROTOCOL_DRAFT_AESCFB192()
0 0 0 $$this{'_priv_protocol'} eq PRIV_PROTOCOL_AESCFB128() or $$this{'_priv_protocol'} eq PRIV_PROTOCOL_DRAFT_AESCFB192() or $$this{'_priv_protocol'} eq PRIV_PROTOCOL_DRAFT_AESCFB256()
634 0 0 0 $len < 5 or $len > 32
853 0 0 2 $priv_proto eq PRIV_PROTOCOL_AESCFB128() or $priv_proto eq PRIV_PROTOCOL_DRAFT_AESCFB192()
0 0 2 $priv_proto eq PRIV_PROTOCOL_AESCFB128() or $priv_proto eq PRIV_PROTOCOL_DRAFT_AESCFB192() or $priv_proto eq PRIV_PROTOCOL_DRAFT_AESCFB256()
943 4 0 2 defined $$this{'_auth_key'} or defined $$this{'_auth_password'}
944 0 0 0 defined $$this{'_priv_key'} or defined $$this{'_priv_password'}
991 0 0 2 length $engine_id < 5 or length $engine_id > 32
1016 2 0 0 $msg_boots > $this->_engine_boots or $msg_boots == $this->_engine_boots and $msg_time > $$this{'_latest_engine_time'}
1080 0 0 0 $msg_time < $engine_time - 150 or $msg_time > $engine_time + 150
1236 0 0 2 not defined $msglen or $msglen > $_[1]->length
1662 0 0 2 $$this{'_priv_protocol'} eq PRIV_PROTOCOL_DRAFT_AESCFB192() or $$this{'_priv_protocol'} eq PRIV_PROTOCOL_DRAFT_AESCFB256()