Branch Coverage

blib/lib/Net/Async/FastCGI/Request.pm
Criterion Covered Total %
branch 49 64 76.5


line true false branch
107 0 66 if $self->is_aborted
111 0 66 if ($contentlen > 65535)
116 66 0 unless defined $$rec{'reqid'}
131 35 28 if ($type == 4) { }
28 0 elsif ($type == 5) { }
146 21 28 if ($$self{'stdindone'} and $$self{'paramsdone'})
159 14 21 if ($len) { }
180 7 21 if ($len) { }
276 0 2 unless length $path
323 22 0 if (defined $encoding) { }
325 0 22 unless defined $codec
349 4 9 if ($$self{'stdin'} =~ s/^(.*[\r\n])//) { }
1 8 elsif ($$self{'stdin'} =~ s/^(.+)//) { }
350 4 0 $codec ? :
353 1 0 $codec ? :
374 2 6 unless length $$self{'stdin'}
376 1 5 unless defined $size
382 6 0 $codec ? :
401 20 16 if (length $$self{'stdout'}) { }
4 12 elsif (my $cb = $$self{'stdout_cb'}) { }
409 3 33 if (length $$self{'stderr'})
435 41 0 $codec ? :
455 3 0 $codec ? :
483 2 2 if (defined $data) { }
513 2 1 defined $_[1] ? :
571 1 20 if $self->is_aborted
579 3 17 if $$self{'used_stderr'}
587 12 8 if ($$self{'keepconn'}) { }
675 0 1 if length $query_string
682 1 0 if exists $$params{'CONTENT_TYPE'}
685 1 0 if exists $$params{'CONTENT_LENGTH'}
691 1 10 if /^HTTP_(.*)$/