Condition Coverage

blib/lib/Hijk.pm
Criterion Covered Total %
condition 55 107 51.4


and 3 conditions

line !l l&&!r l&&r condition
24 8 4 4 defined $read_timeout and $read_timeout <= 0
34 2 14 0 not $method_has_no_content and $read_length > 0 || $no_content_len
35 26 3 0 defined $read_timeout and $read_timeout <= 0
39 18 0 11 $no_content_len and $decapitated
18 9 2 $no_content_len and $decapitated and !defined($nbytes) || $nbytes == 0
87 54 0 3 $key_lc eq 'transfer-encoding' and $value eq 'chunked'
46 0 4 $key_lc eq 'connection' and $value eq 'close'
44 0 2 $key_lc eq 'trailer' and $value
110 7 1 2 $doing_chunked and $trailer_value_is_true
156 0 0 0 defined $read_timeout and $read_timeout <= 0
211 12 0 9 $chunk_size > 0 and length $buf >= $chunk_size
266 0 5 0 not connect($soc, $addr) and $! != 115
270 0 5 0 defined $connect_timeout and $connect_timeout <= 0
311 28 2 10 $args->{'head'} && @{$args->{'head'};}
335 0 5 0 defined $cache_key and exists $args->{'socket_cache'}{$cache_key}
387 0 0 1 defined $proto and $proto eq 'HTTP/1.0'
416 40 0 10 $nfound == -1 and $! == 4

or 2 conditions

line l !l condition
297 4 36 $args->{'path'} || '/'
311 6 34 $args->{'method'} || 'GET'
36 4 $args->{'protocol'} || 'HTTP/1.1'
381 0 0 $@ || 'zombie error'

or 3 conditions

line l !l&&r !l&&!r condition
34 11 0 3 $read_length > 0 || $no_content_len
3 0 16 not $decapitated or not $method_has_no_content and $read_length > 0 || $no_content_len
35 1 0 29 _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
87 4 0 50 $key_lc eq 'content-length' or lc $key eq 'content-length'
155 0 0 23 length $buf < 3 or length $buf < $chunk_size
0 0 23 length $buf < 3 or length $buf < $chunk_size or $wait_for_last_clrf > 0
156 0 0 0 _select($rin, undef, undef, $read_timeout) != 1 or defined $read_timeout and $read_timeout <= 0
161 0 0 0 $! == 11 or $! == 11
0 0 0 $! == 11 or $! == 11 or $! == 4
362 0 0 0 $! == 11 or $! == 11
0 0 0 $! == 11 or $! == 11 or $! == 4
387 1 2 1 $status == 0 or $close_connection
3 1 0 $status == 0 or $close_connection or defined $proto and $proto eq 'HTTP/1.0'