Branch Coverage

blib/lib/Net/Async/FastCGI/Request.pm
Criterion Covered Total %
branch 61 80 76.2


line true false branch
108 0 66 if $self->is_aborted
112 0 66 if ($contentlen > 65535)
117 66 0 unless defined $rec->{'reqid'}
132 41 32 if ($type == 4) { }
32 0 elsif ($type == 5) { }
147 24 28 if ($self->{'paramsdone'} and $self->{'stdindone'} || $self->{'stream_stdin'})
160 17 24 if ($len) { }
181 10 22 if ($len) { }
188 4 28 if ($self->{'stream_stdin'}) { }
201 1 23 if $self->{'stream_stdin'} and length $self->{'stdin'}
209 1 4 unless ($on_stdin)
210 0 1 if $self->{'started'}
216 9 4 if $ret and length $self->{'stdin'}
318 0 2 unless length $path
371 25 0 if (defined $encoding) { }
373 0 25 unless defined $codec
396 0 13 if $self->{'stream_stdin'}
400 4 9 if ($self->{'stdin'} =~ s/^(.*[\r\n])//u) { }
1 8 elsif ($self->{'stdin'} =~ s/^(.+)//u) { }
401 4 0 $codec ? :
404 1 0 $codec ? :
425 0 8 if $self->{'stream_stdin'}
428 2 6 unless length $self->{'stdin'}
430 1 5 unless defined $size
436 6 0 $codec ? :
468 0 3 unless $self->{'stream_stdin'}
488 20 16 if (length $self->{'stdout'}) { }
4 12 elsif (my $cb = $self->{'stdout_cb'}) { }
496 3 33 if (length $self->{'stderr'})
524 41 0 $codec ? :
546 3 0 $codec ? :
576 2 2 if (defined $data) { }
608 2 1 defined $_[1] ? :
672 1 20 if $self->is_aborted
680 3 17 if $self->{'used_stderr'}
688 12 8 if ($self->{'keepconn'}) { }
782 0 1 if length $query_string
790 1 0 if exists $params->{'CONTENT_TYPE'}
793 1 0 if exists $params->{'CONTENT_LENGTH'}
798 1 10 if /^HTTP_(.*)$/u