Branch Coverage

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


line true false branch
35 94 18 unless $view =~ /\.\Q$def_tmpl_ext\E$/
46 101 93 if -f $view_path
60 5 5 if -e $layout_path
64 5 0 if (-e $layout_path) { }
97 42 0 if defined $content
114 2 2 $options->{'layout'} ? :
4 23 exists $options->{'layout'} ? :
116 0 27 unless defined $content
118 22 5 unless defined $layout
137 5 0 if defined $full_content
155 83 0 if (my $request = "Dancer::SharedData"->request)
162 83 0 if "Dancer::App"->current->setting("session")
178 39 0 if ($view) { }
181 38 1 if ($engine->view_exists($view_path)) { }
196 24 0 if defined $content
199 24 0 if defined $full_content