blib/lib/Mojo/Content.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 73 | 77 | 94.8 |
line | !l | l&&!r | l&&r | condition |
---|---|---|---|---|
40 | 7 | 5 | 3 | &looks_like_number($len) && $len == $offset |
76 | 2429 | 0 | 135 | $self->is_chunked and $self->{'state'} ne "headers" |
84 | 2411 | 14 | 4 | $self->is_finished && length $self->{'buffer'} > $self->max_leftover_size |
98 | 1463 | 921 | 81 | $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 | 519 | 881 | 62 | $self->auto_decompress and $self->is_compressed |
262 | 602 | 2769 | 2160 | $self->{'state'} ne "headers" and not $self->{'body'}++ |
line | l | !l | condition |
---|---|---|---|
19 | 1371 | 1555 | (shift())->headers->content_type // "" |
22 | 783 | 282 | (shift())->headers->content_type // "" |
35 | 73 | 114 | $self->{'body_buffer'} //= "" |
53 | 66 | 883 | (shift())->headers->content_encoding // "" |
57 | 5065 | 40 | +(shift())->{'state'} // "" |
63 | 18 | 3 | +(shift())->{'state'} // "" |
75 | 404 | 2160 | $self->{'real_size'} //= 0 |
78 | 32 | 103 | $self->{'chunk_state'} // "" |
97 | 1393 | 1072 | $headers->content_length // "" |
99 | 16 | 65 | $headers->connection // "" |
105 | 248 | 11 | $self->{'buffer'} //= "" |
113 | 235 | 1971 | $self->{'size'} ||= 0 |
134 | 2169 | 66 | $self->{'header_size'} || 0 |
188 | 62 | 0 | $self->{'post_buffer'} // "" |
203 | 2 | 133 | $self->{'chunk_state'} // "" |
225 | 30 | 103 | $self->{'chunk_state'} // "" |
228 | 103 | 30 | $self->{'pre_buffer'} // "" |
259 | 2865 | 2666 | $chunk //= "" |
261 | 3400 | 2131 | $self->{'state'} ||= "headers" |
line | l | !l&&r | !l&&!r | condition |
---|---|---|---|---|
19 | 9 | 0 | 312 | $1 // $2 |
100 | 14 | 65 | 2 | $connection eq "close" or not $connection |
104 | 105 | 154 | 2206 | $self->is_chunked or $self->relaxed |
133 | 2188 | 47 | 6 | $state eq "body" or $state eq "finished" |
180 | 10 | 52 | 0 | $self->{'gz'} //= "Compress::Raw::Zlib::Inflate"->new("WindowBits", 16) |