Condition Coverage

lib/PAGI/Middleware/ContentLength.pm
Criterion Covered Total %
condition 20 27 74.0


and 3 conditions

line !l l&&!r l&&r condition
82 5 0 0 lc $h->[0] eq "transfer-encoding" and lc $h->[1] eq "chunked"
130 3 0 3 @buffered_events and not $has_content_length
3 0 3 @buffered_events and not $has_content_length and not $is_streaming

or 2 conditions

line l !l condition
46 1 6 $config->{'auto_chunked'} // 0
73 6 0 $event->{'headers'} // []
135 3 0 $event->{'body'} // ""

or 3 conditions

line l !l&&r !l&&!r condition
89 1 0 5 $has_content_length or $is_streaming
1 1 4 $has_content_length or $is_streaming or $self->{'auto_chunked'}
99 1 1 5 $has_content_length or $is_streaming
2 1 4 $has_content_length or $is_streaming or $self->{'auto_chunked'}