Condition Coverage

lib/Sisimai/RFC3464.pm
Criterion Covered Total %
condition 40 62 64.5


and 3 conditions

line !l l&&!r l&&r condition
125 111 0 10 $x and $x ne $y
208 885 10 26 index($p, "Diagnostic-Code:") == 0 and $e =~ /\A[ \t]+(.+)\z/
391 20 0 0 $x and $x ne $y
409 131 0 0 $recipients == 0 and $rfc822text =~ /^To:[ ]*(.+)/m
427 112 0 29 exists $e->{'alterrors'} and $e->{'alterrors'}

or 2 conditions

line l !l condition
16 181 1 shift() // (return undef)
17 181 0 shift() // (return undef)
121 10 111 $v->{'recipient'} || ''
132 10 111 $itisbounce ||= 1
295 0 18 $match ||= 1
296 6 0 $match ||= 1
308 13 5 $match ||= 1
387 0 20 $b->{'recipient'} || ''
398 0 20 $itisbounce ||= 1
425 190 159 $connheader->{$_} || ''
440 12 0 $mdabounced->{'mda'} || 'RFC3464'
441 12 0 $mdabounced->{'reason'} || 'undefined'
446 0 20 'Sisimai::SMTP::Status'->find($e->{'diagnosis'}) || ''

or 3 conditions

line l !l&&r !l&&!r condition
134 0 20 101 $v->{'alias'} ||= $maybealias
245 0 111 0 $connheader->{'rhost'} ||= lc $1
425 74 190 159 $e->{$_} ||= $connheader->{$_} || ''
429 19 10 0 $e->{'diagnosis'} ||= $e->{'alterrors'}
430 0 0 29 index($e->{'diagnosis'}, "-") == 0 or substr($e->{'diagnosis'}, -2, 2) eq "__"
445 93 48 0 $e->{'date'} ||= $mhead->{'date'}
446 121 0 20 $e->{'status'} ||= 'Sisimai::SMTP::Status'->find($e->{'diagnosis'}) || ''