Condition Coverage

blib/lib/Hijk.pm
Criterion Covered Total %
condition 37 101 36.6


and 3 conditions

line !l l&&!r l&&r condition
24 8 0 4 defined $read_timeout and $read_timeout <= 0
34 0 13 0 not $method_has_no_content and $read_length > 0 || $no_content_len
35 26 0 0 defined $read_timeout and $read_timeout <= 0
39 15 0 11 $no_content_len and $decapitated
15 11 0 $no_content_len and $decapitated and !defined($nbytes) || $nbytes == 0
86 42 0 3 $key eq 'Transfer-Encoding' and $value eq 'chunked'
38 0 2 $key eq 'Connection' and $value eq 'close'
36 0 2 $key eq 'Trailer' and $value
109 4 1 2 $doing_chunked and $trailer_value_is_true
155 0 0 0 defined $read_timeout and $read_timeout <= 0
204 12 0 9 $chunk_size > 0 and length $buf >= $chunk_size
246 0 0 0 not connect($soc, $addr) and $! != 115
250 0 0 0 defined $connect_timeout and $connect_timeout <= 0
291 24 2 10 $args->{'head'} && @{$args->{'head'};}
315 0 0 0 defined $cache_key and exists $args->{'socket_cache'}{$cache_key}
367 0 0 0 defined $proto and $proto eq 'HTTP/1.0'
396 27 0 10 $nfound == -1 and $! == 4

or 2 conditions

line l !l condition
277 4 32 $args->{'path'} || '/'
291 2 34 $args->{'method'} || 'GET'
36 0 $args->{'protocol'} || 'HTTP/1.1'
361 0 0 $@ || 'zombie error'

or 3 conditions

line l !l&&r !l&&!r condition
34 11 0 2 $read_length > 0 || $no_content_len
3 0 13 not $decapitated or not $method_has_no_content and $read_length > 0 || $no_content_len
35 0 0 26 _select($rin, undef, undef, $read_timeout) != 1 or defined $read_timeout and $read_timeout <= 0
39 0 2 9 !defined($nbytes) || $nbytes == 0
42 0 0 0 $! == 11 or $! == 11
0 0 0 $! == 11 or $! == 11 or $! == 4
154 0 0 23 length $buf == 0 or length $buf < $chunk_size
155 0 0 0 _select($rin, undef, undef, $read_timeout) != 1 or defined $read_timeout and $read_timeout <= 0
160 0 0 0 $! == 11 or $! == 11
0 0 0 $! == 11 or $! == 11 or $! == 4
342 0 0 0 $! == 11 or $! == 11
0 0 0 $! == 11 or $! == 11 or $! == 4
367 0 0 0 $status == 0 or $close_connection
0 0 0 $status == 0 or $close_connection or defined $proto and $proto eq 'HTTP/1.0'