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 2526 14 4 $self->is_finished && length $self->{'buffer'} > $self->max_leftover_size
104 1527 943 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 517 932 62 $self->auto_decompress and $self->is_compressed
292 600 2918 2293 $self->{'state'} ne "headers" and not $self->{'body'}++

or 2 conditions

line l !l condition
20 1429 1637 (shift())->headers->content_type // ""
23 799 281 (shift())->headers->content_type // ""
36 99 146 $self->{'body_buffer'} //= ""
54 66 934 (shift())->headers->content_encoding // ""
58 5319 40 +(shift())->{'state'} // ""
64 18 3 +(shift())->{'state'} // ""
66 1260 1306 (shift())->headers->content_type // ""
78 412 2293 $self->{'real_size'} //= 0
81 33 106 $self->{'chunk_state'} // ""
103 1433 1149 $headers->content_length // ""
105 41 71 $headers->connection // ""
111 260 27 $self->{'buffer'} //= ""
119 234 2061 $self->{'size'} ||= 0
140 2256 68 $self->{'header_size'} || 0
204 62 0 $self->{'post_buffer'} // ""
219 2 137 $self->{'chunk_state'} // ""
241 31 106 $self->{'chunk_state'} // ""
244 106 31 $self->{'pre_buffer'} // ""
283 22 0 $self->{'pre_buffer'} // ""
289 3005 2806 $chunk //= ""
291 3548 2263 $self->{'state'} ||= "headers"

or 3 conditions

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