| blib/lib/Test/HTTP/Server.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| condition | 17 | 30 | 56.6 |
| line | !l | l&&!r | l&&r | condition |
|---|---|---|---|---|
| 288 | 1 | 0 | 4 | defined $func and length $func |
| 331 | 1 | 1 | 0 | !$type || $type eq 'body' and defined $self->{'body'} |
| line | l | !l | condition |
|---|---|---|---|
| 304 | 0 | 5 | $self->{'out_code'} || '200 OK' |
| 317 | 0 | 1 | join('', map("- $_\n", (sort {$a cmp $b;} grep({not 'Test::HTTP::Server::Connection'->can($_);} grep({'Test::HTTP::Server::Request'->can($_);} keys %Test::HTTP::Server::Request::))))) || "NONE\n" |
| 340 | 1 | 0 | shift() || 1 |
| 341 | 0 | 1 | shift() || 'test_cookie%n=true; expires=%date(+600); path=/' |
| 364 | 1 | 0 | shift() || 1024 |
| 365 | 1 | 0 | shift() || '=' |
| line | l | !l&&r | !l&&!r | condition |
|---|---|---|---|---|
| 20 | 0 | 11 | 0 | $ENV{'HTTP_PORT'} || $frompid |
| 150 | 3 | 5 | 0 | shift() || time |
| 328 | 0 | 1 | 1 | not $type or $type eq 'head' |
| 331 | 0 | 1 | 1 | !$type || $type eq 'body' |