blib/lib/POEx/HTTP/Server.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 49 | 89 | 55.0 |
line | !l | l&&!r | l&&r | condition |
---|---|---|---|---|
123 | 0 | 0 | 0 | $op eq 'bind' and $errnum == 98 |
196 | 6 | 0 | 0 | $$I{'LocalAddr'} and not defined $$I{'BindAddr'} |
198 | 0 | 5 | 1 | $$I{'LocalPort'} and not defined $$I{'BindPort'} |
213 | 4 | 1 | 1 | defined $$self{'keepalive'} and $$self{'keepalive'} |
5 | 1 | 0 | defined $$self{'keepalive'} and $$self{'keepalive'} and !($$self{'keepalive'} =~ /^\d+$/) || $$self{'keepalive'} == 1 | |
232 | 0 | 5 | 1 | not defined $$self{'keepalivetimeout'} and $$self{'keepalive'} |
479 | 0 | 0 | 0 | $$self{'C'} >= $$self{'concurrency'} and $$self{'paused'} |
833 | 0 | 0 | 3 | $op eq 'read' and $errnum == 0 |
1035 | 0 | 0 | 16 | $$self{'req'} && $$self{'req'}->uri |
1101 | 4 | 0 | 14 | $$self{'will_close'} and $$self{'req'} |
4 | 0 | 14 | $$self{'will_close'} and $$self{'req'} and $$self{'req'}->protocol eq 'HTTP/1.1' | |
1114 | 0 | 0 | 18 | $$self{'req'} and $$self{'req'}->protocol eq 'HTTP/1.1' |
1164 | 2 | 0 | 11 | $$self{'resp'}->streaming and $$self{'wheel'} |
1287 | 15 | 0 | 0 | not $$self{'flushing'} and $$self{'req'} |
1335 | 0 | 1 | 47 | $$self{'timeout'} and $$self{'connection'} |
1390 | 18 | 0 | 0 | $$self{'pending'} and @{$$self{'pending'};} |
line | l | !l | condition |
---|---|---|---|
178 | 6 | 0 | $$self{'options'} ||= {} |
181 | 5 | 1 | $$self{'headers'} ||= {'Server', join('/', ref $self, $VERSION)} |
192 | 6 | 0 | $$self{'inet'} || {} |
193 | 0 | 6 | $$I{'Listen'} ||= 1 |
202 | 2 | 4 | $$self{'alias'} ||= 'HTTPd' |
210 | 0 | 6 | $$self{'blocksize'} ||= 7500 |
220 | 1 | 5 | $$self{'keepalive'} ||= 0 |
337 | 0 | 0 | $uri ||= '/' |
1118 | 16 | 2 | $$self{'req'}->header('Connection') || '' |
1122 | 0 | 18 | $$self{'resp'}->header('Connection') || '' |
line | l | !l&&r | !l&&!r | condition |
---|---|---|---|---|
213 | 0 | 0 | 1 | !($$self{'keepalive'} =~ /^\d+$/) || $$self{'keepalive'} == 1 |
456 | 4 | 8 | 5 | $$self{'C'} > 0 or $$self{'server'} |
987 | 0 | 15 | 13 | not $$self{'resp'} or $$self{'S'}{'done'} |
15 | 3 | 10 | not $$self{'resp'} or $$self{'S'}{'done'} or $$self{'resp'}->finished | |
1054 | 13 | 6 | 20 | $re eq '' or $path =~ /$re/ |
1373 | 0 | 0 | 3 | $$self{'flushing'} or $state eq 'handling' |
1391 | 0 | 0 | 0 | $$self{'S'}{'shutdown'} or $$self{'S'}{'closing'} |