Branch Coverage

blib/lib/HTML/Template/Extension.pm
Criterion Covered Total %
branch 45 78 57.6


line true false branch
49 0 0 unless exists $check{'filename'} or exists $check{'filehandle'} or exists $check{'scalarref'} or exists $check{'arrayref'}
84 0 0 unless defined $$self{$_}
87 0 1 if $HTML::Template::Extension::DEBUG
95 2 14 if ($$self{'_auto_parse'})
98 14 2 if (exists $args{'as'})
107 0 16 if $HTML::Template::Extension::DEBUG
113 13 0 defined $_[0] ? :
114 13 0 if defined $_[1]
115 10 3 if (defined $$self{'filename'} and !defined($$self{'options'}{'filename'}) || $$self{'filename'} ne $$self{'options'}{'filename'} or $$self{'_auto_parse'})
129 1 0 if (@_)
131 1 0 if ($$s{'filename'} ne $new_file)
146 0 0 if (@_)
161 0 0 if (@_)
176 0 0 if (@_)
193 8 4 if (defined $$self{'filename'} and !defined($$self{'options'}{'filename'}) || $$self{'filename'} ne $$self{'options'}{'filename'}) { }
1 3 elsif (exists $$self{'scalarref'}) { }
0 3 elsif (exists $$self{'arrayref'}) { }
0 3 elsif (exists $$self{'filehandle'}) { }
224 0 12 if ($$self{'options'}{'file_cache'})
227 0 12 if $$self{'options'}{'cache'} and not $$self{'options'}{'shared_cache'} and not $$self{'options'}{'file_cache'} or $$self{'options'}{'double_cache'} or $$self{'options'}{'double_file_cache'}
267 8 1 if (ref $module eq '') { }
279 0 15 if (exists $$self{'plugins_cid'}{$module_name})
289 11 4 $$self{'filter_internal'} ? :
290 14 1 if (ref $module eq '') { }
297 15 0 $$self{'filter_internal'} ? :
298 2 13 if $post_code_count == $pre_code_count
299 0 13 if $post_code_count < 0
302 0 13 if (exists $$self{'plugins_cid'}{$module_name}) { }
312 0 0 @_ ? :
316 9 0 if (@_)
319 0 9 if exists $$s{'plugins'}{$module_name}
335 1 0 if (exists $$s{'plugins_cid'}{$module_name})
349 0 1 if $f_id > 0
351 1 0 if $f_id < $#{$$s{'filter_internal'};}
370 0 10 if scalar @procs < 3
376 0 20 if (ref $module) { }
381 10 10 unless ($@)
389 2 23 if (ref $module) { }
392 9 14 unless $module =~ /::/