Branch Coverage

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


line true false branch
184 2 2 defined $value ? :
2 4 ref $value eq 'ARRAY' ? :
198 3 29 @_ == 0 ? :
216 107 1268 'Dancer::App'->applications ? :
218 0 21 unless "Dancer::SharedData"->request->params->{'splat'}
249 2 332 if ($_ eq ':moose') { }
126 206 elsif ($_ eq ':tests') { }
205 1 elsif ($_ eq ':syntax') { }
1 0 elsif ($_ eq ':script') { }
268 205 101 if $syntax_only
270 1 100 if $ENV{'PLACK_ENV'}
272 99 2 unless $as_script
292 1 8 if $options{'prefix'}
293 1 8 if $options{'settings'}
298 2 7 unless $res
311 85 111 if (-d (my $fulldir = "File::Spec"->catdir($script_dirs, $script_name)))
318 0 196 if ($script_vol) { }
327 0 196 if $script_dirs[$#script_dirs - 1] eq "bin" or $script_dirs[$#script_dirs - 1] eq "public" or $script_dirs[$#script_dirs - 1] eq "t"
345 128 68 unless setting("confdir")
354 0 196 unless $res
366 18 1 unless ($destination =~ /^ $scheme_re : /x)
376 0 18 unless engine("session")
378 8 8 @_ == 1 ? :
2 16 @_ == 0 ? :
391 0 9 if ($options{'streaming'} and not $env->{'psgi.streaming'})
396 3 6 if (exists $options{'content_type'})
401 0 9 if (&Scalar::Util::blessed($path) and $path->isa("IO::Scalar"))
406 1 8 if (ref $path eq 'SCALAR') { }
410 1 0 exists $options{'content_type'} ? :
414 2 6 if ($options{'system_path'} and -f $path) { }
421 8 1 if ($resp)
423 2 6 if (exists $options{'filename'})
429 0 8 if ($options{'streaming'})
434 0 0 defined $options{'callbacks'} ? :
440 0 0 if exists $callbacks{'override'}
452 0 0 if exists $callbacks{'around'}
454 0 0 if (ref $content) { }
458 0 0 if (exists $callbacks{'around_content'}) { }
487 0 0 if ($request)