Condition Coverage

lib/Sisimai/Lhost/Postfix.pm
Criterion Covered Total %
condition 44 58 75.8


and 3 conditions

line !l l&&!r l&&r condition
117 5526 0 522 index($p, "Diagnostic-Code:") == 0 and $e =~ /\A[ \t]+(.+)\z/
171 54 0 10 defined $anotherset->{'recipient'} and $anotherset->{'recipient'}
179 49 0 5 $nomessages and $emailsteak->[1] =~ /^To:[ ]*(.+)/m
194 20 0 427 exists $anotherset->{'diagnosis'} and $anotherset->{'diagnosis'}
209 162 0 10 length $as > 0 and substr($as, -4, 4) ne ".0.0"
218 56 0 371 length $ar > 0 and substr($ar, -2, 2) ne "00"
224 56 5 356 $ar and length $anotherset->{'diagnosis'} > length $e->{'diagnosis'}

or 2 conditions

line l !l condition
16 670 1 shift() // (return undef)
17 670 0 shift() // (return undef)
192 15 0 $permessage->{$_} || ''
208 10 162 'Sisimai::SMTP::Status'->find($anotherset->{'diagnosis'}) || ''
217 371 56 'Sisimai::SMTP::Reply'->find($anotherset->{'diagnosis'}) || ''
231 337 110 shift @commandset || ''
232 0 44 $e->{'command'} ||= "HELO"
233 332 5 $e->{'spec'} ||= "SMTP"

or 3 conditions

line l !l&&r !l&&!r condition
128 271 66 4772 $e =~ /[ \t][(]in reply to (?:end of )?([A-Z]{4}).*/ or $e =~ /([A-Z]{4})[ \t]*.*command[)]\z/
191 0 437 10 $e->{'lhost'} ||= $permessage->{'rhost'}
192 859 15 0 $e->{$_} ||= $permessage->{$_} || ''
196 417 10 0 $e->{'diagnosis'} ||= $anotherset->{'diagnosis'}
206 10 162 255 $e->{'status'} eq "" or substr($e->{'status'}, -4, 4) eq ".0.0"
215 427 0 0 $e->{'replycode'} eq "" or substr($e->{'replycode'}, -2, 2) eq "00"
224 10 411 6 $as or $ar and length $anotherset->{'diagnosis'} > length $e->{'diagnosis'}