Condition Coverage

lib/Haineko/HTTPD.pm
Criterion Covered Total %
condition 15 38 39.4


or 2 conditions

line l !l condition
34 0 18 $$argvs{'root'} || $ENV{'HAINEKO_ROOT'} || '.'
35 0 18 $$argvs{'conf'} || $ENV{'HAINEKO_CONF'} || ''
41 18 0 $$argvs{'conf'}{'smtpd'}{'milter'}{'libs'} || []
116 0 0 shift() || 302
125 0 1 shift() || 404
137 0 1 $self->req->header('X-Forwarded-For') || ''
138 0 1 $self->req->referer // undef
1 0 (pop @$addr || $self->req->address) // undef
1 0 $self->req->env->{'REMOTE_ADDR'} // undef
0 1 $self->req->user_agent // undef

or 3 conditions

line l !l&&r !l&&!r condition
40 0 18 0 'Haineko::JSON'->loadfile($hainekocfg) || 'Haineko::Default'->conf
48 0 36 0 $$argvs{'conf'}{'smtpd'}{$e} || 'Haineko::Default'->table($e)
77 0 18 0 $$argvs{'router'} ||= 'Haineko::HTTPD::Router'->new
78 18 0 0 $$argvs{'request'} ||= 'Haineko::HTTPD::Request'->new
79 0 18 0 $$argvs{'response'} ||= 'Haineko::HTTPD::Response'->new
138 0 1 0 pop @$addr || $self->req->address