Condition Coverage

blib/lib/Messaging/Message.pm
Criterion Covered Total %
condition 45 86 52.3


and 3 conditions

line !l l&&!r l&&r condition
166 199 21 0 exists $option{'body'} and exists $option{'body_ref'}
199 0 0 1 @_ == 1 and defined $_[0]
0 0 1 @_ == 1 and defined $_[0] and ref $_[0] eq 'SCALAR'
210 0 1 0 @_ == 1 and !defined($_[0]) || ref $_[0] eq ''
224 0 1 81 @_ >= 1 and defined $_[0]
1 1 80 @_ >= 1 and defined $_[0] and ref $_[0] eq ''
226 0 0 2 @_ == 2 and defined $_[1]
0 1 1 @_ == 2 and defined $_[1] and ref $_[1] eq ''
240 0 0 1 @_ == 1 and defined $_[0]
0 0 1 @_ == 1 and defined $_[0] and ref $_[0] eq ''
300 7 3 0 $algo and $force
7 0 3 $algo and $len > 255
323 9 3 0 $algo and $force
9 0 3 $algo and $len > 255
349 32 0 6 $option{'compression'} and $option{'compression'} =~ /^(\w+)(!?)$/
402 0 0 74 @_ == 1 and defined $_[0]
0 1 73 @_ == 1 and defined $_[0] and ref $_[0] eq 'HASH'
416 29 6 34 $object->{'header'} and keys %{$$object{'header'};}
493 0 0 36 @_ == 1 and defined $_[0]
0 0 36 @_ == 1 and defined $_[0] and ref $_[0] eq ''
505 0 0 33 @_ == 1 and defined $_[0]
0 0 33 @_ == 1 and defined $_[0] and ref $_[0] eq 'SCALAR'
553 0 0 28 @_ == 1 and defined $_[0]
0 0 28 @_ == 1 and defined $_[0] and ref $_[0] eq ''
566 0 0 35 @_ == 1 and defined $_[0]
0 0 35 @_ == 1 and defined $_[0] and ref $_[0] eq 'SCALAR'

or 2 conditions

line l !l condition
406 27 43 $object->{'encoding'} || ''

or 3 conditions

line l !l&&r !l&&!r condition
210 0 1 0 !defined($_[0]) || ref $_[0] eq ''
407 43 26 1 $encoding eq '' or "$encoding+" =~ /^((base64|utf8|$_CompressionAlgos)\+)+$/o