Branch Coverage

blib/lib/Mojolicious/Plugin/HTMLTemplateProRenderer.pm
Criterion Covered Total %
branch 18 30 60.0


line true false branch
18 0 7 if $opt->{'template'} =~ /(exception)|(not_found)|(development)/
30 2 5 if $conf->{'tmpl_opts'}{'use_home_template'} or delete $tmpl_params{'use_home_template'}
38 0 7 if ($controller)
45 1 6 if ($conf->{'tmpl_opts'}{'use_extension'} or delete $tmpl_params{'use_extension'}) { }
48 1 0 if (defined $options->{'inline'}) { }
0 0 elsif (defined $options->{'template'}) { }
52 0 0 if (defined(my $path = $r->template_path($options))) { }
63 1 0 if exists $tmpl_params{'plugins'}
74 2 4 if (defined $options->{'inline'}) { }
4 0 elsif (defined $options->{'template'}) { }
78 3 1 if (defined(my $path = $r->template_path($options))) { }
90 0 6 unless $conf->{'tmpl_opts'}
91 6 0 unless delete $tmpl_params{'tmpl_opts'}
95 0 7 unless ($t)
102 8 1 if ref $tmpl_params{$_} eq 'ARRAY' and $tmpl_params{$_} > 0 and ref $tmpl_params{$_}[0] ne 'HASH'