Condition Coverage

blib/lib/HTTP/Parser.pm
Criterion Covered Total %
condition 7 24 29.1


and 3 conditions

line !l l&&!r l&&r condition
259 0 0 2 $http and $http =~ m[^HTTP/(\d+)\.(\d+)$]i
316 0 0 0 not defined $obj->header('content_length') and $self->object->code ne '204'
0 0 0 not defined $obj->header('content_length') and $self->object->code ne '204' and $self->object->code ne '304'
0 0 0 not defined $obj->header('content_length') and $self->object->code ne '204' and $self->object->code ne '304' and not $self->object->code =~ /1\d\d/
397 0 0 0 length $$self{'data'} > $$self{'chunk'} and substr($$self{'data'}, $$self{'chunk'}, 2) =~ /^(\x0d?\x0a)/

or 3 conditions

line l !l&&r !l&&!r condition
76 1 1 2 exists $p{'response'} or exists $p{'request'}
77 3 1 0 $p{'request'} or $p{'response'}
80 0 4 0 ref $class || $class