Branch Coverage

lib/HTML/Template/Default.pm
Criterion Covered Total %
branch 29 36 80.5


line true false branch
17 2 4 unless $filename
23 4 8 unless defined $envar
32 3 3 if (-f $abs) { }
50 3 3 if (scalar @_ > 3) { }
58 1 5 unless defined $_
59 3 2 if (ref $_ eq 'SCALAR')
76 0 6 unless defined %a
80 4 2 $a{'filename'} ? :
5 1 $a{'scalarref'} ? :
85 0 6 unless $a{'filename'} or $a{'scalarref'}
88 3 3 if (my $abs = _get_abs_tmpl($a{'filename'}))
97 3 0 if (my $tmpl = 'HTML::Template'->new(%_a))
103 3 0 if ($a{'scalarref'})
109 3 0 if (my $tmpl = 'HTML::Template'->new(%_a))
133 2 2 unless $opt{'filename'} and $opt{'filehandle'} || $opt{'arrayref'} || $opt{'scalarref'}
142 1 1 if (HTML::Template::_find_file({'options', {'path', $opt{'path'} || []}}, $opt{'filename'})) { }
148 1 0 if $HTML::Template::Default::DEBUG
155 1 0 if $HTML::Template::Default::DEBUG