| blib/lib/POE/Filter/HTTP/Parser.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| condition | 17 | 35 | 48.5 |
| line | !l | l&&!r | l&&r | condition |
|---|---|---|---|---|
| 24 | 0 | 3 | 4 | $opts{'type'} and defined $type_map{$opts{'type'}} |
| 27 | 0 | 0 | 7 | $opts{'type'} and $opts{'type'} =~ /^(request|response)$/ |
| 49 | 19 | 0 | 1 | $@ and $$self{'type'} eq 'request' |
| 54 | 19 | 0 | 0 | $@ and $$self{'debug'} |
| 60 | 0 | 0 | 19 | defined $status and $status == 0 |
| line | l | !l | condition |
|---|---|---|---|
| 101 | 4 | 0 | status_message $code || 'Unknown Error' |
| 102 | 0 | 4 | $_->message || '' |
| 103 | 4 | 0 | $_->protocol || 'HTTP/1.0' |
| 127 | 3 | 0 | $_->method || '-' |
| 159 | 0 | 1 | $data or scalar @{$$self{'BUFFER'};} |
| 169 | 1 | 0 | $content_type ||= 'text/html' |
| 170 | 1 | 0 | $status ||= 200 |
| 184 | 1 | 0 | $status ||= 400 |
| 185 | 1 | 0 | $details ||= '' |
| 186 | 1 | 0 | status_message $status || 'Unknown Error' |