Condition Coverage

lib/Haineko/Sendmail.pm
Criterion Covered Total %
condition 44 154 28.5


and 3 conditions

line !l l&&!r l&&r condition
63 0 11 1 $httpd->debug == 0 and $httpd->req->method eq 'GET'
255 8 0 0 defined $mfresponse and $mfresponse->error
312 6 0 0 defined $mfresponse and $mfresponse->error
347 0 0 5 $xrecipient and $xrecipient > 0
474 0 0 0 defined $mfresponse and $mfresponse->error
538 0 1 0 $xmesgsize > 0 and length $body > $xmesgsize
692 0 0 0 defined $mfresponse and $mfresponse->error
713 0 0 0 defined $mfresponse and $mfresponse->error

or 2 conditions

line l !l condition
30 0 12 $httpd->req->header('X-Forwarded-For') || ''
31 12 0 (pop @$xforwarded || $httpd->req->address) // undef
32 12 0 $httpd->req->env->{'REMOTE_PORT'} // undef
33 12 0 $httpd->req->env->{'REMOTE_HOST'} // undef
34 0 12 $httpd->req->env->{'REMOTE_USER'} // undef
35 0 12 $httpd->req->user_agent // undef
55 0 12 $httpd->req->referer // ''
121 0 11 $$serverconf{'milter'}{'conn'} || []
152 10 0 ($$json{'ehlo'} // $$json{'helo'}) // ''
153 0 3 (($$json{'mail'} // $$json{'send'}) // $$json{'from'}) // ''
154 0 5 (($$json{'rcpt'} // $$json{'recv'}) // $$json{'to'}) // []
155 1 9 $$json{'body'} // ''
167 0 10 ($$head{'charset'} // $$head{'Charset'}) // 'UTF-8'
168 2 8 $$head{'subject'} //= ''
182 0 10 $$head{'x-haineko-loop'} || []
246 0 8 $$serverconf{'milter'}{'ehlo'} || []
303 0 6 $$serverconf{'milter'}{'mail'} || []
411 0 4 $accessconf //= {'open-relay', 0, 'domainpart', [$$serverconf{'hostname'}], 'recipients', []}
436 4 0 $$accessconf{'recipients'} || []
437 4 0 $$accessconf{'domainpart'} || []
464 0 4 $$serverconf{'milter'}{'rcpt'} || []
593 0 0 $$head{'received'} || []
0 0 $submission->useragent // ''
0 0 $submission->referer // ''
683 0 0 $$serverconf{'milter'}{'head'} || []
704 0 0 $$serverconf{'milter'}{'body'} || []
778 0 0 $$mailerconf{'auth'} // {}
889 0 0 $$relayingto{'port'} //= 25
890 0 0 $$relayingto{'host'} //= '127.0.0.1'
891 0 0 $$relayingto{'mailer'} //= 'ESMTP'
894 0 0 $$autheninfo{$$relayingto{'auth'}} // {}
903 0 0 $$relayingto{'host'} // '127.0.0.1'
0 0 $$relayingto{'retry'} // 0
0 0 $$relayingto{'sleep'} // 5
0 0 $$relayingto{'timeout'} // 59
919 0 0 $$relayingto{'port'} // 25
920 0 0 $$relayingto{'debug'} // 0
924 0 0 $$relayingto{'port'} // 2794
929 0 0 $$relayingto{'debug'} // 0
982 0 0 $$relayingto{'retry'} // 0
0 0 $$relayingto{'timeout'} // 60

or 3 conditions

line l !l&&r !l&&!r condition
31 0 12 0 pop @$xforwarded || $httpd->req->address
49 24 0 0 $$syslogargv{$e} //= $$defaultset{'smtpd'}{'syslog'}{$e}
98 11 0 0 $ip4network //= 'Net::CIDR::Lite'->new('127.0.0.1/32')
152 10 0 0 $$json{'ehlo'} // $$json{'helo'}
153 7 0 3 $$json{'mail'} // $$json{'send'}
7 0 3 ($$json{'mail'} // $$json{'send'}) // $$json{'from'}
154 5 0 5 $$json{'rcpt'} // $$json{'recv'}
5 0 5 ($$json{'rcpt'} // $$json{'recv'}) // $$json{'to'}
167 0 0 10 $$head{'charset'} // $$head{'Charset'}
334 6 0 0 $$serverconf{'max_rcpts_per_message'} // $$defaultset{'smtpd'}{'max_rcpts_per_message'}
534 1 0 0 $$serverconf{'max_message_size'} // $$defaultset{'smtpd'}{'max_message_size'}
749 0 0 0 $defaulthub //= $$mailerconf{'rcpt'}{'default'}
763 0 0 0 $defaulthub //= 'Haineko::SMTPD::Relay'->defaulthub
800 0 0 0 $$serverconf{'max_workers'} // $$defaultset{'smtpd'}{'max_workers'}
883 0 0 0 $$mailerconf{'rcpt'}{$r->host} // $sendershub
898 0 0 0 $$relayingto{'mailer'} =~ m[\A/] or $$relayingto{'mailer'} eq 'File'