Branch Coverage

blib/lib/Plack/App/TemplateToolkit.pm
Criterion Covered Total %
branch 17 28 60.7


line true false branch
18 0 3 unless $self->root
20 3 0 unless $self->dir_index
21 3 0 unless $self->content_type
22 3 0 unless defined $self->interpolate
23 3 0 unless defined $self->eval_perl
24 3 0 unless defined $self->post_chomp
33 1 2 if $self->pre_process
34 1 2 if $self->process
45 5 0 if (my $res = $self->_handle_tt($env))
56 1 4 unless ($path =~ /\.\w{1,6}$/)
65 0 5 if (my $extension = $self->extension)
66 0 0 unless $path =~ /$extension$/
78 4 1 if ($tt->process($path, $vars, \$content)) { }
85 1 0 if ($error =~ /not found/) { }