Condition Coverage

blib/lib/Net/HTTP/Methods.pm
Criterion Covered Total %
condition 36 94 38.3


and 3 conditions

line !l l&&!r l&&r condition
170 20 0 0 length $content and not $given{'content-length'}
175 20 0 0 $self->send_te and gunzip_ok()
214 0 0 0 defined $_[0] and length $_[0]
220 0 0 0 defined $_[0] and length $_[0]
266 0 481 0 $max_line_length and length $_ > $max_line_length
296 0 151 0 $max_line_length and $pos > $max_line_length
309 202 16 834 $self->isa('IO::Socket::SSL') and $self->pending
310 218 0 0 $self->isa('Net::SSL') and $self->can('pending')
218 0 0 $self->isa('Net::SSL') and $self->can('pending') and $self->pending
368 0 2 0 @headers and $line =~ s/^\s+//
401 0 2 18 $peer_ver and $peer_ver =~ s[^HTTP/][]
2 0 18 $peer_ver and $peer_ver =~ s[^HTTP/][] and $code =~ /^[1-5]\d\d$/
470 3 0 1 @te and $te[-1] eq 'chunked'
473 0 0 0 $_ eq 'deflate' and inflate_ok()
0 0 0 $_ eq 'gzip' and gunzip_ok()
568 0 15 0 $size and $size < $n
591 0 17 1101 $size and $size < $n

or 2 conditions

line l !l condition
150 20 0 do { *$self }->{'http_peer_http_version'} || '1.0'
314 218 0 do { *$self }->{'io_socket_timeout'} || undef
406 1 0 $eol || ''
416 0 1 $opt{'junk_out'} || []
598 5 0 $size ||= 8192

or 3 conditions

line l !l&&r !l&&!r condition
41 12 0 2 not defined $cnf->{$key} or '' eq $cnf->{$key}
53 1 6 0 $peer_uri->_port || $cnf->{'PeerPort'} || $self->http_default_port
62 6 1 1 $host or not $explicit_host
66 6 0 0 $cnf->{'PeerPort'} || $self->http_default_port
127 1 7 0 $v eq '1.0' or $v eq '1.1'
145 0 0 40 /\s/ or not length $_
279 0 0 0 $!{'EINTR'} or $!{'EAGAIN'}
0 0 0 $!{'EINTR'} or $!{'EAGAIN'} or $!{'EWOULDBLOCK'}
324 0 0 0 $!{'EINTR'} or $!{'EAGAIN'}
0 0 0 $!{'EINTR'} or $!{'EAGAIN'} or $!{'EWOULDBLOCK'}
534 0 0 9 not defined $line or $line ne ''