Branch Coverage

blib/lib/Plack/Handler/Net/FastCGI.pm
Criterion Covered Total %
branch 1 58 1.7


line true false branch
19 1 0 $@ ? :
28 0 0 if $$self{'port'}
51 0 0 if ($$self{'listen'}) { }
53 0 0 if ($port =~ s/^://) { }
55 0 0 unless $socket = 'IO::Socket::INET'->new('Listen', 5, 'LocalPort', $port, 'Reuse', 1)
62 0 0 unless $socket = 'IO::Socket::UNIX'->new('Listen', 5, 'Local', $port)
69 0 0 unless -S STDIN
77 0 0 if (unpack('S', $sockaddr) == &Socket::AF_UNIX)
83 0 0 if $$self{'server_ready'} and $proto
98 0 0 ($$env{'HTTPS'} || 'off') =~ /^(?:on|1)$/i ? :
120 0 0 unless (exists $$env{'PATH_INFO'})
126 0 0 if (ref $res eq 'ARRAY') { }
0 0 elsif (ref $res eq 'CODE') { }
153 0 0 if (defined $body) { }
182 0 0 unless my($type, $request_id, $content) = read_record($socket)
189 0 0 if ($request_id == 0) { }
0 0 elsif ($request_id != $current_id and $type != 1) { }
0 0 elsif ($type == 2) { }
0 0 elsif ($type == 1) { }
0 0 elsif ($type == 4) { }
0 0 elsif ($type == 5) { }
190 0 0 if ($type == 9) { }
212 0 0 if ($current_id or $role != 1) { }
213 0 0 $current_id ? :
229 0 0 unless (length $content)
234 0 0 if (length $stdout >= $STDOUT_BUFFER_SIZE)
240 0 0 unless open my $out, '>:via(Plack::Handler::Net::FastCGI)', $stdout_cb
245 0 0 if (length $stderr >= $STDERR_BUFFER_SIZE)
251 0 0 unless open my $err, '>:via(Plack::Handler::Net::FastCGI)', $stderr_cb