Branch Coverage

lib/Su/Template.pm
Criterion Covered Total %
branch 50 62 80.6


line true false branch
69 0 16 if @_
79 0 73 if @_
90 0 73 if $base
91 0 73 if $dir
93 0 73 if ($base or $dir) { }
162 32 28 if ref $_[0] eq 'Su::Template'
163 0 60 $$self{'debug'} ? :
174 10 50 if (substr($org, length($org) - 1) ne "\n")
190 2 1048 if ($b_perl_mode and $l =~ /(.*)%>(\s*)$/) { }
3 1045 elsif ($b_perl_mode) { }
147 898 elsif (substr($l, 0, 1) eq '%') { }
2 896 elsif ($l =~ /^\s*<%(.*)/ and index($l, '%>') == -1) { }
223 144 0 if defined $candidate_str
225 127 17 if $candidate_str
228 140 4 if (defined $2 and $2 eq '=' || $2 eq '==') { }
233 137 3 if ($2 eq '=')
244 137 3 if ($2 eq '=') { }
270 25 119 if defined $4 and $4 eq '~'
274 118 778 if ($b_match)
279 118 0 if defined $candidate_str
281 67 51 if $candidate_str
292 272 778 if ($b_match) { }
296 88 184 $b_need_line_return && !$no_need_newline ? :
305 5 773 if (not $b_need_line_return or $no_need_newline) { }
306 5 0 if $l
317 49 11 if $b_need_tmp_val
319 46 14 if $b_need_escape_hash
325 13 1 if ($tmp_val) { }
1 0 elsif (defined $tmp_val) { }
326 0 60 if $@
328 0 60 if ($DEBUG) { }