Branch Coverage

blib/lib/Dancer.pm
Criterion Covered Total %
branch 56 78 71.7


line true false branch
183 2 2 defined $value ? :
2 4 ref $value eq 'ARRAY' ? :
197 3 29 @_ == 0 ? :
215 107 1256 'Dancer::App'->applications ? :
217 0 21 unless "Dancer::SharedData"->request->params->{'splat'}
248 2 330 if ($_ eq ':moose') { }
125 205 elsif ($_ eq ':tests') { }
204 1 elsif ($_ eq ':syntax') { }
1 0 elsif ($_ eq ':script') { }
267 204 100 if $syntax_only
269 1 99 if $ENV{'PLACK_ENV'}
271 98 2 unless $as_script
291 1 8 if $options{'prefix'}
292 1 8 if $options{'settings'}
297 2 7 unless $res
310 84 110 if (-d (my $fulldir = "File::Spec"->catdir($script_dirs, $script_name)))
317 0 194 if ($script_vol) { }
326 0 194 if $script_dirs[$#script_dirs - 1] eq "bin" or $script_dirs[$#script_dirs - 1] eq "public" or $script_dirs[$#script_dirs - 1] eq "t"
344 127 67 unless setting("confdir")
353 0 194 unless $res
365 18 1 unless ($destination =~ /^ $scheme_re : /x)
375 0 18 unless engine("session")
377 8 8 @_ == 1 ? :
2 16 @_ == 0 ? :
390 0 9 if ($options{'streaming'} and not $env->{'psgi.streaming'})
395 3 6 if (exists $options{'content_type'})
400 0 9 if (&Scalar::Util::blessed($path) and $path->isa("IO::Scalar"))
405 1 8 if (ref $path eq 'SCALAR') { }
409 1 0 exists $options{'content_type'} ? :
413 2 6 if ($options{'system_path'} and -f $path) { }
420 8 1 if ($resp)
422 2 6 if (exists $options{'filename'})
428 0 8 if ($options{'streaming'})
433 0 0 defined $options{'callbacks'} ? :
439 0 0 if exists $callbacks{'override'}
451 0 0 if exists $callbacks{'around'}
453 0 0 if (ref $content) { }
457 0 0 if (exists $callbacks{'around_content'}) { }
486 0 0 if ($request)