Condition Coverage

blib/lib/IO/Lambda/HTTP.pm
Criterion Covered Total %
condition 16 63 25.4


and 3 conditions

line !l l&&!r l&&r condition
97 0 4 0 not $was_failed_auth and $response->code eq '401'
4 0 0 not $was_failed_auth and $response->code eq '401' and defined $self->{'username'}
4 0 0 not $was_failed_auth and $response->code eq '401' and defined $self->{'username'} and defined $self->{'password'}
167 0 0 0 $@ and not $@ =~ m[^Can't locate IO/Lambda/HTTP/Authen/$auth]
173 0 0 0 $DEBUG and $lambda
268 8 0 0 $self->{'async_dns'} and not $host =~ /^(\d{1,3}\.){3}(\d{1,3})$/
302 8 0 0 $DEBUG and not $sock
321 8 0 0 $cc and not $self->{'close_connection'}
323 0 0 0 $DEBUG and not $err
328 8 0 0 $DEBUG and $self->{'close_connection'}
374 0 8 0 not $self->{'proxy'} and ($req->protocol || '') =~ m[http/1.\d]i
439 4 0 4 defined $l and $l =~ /^(\d+)\s*$/
451 0 0 4 $headers->protocol =~ m[^HTTP/(\d+\.\d+)] and $1 < 1.1

or 2 conditions

line l !l condition
152 0 0 $preferred{$b} || 0
0 0 $preferred{$a} || 0
284 0 8 $req->header('Connection') || ''
374 0 8 $req->protocol || ''
423 0 8 $headers->header('Connection') || ''
443 0 4 $headers->header('Transfer-Encoding') || ''

or 3 conditions

line l !l&&r !l&&!r condition
91 0 8 0 $method || $self->handle_connection($req)
252 0 0 0 ref $self->{'proxy'} ne 'ARRAY' or not @{$self->{'proxy'};}
257 0 0 0 $port ||= $req->uri->port
273 0 0 0 $self->{'deadline'} || $IO::Lambda::DNS::TIMEOUT