Branch Coverage

blib/lib/Mojo/Server/FastCGI.pm
Criterion Covered Total %
branch 0 86 0.0


line true false branch
52 0 0 unless ($self->{'listen'})
56 0 0 unless ($listen->fdopen(0, 'r'))
67 0 0 unless ($c = $self->{'listen'}->accept)
78 0 0 unless $c
82 0 0 unless $header
89 0 0 unless $clen
92 0 0 $plen ? :
108 0 0 $self->can('build_tx') ? :
117 0 0 unless ($type and $type eq 'BEGIN_REQUEST')
133 0 0 unless $id == $tx->{'fcgi_id'}
136 0 0 if ($type eq 'PARAMS') { }
0 0 elsif ($type eq 'STDIN') { }
139 0 0 if ($body)
161 0 0 if $name =~ /REMOTE_ADDR/i
162 0 0 if $name =~ /SERVER_PORT/i
170 0 0 if (keys %$env)
176 0 0 unless $body
182 0 0 if $req->error
191 0 0 unless $role
197 0 0 unless $role
214 0 0 unless ($tx)
221 0 0 $self->can('emit') ? :
235 0 0 unless $type
241 0 0 unless $type
247 0 0 unless defined $c and defined $type and defined $id
251 0 0 $body ? :
257 0 0 $body_len > 32768 ? :
279 0 0 unless (defined $written)
282 0 0 if $! == 11 or $! == 4 or $! == 11
294 0 0 if $empty
308 0 0 unless $res->headers->status
320 0 0 unless (defined $chunk)
326 0 0 unless length $chunk
331 0 0 unless $self->write_records($c, 'STDOUT', $tx->{'fcgi_id'}, $chunk)
340 0 0 unless (defined $chunk)
346 0 0 unless length $chunk
351 0 0 unless $self->write_records($c, 'STDOUT', $tx->{'fcgi_id'}, $chunk)
356 0 0 unless $self->write_records($c, 'STDOUT', $tx->{'fcgi_id'}, undef)
359 0 0 unless $self->write_records($c, 'END_REQUEST', $tx->{'fcgi_id'}, "\000\000\000\000\000\000\000\000")
369 0 0 if ($len & 128)
385 0 0 unless (defined $read)
386 0 0 if $! == 11 or $! == 4 or $! == 11
389 0 0 unless $read