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 5232 0 504 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 403 exists $anotherset->{'diagnosis'} and $anotherset->{'diagnosis'}
209 138 0 10 length $as > 0 and substr($as, -4, 4) ne ".0.0"
218 56 0 347 length $ar > 0 and substr($ar, -2, 2) ne "00"
224 56 5 332 $ar and length $anotherset->{'diagnosis'} > length $e->{'diagnosis'}

or 2 conditions

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

or 3 conditions

line l !l&&r !l&&!r condition
128 253 60 4526 $e =~ /[ \t][(]in reply to (?:end of )?([A-Z]{4}).*/ or $e =~ /([A-Z]{4})[ \t]*.*command[)]\z/
191 0 413 10 $e->{'lhost'} ||= $permessage->{'rhost'}
192 811 15 0 $e->{$_} ||= $permessage->{$_} || ''
196 393 10 0 $e->{'diagnosis'} ||= $anotherset->{'diagnosis'}
206 10 138 255 $e->{'status'} eq "" or substr($e->{'status'}, -4, 4) eq ".0.0"
215 403 0 0 $e->{'replycode'} eq "" or substr($e->{'replycode'}, -2, 2) eq "00"
224 10 387 6 $as or $ar and length $anotherset->{'diagnosis'} > length $e->{'diagnosis'}