Branch Coverage

blib/lib/Tenjin.pm
Criterion Covered Total %
branch 25 46 54.3


line true false branch
153 6 1 unless defined $self->{'cache'}
156 7 0 unless $self->{'prefix'}
157 7 0 unless $self->{'postfix'}
160 0 7 if $self->{'encoding'}
163 7 0 if $ENCODING =~ /^utf-?8$/i
167 0 7 if defined $self->{'strict'}
211 14 3 unless defined $use_layout
231 1 21 if defined $use_layout and $use_layout eq '0'
234 11 10 if $template_name and $template_name eq '1'
294 0 5 if $template and $template->{'filename'} and $template->{'timestamp'} + $TIMESTAMP_INTERVAL <= time
297 18 5 unless ($template)
320 0 18 if (substr($template_name, 0, 1) eq ':')
339 18 0 if ($path) { }
340 0 18 $^O eq 'MSWin32' ? :
343 18 0 if -f $filepath
346 0 0 if -f $filename
348 0 0 $path ? :
363 0 18 if ($self->{'preprocess'})
364 0 0 unless (defined $_context and $_context->{'_engine'})
400 0 16 if (defined $template->{'args'})
418 0 0 if ($cache =~ s/\A\#\@ARGS (.*)\r?\n//)
444 2 16 if (not $self->{'cache'}) { }
16 0 elsif (not -f $cachename or (stat $cachename)[9] < (stat $filename)[9]) { }