Branch Coverage

blib/lib/HTML/Template/Pro/Extension.pm
Criterion Covered Total %
branch 30 48 62.5


line true false branch
47 0 28 if exists $opt{$_}
59 2 0 if $opts{'tmplfile'}
69 17 0 if (my $tmplfile = shift())
71 17 0 unless (ref $tmplfile and $$self{'tmplfile'})
73 6 11 if ($tmplfile eq $$self{'tmplfile'})
87 11 7 if $$self{'__reloadFile'}
88 14 4 if $$self{'__reloadSource'}
89 15 3 if (exists $args{'as'})
93 15 0 if ($self->can('clear_params')) { }
105 14 0 defined $_[0] ? :
106 14 0 if defined $_[1]
118 11 0 if (ref $$self{'tmplfile'} eq '') { }
0 0 elsif (ref $$self{'tmplfile'} eq 'SCALAR') { }
0 0 elsif (ref $$self{'tmplfile'} eq 'ARRAY') { }
0 0 elsif (ref $$self{'tmplfile'} eq 'GLOB') { }
120 0 11 unless defined $filepath
123 0 11 unless defined open(TEMPLATE, $filepath)
152 0 38 unless ref $filter
169 0 10 if exists $$s{'__plugins'}{$module_name}
181 9 1 if (ref $module eq '') { }
203 9 1 if (ref $module eq '') { }
231 2 19 if (ref $module) { }
234 10 9 unless $module =~ /::/
251 9 18 unless ($@)