Condition Coverage

lib/Sisimai/Message.pm
Criterion Covered Total %
condition 53 61 86.8


and 3 conditions

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

or 2 conditions

line l !l condition
39 3520 1 shift() || (return undef)
40 3519 1 $argvs->{'data'} || (return undef)
75 713 2823 $argvs->{'hook'} || undef
104 3537 2 shift() // (return undef)
110 3536 1 $parts->[2] ||= ""
145 7014 1 shift() || (return {})
146 3478 3536 shift() || 0
208 3557 1 shift() || (return '')
218 62440 134031 $FieldTable->{$cf} || ''
320 3537 1 $argvs->{'mail'}{'header'} || (return undef)
321 3536 1 $argvs->{'body'} || (return undef)
322 713 2823 $argvs->{'hook'} || undef
328 3513 23 $mailheader->{'from'} //= ""
329 3536 0 $mailheader->{'subject'} //= ""
330 2868 668 $mailheader->{'content-type'} //= ""
336 2868 668 $mailheader->{'content-type'} || ''
337 615 2921 $mailheader->{'content-transfer-encoding'} || ''

or 3 conditions

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