Branch Coverage

blib/lib/Mojolicious/Plugin/HTMLTemplateProRenderer.pm
Criterion Covered Total %
branch 17 28 60.7


line true false branch
22 2 5 if $$conf{'tmpl_opts'}{'use_home_template'} or delete $tmpl_params{'use_home_template'}
32 0 7 if ($controller)
39 1 6 if ($$conf{'tmpl_opts'}{'use_extension'} or delete $tmpl_params{'use_extension'}) { }
42 1 0 if (defined $$options{'inline'}) { }
0 0 elsif (defined $$options{'template'}) { }
46 0 0 if (defined(my $path = $r->template_path($options))) { }
56 1 0 if exists $tmpl_params{'plugins'}
68 2 4 if (defined $$options{'inline'}) { }
4 0 elsif (defined $$options{'template'}) { }
72 3 1 if (defined(my $path = $r->template_path($options))) { }
82 0 6 unless $$conf{'tmpl_opts'}
84 6 0 unless delete $tmpl_params{'tmpl_opts'}
89 0 7 unless ($t)
93 15 1 if ref $tmpl_params{$_} eq 'ARRAY' and $tmpl_params{$_} > 0 and ref $tmpl_params{$_}[0] ne 'HASH'