Branch Coverage

blib/lib/Template/Direct/Base.pm
Criterion Covered Total %
branch 25 36 69.4


line true false branch
84 48 37 unless defined $$self{'subtags'}
130 17 41 unless defined $$self{'children'}
161 214 82 unless (shift())->{'children'}
168 0 0 unless (shift())->{'parent'}
175 0 30 unless (shift())->{'depth'}
182 0 12 unless (shift())->{'classParent'}
190 0 0 unless (shift())->{'classDepth'}
199 0 0 unless $depth
200 0 0 if ($depth == 0)
213 10 12 unless $depth
214 10 12 if ($depth == 0)
261 0 2 if ($o =~ /(\w+)=(.*)?/) { }
282 151 55 if ($$content =~ s/\{\{TAG$start\}\}([\w\W]*?)\{\{TAG$end\}\}/{{PH}}/)
316 180 12 if (defined $result) { }
345 74 1 defined $end ? :
349 23 52 if (defined $end and $$start[0] ne $$end[0] || $$end[2] ne 'END') { }
1 51 elsif (not defined $end) { }
361 57 18 if ($$content =~ s/\{\{TAG$startIndex\}\}([\w\W]*?)\{\{TAG$endIndex\}\}/$replaceWith/)