Condition Coverage

blib/lib/Mojolicious/Plugin/AccessLog.pm
Criterion Covered Total %
condition 30 49 61.2


and 3 conditions

line !l l&&!r l&&r condition
46 3 0 2 &blessed($log) and my $l = $log->can('print') || $log->can('info')
0 0 1 defined $log and not ref $log
157 1 1 58 $_[7] and $_[7] - $_[2]->header_size - $_[2]->start_line_size

or 2 conditions

line l !l condition
43 8 1 &reftype($log) // ''
118 75 29 $_[1]->headers->header($block) // '-'
121 18 0 $_[2]->headers->header($block) // '-'
139 0 0 $block // ''
142 0 0 $block // ''
155 7 0 $_[0]->local_address // '-'
176 65 1 $_[2]->code // '-'
186 7 0 $env->{'REMOTE_USER'} // ''
7 37 $_[3]->base->userinfo || '-:'
225 9 0 ($conf->{'lf'} // $/) // "\n"
264 614 0 (&$_(@args))[0] // ''

or 3 conditions

line l !l&&r !l&&!r condition
34 7 2 0 $conf->{'log'} // $app->log->handle
46 1 1 0 $log->can('print') || $log->can('info')
97 8 1 0 $conf->{'format'} // $DEFAULT_FORMAT
225 0 9 0 $conf->{'lf'} // $/
238 905 66 0 $sl //= substr($_[1], 0, index($_[1], "\r\n"))
269 44 111 0 shift() // qr/([^[:print:]])/u