Condition Coverage

lib/Sisimai/ARF.pm
Criterion Covered Total %
condition 25 38 65.7


and 3 conditions

line !l l&&!r l&&r condition
28 4 0 15 $p =~ /$reportfrom/ and index($heads->{'subject'}, "complaint about message from ") > -1
254 66 0 15 $arfheaders->{'feedbacktype'} eq "auth-failure" and $arfheaders->{'authres'}

or 2 conditions

line l !l condition
15 131 0 shift() || (return 0)
45 81 1 shift() // (return undef)
46 81 0 shift() // (return undef)
174 859 121 $lhs || ''

or 3 conditions

line l !l&&r !l&&!r condition
124 0 66 0 $commondata->{'diagnosis'} ||= $e
133 66 10 1162 index($e, $startingof->{'rfc822'}[0]) == 0 or index($e, $startingof->{'rfc822'}[1]) == 0
155 45 26 0 $commondata->{'from'} ||= "Sisimai::Address"->s3s4($1)
197 65 6 573 $e =~ /\AOriginal-Rcpt-To:[ ]+[<]?(.+)[>]?\z/ or $e =~ /\ARedacted-Address:[ ]([^ ].+[\@])\z/
249 0 50 0 $commondata->{'from'} ||= "Sisimai::Address"->s3s4($1)
290 0 439 141 $e->{$_} ||= $arfheaders->{$_}
294 0 116 0 $e->{'diagnosis'} ||= $commondata->{'diagnosis'}
296 86 30 0 $e->{'date'} ||= $mhead->{'date'}