Branch Coverage

blib/lib/Catalyst/Engine.pm
Criterion Covered Total %
branch 50 58 86.2


line true false branch
45 2 814 if (&Scalar::Util::blessed($body) and $body->can('read') or ref $body eq 'GLOB') { }
48 0 2 unless $self->write($c, $buffer)
73 1 5 &Scalar::Util::blessed($val) ? :
109 0 14 if ($c->debug) { }
297 5 811 if (keys %{$c->request->uploads;})
302 1 7 ref $upload eq 'ARRAY' ? :
320 11 807 if ($length > 0) { }
321 11 0 unless ($c->request->{'_body'})
324 0 11 if exists $c->config->{'uploadtmp'}
334 1 10 if ($remaining > 0)
367 807 10 unless $c->request->{'_body'}
389 1 817 if (my $header = $c->request->header('Cookie'))
412 3 8 ref $param eq 'ARRAY' ? :
419 2 3 ref $param eq 'ARRAY' ? :
420 1 4 if (my $old_param = $c->request->parameters->{$name}) { }
421 1 0 if (ref $old_param eq 'ARRAY') { }
422 1 0 ref $param eq 'ARRAY' ? :
457 3 8 @vals > 1 ? :
489 807 10 unless $c->request->{'_body'}
494 1 7 ref $files eq 'ARRAY' ? :
505 1 7 @uploads > 1 ? :
510 1 7 if (exists $c->request->parameters->{$name}) { }
511 0 1 if (ref $c->request->parameters->{$name} eq 'ARRAY') { }
520 1 6 @filenames > 1 ? :
541 11 12 unless ($$self{'_prepared_read'})
550 10 13 if ($remaining <= 0)
555 1 12 $remaining > $maxlength ? :
557 13 0 if (defined $rc) { }
602 39 807 unless ($$self{'_prepared_write'})