Branch Coverage

blib/lib/Cake/Engine.pm
Criterion Covered Total %
branch 6 84 7.1


line true false branch
39 3 0 unless $self->debug
40 0 0 if (my $logs = $self->app->{'log'})
56 0 0 if (ref $log eq 'ARRAY') { }
0 0 elsif (ref $log eq 'CODE') { }
62 0 0 if (length $log > 65)
79 0 0 if (my $warnings = delete $self->app->{'warnings'})
131 3 0 if ($type) { }
132 0 3 if uc $type eq 'PSGI'
133 3 0 if (ref $type eq 'CODE')
169 0 0 if $self->method ne 'post'
171 0 0 if (my $tt = $self->env->{'client.input'} || $self->env->{'psgi.input'}) { }
182 0 0 if ($self->env->{'CONTENT_TYPE'} =~ m[^multipart/form-data]i)
219 0 0 unless $header
230 0 0 if ($filename)
240 0 0 if (defined $fh)
272 0 0 unless (defined $$self{'params'})
276 0 0 unless $$self{'uploads'}
292 0 0 if $$self{'params'}
311 0 0 if ($name =~ s/\[(\d+)\]\[(.*?)\]//) { }
314 0 0 unless (ref $$params{$name})
320 0 0 if ($name =~ s/\[\]$// and not ref $$params{$name})
324 0 0 if ($$params{$name}) { }
325 0 0 if (not ref $$params{$name}) { }
349 0 0 if ref $body eq 'GLOB'
351 0 0 if (not ref $body) { }
0 0 elsif (ref $body eq 'CODE') { }
391 0 0 if $header =~ /^Content-Length/i and not $found_content_length
395 0 0 unless ($found_content_length)
397 0 0 if $body
410 0 0 if (ref $body eq 'GLOB') { }
0 0 elsif (ref $body eq 'CODE') { }
427 0 4 if (@_ > 1)
435 0 3 if (@_ > 1)
442 0 0 $_[0]->env->{'SSL_PROTOCOL'} ? :
448 0 0 if $self->is_secure
477 0 0 if (@_)
488 0 0 unless $self->env->{'HTTP_COOKIE'}
491 0 0 if ($self->env->{'cake.cookie.parsed'} and $self->env->{'cake.cookie.string'} eq $self->env->{'HTTP_COOKIE'})
507 0 0 unless exists $results{$key}
520 0 0 if (ref $_[0] eq 'HASH')
528 0 0 if ($$args{'length'})
537 0 0 if ref $_[0] or @_ > 1