Branch Coverage

blib/lib/Dancer/Template/Abstract.pm
Criterion Covered Total %
branch 23 32 71.8


line true false branch
34 94 18 unless $view =~ /\.\Q$def_tmpl_ext\E$/
45 101 93 if -f $view_path
59 5 5 if -e $layout_path
63 5 0 if (-e $layout_path) { }
96 42 0 if defined $content
113 2 2 $options->{'layout'} ? :
4 23 exists $options->{'layout'} ? :
115 0 27 unless defined $content
117 22 5 unless defined $layout
136 5 0 if defined $full_content
154 83 0 if (my $request = "Dancer::SharedData"->request)
161 83 0 if "Dancer::App"->current->setting("session")
177 39 0 if ($view) { }
180 38 1 if ($engine->view_exists($view_path)) { }
195 24 0 if defined $content
198 24 0 if defined $full_content