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
22 45 0 0 $host =~ /:/ and not $host =~ /^\[/
98 0 0 0 defined $1 and not $h->header('Authorization')
106 42 0 1 $proxy and $url->scheme ne 'https'
154 45 0 0 $proxy && $url->scheme eq 'https' && $url->host . ':' . $url->port
163 43 0 2 $proxy && !$ssl_tunnel
193 0 45 0 not $socket and $ssl_tunnel
260 0 41 2 defined $$content_ref and length $$content_ref
377 0 2 0 defined $rbits and $rbits =~ /[^\0]/
381 0 0 0 do { $n == 0 } && do { ++$drop_connection; last WRITE }
393 0 0 0 not $code and $buf =~ /\015?\012\015?\012/
410 0 0 2 defined $wbits and $wbits =~ /[^\0]/
412 2 0 0 do { $n == 0 } && do { die 'write failed: no bytes written' }
421 2 0 0 not $eof and $woffset >= length $$wbuf
491 0 0 0 $peer_http_version eq '1.1' and not $connection{'close'}

or 2 conditions

line l !l condition
132 0 45 $size ||= 4096
277 0 43 $request_headers->header('Expect') || ''
489 0 0 $response->header('Connection') || ''

or 3 conditions

line l !l&&r !l&&!r condition
40 0 0 2 $@ =~ /\bconnect: (.*)/ or $@ =~ /\b(Bad hostname)\b/
0 0 2 $@ =~ /\bconnect: (.*)/ or $@ =~ /\b(Bad hostname)\b/ or $@ =~ /\b(nodename nor servname provided, or not known)\b/
0 0 2 $@ =~ /\bconnect: (.*)/ or $@ =~ /\b(Bad hostname)\b/ or $@ =~ /\b(nodename nor servname provided, or not known)\b/ or $@ =~ /\b(certificate verify failed)\b/
0 0 2 $@ =~ /\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/
67 45 0 0 ref $self || $self
262 2 0 0 not defined $clen or $clen ne $has_content
283 41 0 2 not $has_content or $write_wait
41 0 2 not $has_content or $write_wait or $has_content > 8192
291 0 0 0 $!{'EWOULDBLOCK'} or $!{'EAGAIN'}
345 0 2 2 $write_wait or $woffset < length $$wbuf
361 0 0 0 $!{'EINTR'} or $!{'EWOULDBLOCK'}
0 0 0 $!{'EINTR'} or $!{'EWOULDBLOCK'} or $!{'EAGAIN'}
382 0 0 0 $!{'EINTR'} or $!{'EWOULDBLOCK'}
0 0 0 $!{'EINTR'} or $!{'EWOULDBLOCK'} or $!{'EAGAIN'}
413 0 0 0 $!{'EINTR'} or $!{'EWOULDBLOCK'}
0 0 0 $!{'EINTR'} or $!{'EWOULDBLOCK'} or $!{'EAGAIN'}
470 0 0 0 $!{'EINTR'} or $!{'EWOULDBLOCK'}
0 0 0 $!{'EINTR'} or $!{'EWOULDBLOCK'} or $!{'EAGAIN'}
0 0 0 $!{'EINTR'} or $!{'EWOULDBLOCK'} or $!{'EAGAIN'} or $!{'ENOTTY'}
491 0 0 0 $peer_http_version eq '1.1' and not $connection{'close'} or $connection{'keep-alive'}