Condition Coverage

blib/lib/LWP/Protocol/http.pm
Criterion Covered Total %
condition 27 108 25.0


and 3 conditions

line !l l&&!r l&&r condition
20 44 0 0 $host =~ /:/ and not $host =~ /^\[/
96 0 0 0 defined $1 and not $h->header('Authorization')
104 42 0 1 $proxy and $url->scheme ne 'https'
152 44 0 0 $proxy && $url->scheme eq 'https' && $url->host . ':' . $url->port
161 42 0 2 $proxy && !$ssl_tunnel
191 0 44 0 not $socket and $ssl_tunnel
258 0 41 2 defined $$content_ref and length $$content_ref
375 0 2 0 defined $rbits and $rbits =~ /[^\0]/
379 0 0 0 do { $n == 0 } && do { ++$drop_connection; last WRITE }
391 0 0 0 not $code and $buf =~ /\015?\012\015?\012/
408 0 0 2 defined $wbits and $wbits =~ /[^\0]/
410 2 0 0 do { $n == 0 } && do { die 'write failed: no bytes written' }
419 2 0 0 not $eof and $woffset >= length $$wbuf
489 0 0 0 $peer_http_version eq '1.1' and not $connection{'close'}

or 2 conditions

line l !l condition
130 0 44 $size ||= 4096
275 0 43 $request_headers->header('Expect') || ''
487 0 0 $response->header('Connection') || ''

or 3 conditions

line l !l&&r !l&&!r condition
38 0 0 1 $@ =~ /\bconnect: (.*)/ or $@ =~ /\b(Bad hostname)\b/
0 0 1 $@ =~ /\bconnect: (.*)/ or $@ =~ /\b(Bad hostname)\b/ or $@ =~ /\b(nodename nor servname provided, or not known)\b/
0 0 1 $@ =~ /\bconnect: (.*)/ or $@ =~ /\b(Bad hostname)\b/ or $@ =~ /\b(nodename nor servname provided, or not known)\b/ or $@ =~ /\b(certificate verify failed)\b/
0 0 1 $@ =~ /\bconnect: (.*)/ or $@ =~ /\b(Bad hostname)\b/ or $@ =~ /\b(nodename nor servname provided, or not known)\b/ or $@ =~ /\b(certificate verify failed)\b/ or $@ =~ /\b(Crypt-SSLeay can't verify hostnames)\b/
65 44 0 0 ref $self || $self
260 2 0 0 not defined $clen or $clen ne $has_content
281 41 0 2 not $has_content or $write_wait
41 0 2 not $has_content or $write_wait or $has_content > 8192
289 0 0 0 $!{'EWOULDBLOCK'} or $!{'EAGAIN'}
343 0 2 2 $write_wait or $woffset < length $$wbuf
359 0 0 0 $!{'EINTR'} or $!{'EWOULDBLOCK'}
0 0 0 $!{'EINTR'} or $!{'EWOULDBLOCK'} or $!{'EAGAIN'}
380 0 0 0 $!{'EINTR'} or $!{'EWOULDBLOCK'}
0 0 0 $!{'EINTR'} or $!{'EWOULDBLOCK'} or $!{'EAGAIN'}
411 0 0 0 $!{'EINTR'} or $!{'EWOULDBLOCK'}
0 0 0 $!{'EINTR'} or $!{'EWOULDBLOCK'} or $!{'EAGAIN'}
468 0 0 0 $!{'EINTR'} or $!{'EWOULDBLOCK'}
0 0 0 $!{'EINTR'} or $!{'EWOULDBLOCK'} or $!{'EAGAIN'}
0 0 0 $!{'EINTR'} or $!{'EWOULDBLOCK'} or $!{'EAGAIN'} or $!{'ENOTTY'}
489 0 0 0 $peer_http_version eq '1.1' and not $connection{'close'} or $connection{'keep-alive'}