| blib/lib/POE/Filter/HTTP/Parser.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| condition | 17 | 35 | 48.5 |
| line | !l | l&&!r | l&&r | condition |
|---|---|---|---|---|
| 21 | 0 | 3 | 4 | $opts{'type'} and defined $type_map{$opts{'type'}} |
| 24 | 0 | 0 | 7 | $opts{'type'} and $opts{'type'} =~ /^(request|response)$/ |
| 46 | 19 | 0 | 1 | $@ and $self->{'type'} eq 'request' |
| 51 | 19 | 0 | 0 | $@ and $self->{'debug'} |
| 57 | 0 | 0 | 19 | defined $status and $status == 0 |
| line | l | !l | condition |
|---|---|---|---|
| 98 | 4 | 0 | &status_message($code) || 'Unknown Error' |
| 99 | 0 | 4 | $_->message || '' |
| 100 | 4 | 0 | $_->protocol || 'HTTP/1.0' |
| 124 | 3 | 0 | $_->method || '-' |
| 156 | 0 | 1 | $data or scalar @{$self->{'BUFFER'};} |
| 166 | 1 | 0 | $content_type ||= 'text/html' |
| 167 | 1 | 0 | $status ||= 200 |
| 181 | 1 | 0 | $status ||= 400 |
| 182 | 1 | 0 | $details ||= '' |
| 183 | 1 | 0 | &status_message($status) || 'Unknown Error' |