Branch Coverage

blib/lib/Net/Async/HTTP/Server/PSGI.pm
Criterion Covered Total %
branch 35 42 83.3


line true false branch
87 11 3 if (exists $args{'app'})
138 9 1 if $path_info eq "/"
165 10 0 if ($socket->can('sockport')) { }
0 0 elsif ($socket->can('hostpath')) { }
187 2 2 unless $name =~ /^CONTENT_(?:LENGTH|TYPE)$/u
205 2 12 if $key eq "Content-Length"
206 0 14 if $key eq "Transfer-Encoding" and $value eq "chunked"
209 2 8 if (not defined $body) { }
6 2 elsif (ref $body eq 'ARRAY') { }
210 0 2 unless defined wantarray
212 1 1 unless ($has_content_length)
219 1 1 $use_chunked_transfer ? :
224 6 0 unless ($has_content_length)
228 1 5 if $found_undef
239 1 1 unless ($has_content_length)
246 1 1 if ($use_chunked_transfer) { }
251 1 2 unless defined $body
257 1 1 if defined $buffer
270 1 1 if defined $buffer
281 7 3 if (ref $resp eq 'ARRAY') { }
3 0 elsif (ref $resp eq 'CODE') { }