Branch Coverage

blib/lib/Template/Toolkit/Simple.pm
Criterion Covered Total %
branch 14 34 41.1


line true false branch
69 3 3 @_ ? :
94 0 3 unless my $template = shift()
96 0 3 if ($template =~ qr"//")
101 0 3 if @_
102 0 3 if @_
104 0 3 if ($$self{'output'})
105 0 0 unless $self->process($template, $$self{'data'}, $$self{'output'})
111 0 3 unless $self->process($template, $$self{'data'}, \$output)
188 1 0 $file_name =~ /\.xml$/i ? :
1 1 $file_name =~ /\.json$/i ? :
1 2 $file_name =~ /\.(?:yaml|yml)$/i ? :
0 3 ref $file_name eq 'HASH' ? :
221 0 0 unless (my $template = pop())
229 0 0 if $method =~ /_tag$/
237 0 0 if $option2 =~ s/_/-/g
238 0 0 if defined $$abbreviations{$_}
240 0 0 !defined($$default{$_}) || $option =~ /\-tag$/ ? :