Condition Coverage

lib/Sisimai/Message.pm
Criterion Covered Total %
condition 54 61 88.5


and 3 conditions

line !l l&&!r l&&r condition
267 2021 0 5 scalar @$ab == 1 and index($lines[$index + 1], " ") == 0
356 46 2 2361 defined $p and length $$p

or 2 conditions

line l !l condition
39 3508 1 shift() || (return undef)
40 3507 1 $argvs->{'data'} || (return undef)
75 711 2812 $argvs->{'hook'} || undef
104 3524 2 shift() // (return undef)
110 3523 1 $parts->[2] ||= ""
145 6986 1 shift() || (return {})
146 3463 3523 shift() || 0
208 3544 1 shift() || (return '')
218 62267 133334 $FieldTable->{$cf} || ''
320 3524 1 $argvs->{'mail'}{'header'} || (return undef)
321 3523 1 $argvs->{'body'} || (return undef)
322 711 2812 $argvs->{'hook'} || undef
328 3501 22 $mailheader->{'from'} //= ""
329 3523 0 $mailheader->{'subject'} //= ""
330 2867 656 $mailheader->{'content-type'} //= ""
336 2867 656 $mailheader->{'content-type'} || ''
337 614 2909 $mailheader->{'content-transfer-encoding'} || ''

or 3 conditions

line l !l&&r !l&&!r condition
92 3294 169 0 $beforefact->{'rfc822'} || $aftersplit->[2]
111 0 1 3523 $parts->[1] eq "" or $parts->[2] eq ""
156 5481 682 823 index($$argv0, "\nReceived:") > 0 or index($$argv0, "Received:") == 0
162 115 140 11344 index($e, "Sisimai::RFC5322"->woReceived->[0]) > 0 or index($e, "Sisimai::RFC5322"->woReceived->[1]) > 0
275 2851 166 9449 index($fn, "-Date") > 0 or index($fn, "-Message-ID") > 0
339 458 0 3065 index($mesgformat, "text/plain") == 0 or index($mesgformat, "text/html") == 0
408 0 3645 0 $_->{'agent'} ||= $modulename