Condition Coverage

blib/lib/Mojo/Content.pm
Criterion Covered Total %
condition 73 77 94.8


and 3 conditions

line !l l&&!r l&&r condition
40 7 5 3 &looks_like_number($len) && $len == $offset
76 2431 0 139 $self->is_chunked and $self->{'state'} ne "headers"
84 2413 14 4 $self->is_finished && length $self->{'buffer'} > $self->max_leftover_size
98 1479 908 84 $self->auto_relax and not length $len
143 2 44 29 defined $chunk and not length $chunk
156 1 81 21 defined $chunk and not length $chunk
176 547 875 58 $self->auto_decompress and $self->is_compressed
262 636 2777 2136 $self->{'state'} ne "headers" and not $self->{'body'}++

or 2 conditions

line l !l condition
19 1384 1565 (shift())->headers->content_type // ""
22 774 278 (shift())->headers->content_type // ""
35 73 114 $self->{'body_buffer'} //= ""
53 62 877 (shift())->headers->content_encoding // ""
57 5073 40 +(shift())->{'state'} // ""
63 18 3 +(shift())->{'state'} // ""
75 434 2136 $self->{'real_size'} //= 0
78 32 107 $self->{'chunk_state'} // ""
97 1408 1063 $headers->content_length // ""
99 15 69 $headers->connection // ""
105 251 11 $self->{'buffer'} //= ""
113 262 1947 $self->{'size'} ||= 0
134 2172 66 $self->{'header_size'} || 0
188 58 0 $self->{'post_buffer'} // ""
203 2 137 $self->{'chunk_state'} // ""
225 30 107 $self->{'chunk_state'} // ""
228 107 30 $self->{'pre_buffer'} // ""
259 2888 2661 $chunk //= ""
261 3442 2107 $self->{'state'} ||= "headers"

or 3 conditions

line l !l&&r !l&&!r condition
19 9 0 340 $1 // $2
100 13 69 2 $connection eq "close" or not $connection
104 109 153 2209 $self->is_chunked or $self->relaxed
133 2191 47 6 $state eq "body" or $state eq "finished"
180 10 48 0 $self->{'gz'} //= "Compress::Raw::Zlib::Inflate"->new("WindowBits", 16)