Branch Coverage

blib/lib/Tenjin/Template.pm
Criterion Covered Total %
branch 10 80 12.5


line true false branch
92 0 16 defined $opts && exists $$opts{'escapefunc'} ? :
93 0 16 defined $opts && exists $$opts{'rawclass'} ? :
105 0 16 if $filename
124 0 21 if ($$self{'func'}) { }
127 11 10 if ref $_context eq 'HASH'
130 21 0 unless $$self{'args'}
234 0 0 if $text
235 0 0 if $mspace eq ' '
237 0 0 if $rspace
238 0 0 if $mspace
239 0 0 if $lspace
242 0 0 $pos == 0 ? :
243 0 0 if $rest
254 0 0 if ($stmt =~ /\A(\s*)(\w+)\((.*?)\);?(\s*)\Z/)
257 0 0 if defined $s
261 0 0 unless ($$self{'args'})
262 0 0 if ($stmt =~ /\A(\s*)\#\@ARGS\s+(.*)(\s*)\Z/)
268 0 0 unless $arg
269 0 0 unless $arg =~ /\A([\$\@\%])?([a-zA-Z_]\w*)\Z/
270 0 0 unless not $1 or $1 eq '$'
328 0 0 $handler ? :
357 0 0 if $text
358 0 0 if $expr
359 0 0 if ($delete_newline)
361 0 0 if (substr($input, $end + 1, 1) eq "\n")
367 0 0 $pos == 0 ? :
399 0 0 unless $text
402 0 0 $is_start ? :
422 0 0 $$bufref[0] =~ / \$_buf \.= \Z/ ? :
423 0 0 $flag_escape ? :
433 0 0 unless ($funcname)
435 0 0 if ($funcname)
460 0 16 if ($$self{'args'})
480 0 0 if $$self{'escapefunc'}
482 0 0 if $$self{'rawclass'}
498 0 16 unless open IN, "<:encoding($Tenjin::ENCODING)", $filename
500 16 0 if $lock_required
521 0 0 $Tenjin::ENCODING eq 'UTF-8' ? :
523 0 0 unless open OUT, $enc, $filename
525 0 0 if $lock_required