Condition Coverage

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


and 2 conditions

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

and 3 conditions

line !l l&&!r l&&r condition
137 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?://(.+?)/][/]
152 0 0 0 $request->{'version'} eq 'HTTP/1.1' and !exists $request->{'headers'}{'host'} || ref $request->{'headers'}{'host'}
154 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'
179 0 0 0 defined $request->{'method'} && $request->{'method'} eq 'HEAD'
180 0 0 0 defined $request->{'method'} and exists $$route{$request->{'method'}}
182 0 0 0 $$route{$request->{'method'}}[$i] eq $request->{'path'} || ref $$route{$request->{'method'}}[$i] eq 'Regexp' and $request->{'path'} =~ /$$route{$request->{'method'}}[$i]/
202 0 0 0 defined $response->{'body'} and not ref $response->{'body'}
207 0 0 0 $connection eq 'keep-alive' and $request->{'version'} ne 'HTTP/1.1'

or 2 conditions

line l !l condition
101 0 0 $config->{'timeout'} // 5
111 0 0 $request->{'method'} // !1
116 0 0 $conn->peerhost // 'localhost'
151 0 0 $request->{'headers'}{'user-agent'} // ''
199 0 0 $request->{'version'} // ''
0 0 $request->{'headers'}{'connection'} // ''
0 0 $request->{'headers'}{'connection'} // 'close'
200 0 0 $response->{'status'} //= 200
204 0 0 $response->{'headers'}{'Content-Type'} //= 'text/plain'
206 0 0 $head // 0
208 0 0 $Limper::VERSION // 'pre-release'
213 0 0 $request->{'version'} // 'HTTP/1.1'
219 0 0 $response->{'body'} // ''
264 0 0 $config->{'workers'} // 5
274 0 0 $config->{'debug'} // 0

or 3 conditions

line l !l&&r !l&&!r condition
152 0 0 0 !exists $request->{'headers'}{'host'} || ref $request->{'headers'}{'host'}
182 0 0 0 $$route{$request->{'method'}}[$i] eq $request->{'path'} || ref $$route{$request->{'method'}}[$i] eq 'Regexp'
199 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')
203 0 0 0 $response->{'headers'}{'Content-Length'} //= length $response->{'body'}
207 0 0 0 $connection eq 'close' or $connection eq 'keep-alive' and $request->{'version'} ne 'HTTP/1.1'
213 0 0 0 $response->{'reason'} // $$reasons{$response->{'status'}}