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 2401 0 135 $self->is_chunked and $self->{'state'} ne "headers"
84 2383 14 4 $self->is_finished && length $self->{'buffer'} > $self->max_leftover_size
98 1449 908 80 $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 517 871 58 $self->auto_decompress and $self->is_compressed
262 598 2738 2136 $self->{'state'} ne "headers" and not $self->{'body'}++

or 2 conditions

line l !l condition
19 1355 1541 (shift())->headers->content_type // ""
22 774 278 (shift())->headers->content_type // ""
35 73 114 $self->{'body_buffer'} //= ""
53 62 873 (shift())->headers->content_encoding // ""
57 5010 40 +(shift())->{'state'} // ""
63 18 3 +(shift())->{'state'} // ""
75 400 2136 $self->{'real_size'} //= 0
78 32 103 $self->{'chunk_state'} // ""
97 1379 1058 $headers->content_length // ""
99 15 65 $headers->connection // ""
105 246 11 $self->{'buffer'} //= ""
113 233 1947 $self->{'size'} ||= 0
134 2143 66 $self->{'header_size'} || 0
188 58 0 $self->{'post_buffer'} // ""
203 2 133 $self->{'chunk_state'} // ""
225 30 103 $self->{'chunk_state'} // ""
228 103 30 $self->{'pre_buffer'} // ""
259 2835 2637 $chunk //= ""
261 3365 2107 $self->{'state'} ||= "headers"

or 3 conditions

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