Branch Coverage

blib/lib/Net/Async/HTTP/Server/PSGI.pm
Criterion Covered Total %
branch 34 38 89.4


line true false branch
89 10 2 if (exists $args{'app'})
140 8 1 if $path_info eq '/'
177 2 2 unless $name =~ /^CONTENT_(?:LENGTH|TYPE)$/
195 2 9 if $key eq 'Content-Length'
196 0 11 if $key eq 'Transfer-Encoding' and $value eq 'chunked'
199 2 7 if (not defined $body) { }
5 2 elsif (ref $body eq 'ARRAY') { }
200 0 2 unless defined wantarray
202 1 1 unless ($has_content_length)
209 1 1 $use_chunked_transfer ? :
214 5 0 unless ($has_content_length)
218 1 4 if $found_undef
229 1 1 unless ($has_content_length)
236 1 1 if ($use_chunked_transfer) { }
241 1 2 unless defined $body
247 1 1 if defined $buffer
260 1 1 if defined $buffer
271 6 3 if (ref $resp eq 'ARRAY') { }
3 0 elsif (ref $resp eq 'CODE') { }