blib/lib/Hijk.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 40 | 107 | 37.3 |
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 | |
87 | 42 | 0 | 3 | $key_lc eq 'transfer-encoding' and $value eq 'chunked' |
38 | 0 | 2 | $key_lc eq 'connection' and $value eq 'close' | |
36 | 0 | 2 | $key_lc eq 'trailer' and $value | |
110 | 4 | 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 | 0 | 0 | not connect($soc, $addr) and $! != 115 |
270 | 0 | 0 | 0 | defined $connect_timeout and $connect_timeout <= 0 |
311 | 24 | 2 | 10 | $args->{'head'} && @{$args->{'head'};} |
335 | 0 | 0 | 0 | defined $cache_key and exists $args->{'socket_cache'}{$cache_key} |
387 | 0 | 0 | 0 | defined $proto and $proto eq 'HTTP/1.0' |
416 | 27 | 0 | 10 | $nfound == -1 and $! == 4 |
line | l | !l | condition |
---|---|---|---|
297 | 4 | 32 | $args->{'path'} || '/' |
311 | 2 | 34 | $args->{'method'} || 'GET' |
36 | 0 | $args->{'protocol'} || 'HTTP/1.1' | |
381 | 0 | 0 | $@ || 'zombie error' |
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 | |
87 | 2 | 0 | 40 | $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 | 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' |