Condition Coverage

blib/lib/HTTP/Handy.pm
Criterion Covered Total %
condition 21 62 33.8


and 3 conditions

line !l l&&!r l&&r condition
135 0 0 0 defined $request_line and $request_line ne ""
142 0 0 0 defined $method and $method eq 'GET' || $method eq 'POST'
158 0 0 0 defined $path and $path ne ""
182 0 0 0 $headers{'host'} && $headers{'host'} =~ /:(\d+)$/
196 0 0 0 $method eq "POST" and $content_length > 0
237 0 0 0 ref $response eq "ARRAY" and scalar @$response == 3
425 1 1 6 defined $query and $query ne ""
462 2 1 2 defined $env->{'HTTP_HX_REQUEST'} && $env->{'HTTP_HX_REQUEST'} eq 'true'

or 2 conditions

line l !l condition
177 0 0 $headers{'host'} || 'localhost'
186 0 0 $headers{'content-length'} || 0
210 0 0 $headers{'content-type'} || ''
245 0 0 $STATUS_TEXT{$status} || 'Unknown'
277 0 0 $headers{'user-agent'} || ''
278 0 0 $headers{'referer'} || ''
341 19 1 $docroot ||= "."
345 20 0 $env->{'PATH_INFO'} || '/'
374 14 1 $MIME{$ext} || 'application/octet-stream'
454 9 2 $MIME{$ext} || 'application/octet-stream'
470 1 1 $code ||= 302
482 0 1 $code ||= 200
494 1 1 $code ||= 200
506 0 1 $code ||= 200
532 0 2 $_[3] || 0
545 0 2 $whence ||= 0

or 3 conditions

line l !l&&r !l&&!r condition
142 0 0 0 $method eq 'GET' || $method eq 'POST'
314 0 0 0 $STATUS_TEXT{$code} || $message