Condition Coverage

blib/lib/Mojo/Content.pm
Criterion Covered Total %
condition 74 78 94.8


and 3 conditions

line !l l&&!r l&&r condition
41 17 5 3 &looks_like_number($len) && $len == $offset
90 2514 14 4 $self->is_finished && length $self->{'buffer'} > $self->max_leftover_size
104 1517 942 112 $self->auto_relax and not length $len
149 4 102 46 defined $chunk and not length $chunk
162 1 87 22 defined $chunk and not length $chunk
192 507 931 62 $self->auto_decompress and $self->is_compressed
292 590 2905 2293 $self->{'state'} ne "headers" and not $self->{'body'}++

or 2 conditions

line l !l condition
20 1418 1632 (shift())->headers->content_type // ""
23 799 281 (shift())->headers->content_type // ""
36 99 146 $self->{'body_buffer'} //= ""
54 66 933 (shift())->headers->content_encoding // ""
58 5297 40 +(shift())->{'state'} // ""
64 18 3 +(shift())->{'state'} // ""
66 1249 1305 (shift())->headers->content_type // ""
78 401 2293 $self->{'real_size'} //= 0
81 33 107 $self->{'chunk_state'} // ""
103 1423 1148 $headers->content_length // ""
105 40 72 $headers->connection // ""
111 259 27 $self->{'buffer'} //= ""
119 224 2061 $self->{'size'} ||= 0
140 2246 68 $self->{'header_size'} || 0
204 62 0 $self->{'post_buffer'} // ""
219 2 138 $self->{'chunk_state'} // ""
241 31 107 $self->{'chunk_state'} // ""
244 107 31 $self->{'pre_buffer'} // ""
283 22 0 $self->{'pre_buffer'} // ""
289 2989 2799 $chunk //= ""
291 3525 2263 $self->{'state'} ||= "headers"

or 3 conditions

line l !l&&r !l&&!r condition
20 125 0 187 $1 // $2
106 38 72 2 $connection eq "close" or not $connection
110 107 179 2285 $self->is_chunked or $self->relaxed
139 2267 47 6 $state eq "body" or $state eq "finished"
196 10 52 0 $self->{'gz'} //= "Compress::Raw::Zlib::Inflate"->new("WindowBits", 16)