Condition Coverage

blib/lib/Limper.pm
Criterion Covered Total %
condition 0 83 0.0


and 2 conditions

line l !l condition
106 0 0 $conn->close && undef

and 3 conditions

line !l l&&!r l&&r condition
138 0 0 0 lc $name eq 'host' and $request->{'version'} eq 'HTTP/1.1'
0 0 0 lc $name eq 'host' and $request->{'version'} eq 'HTTP/1.1' and $request->{'uri'} =~ s[^https?://(.+?)/][/]
153 0 0 0 $request->{'version'} eq 'HTTP/1.1' and !exists $request->{'headers'}{'host'} || ref $request->{'headers'}{'host'}
155 0 0 0 $_ eq 'expect' and lc $request->{'headers'}{$_} eq '100-continue'
0 0 0 $_ eq 'expect' and lc $request->{'headers'}{$_} eq '100-continue' and $request->{'version'} eq 'HTTP/1.1'
0 0 0 $_ eq 'transfer-encoding' and lc $request->{'headers'}{$_} eq 'chunked'
180 0 0 0 defined $request->{'method'} && $request->{'method'} eq 'HEAD'
181 0 0 0 defined $request->{'method'} and exists $$route{$request->{'method'}}
183 0 0 0 $$route{$request->{'method'}}[$i] eq $request->{'path'} || ref $$route{$request->{'method'}}[$i] eq 'Regexp' and $request->{'path'} =~ /$$route{$request->{'method'}}[$i]/
203 0 0 0 defined $response->{'body'} and not ref $response->{'body'}
208 0 0 0 $connection eq 'keep-alive' and $request->{'version'} ne 'HTTP/1.1'

or 2 conditions

line l !l condition
102 0 0 $config->{'timeout'} // 5
112 0 0 $request->{'method'} // !1
117 0 0 $conn->peerhost // 'localhost'
152 0 0 $request->{'headers'}{'user-agent'} // ''
200 0 0 $request->{'version'} // ''
0 0 $request->{'headers'}{'connection'} // ''
0 0 $request->{'headers'}{'connection'} // 'close'
201 0 0 $response->{'status'} //= 200
205 0 0 $response->{'headers'}{'Content-Type'} //= 'text/plain'
207 0 0 $head // 0
209 0 0 $Limper::VERSION // 'pre-release'
214 0 0 $request->{'version'} // 'HTTP/1.1'
220 0 0 $response->{'body'} // ''
265 0 0 $config->{'workers'} // 5
275 0 0 $config->{'debug'} // 0

or 3 conditions

line l !l&&r !l&&!r condition
153 0 0 0 !exists $request->{'headers'}{'host'} || ref $request->{'headers'}{'host'}
183 0 0 0 $$route{$request->{'method'}}[$i] eq $request->{'path'} || ref $$route{$request->{'method'}}[$i] eq 'Regexp'
200 0 0 0 $connection //= ($request->{'version'} // '') eq 'HTTP/1.1' ? lc($request->{'headers'}{'connection'} // '') : (lc($request->{'headers'}{'connection'} // 'close') eq 'keep-alive' ? 'keep-alive' : 'close')
204 0 0 0 $response->{'headers'}{'Content-Length'} //= length $response->{'body'}
208 0 0 0 $connection eq 'close' or $connection eq 'keep-alive' and $request->{'version'} ne 'HTTP/1.1'
214 0 0 0 $response->{'reason'} // $$reasons{$response->{'status'}}