Branch Coverage

blib/lib/Text/MustacheTemplate/Parser.pm
Criterion Covered Total %
branch 76 80 100.0


line true false branch
72 1226 1930 if ($type == 0) { }
91 1839 elsif ($type == 1) { }
1256 583 elsif ($type == 2) { }
583 0 elsif ($type == 3) { }
74 850 376 if ($i != 1)
76 621 229 if (_needs_trim_around_whitespaces($tokens[$prev]))
80 523 98 $prev != 1 ? :
84 270 351 if ($is_empty_before_prev)
89 1167 59 if $text
93 0 91 if ($i == $#tokens)
98 73 18 if (_needs_trim_around_whitespaces($tokens[$next]))
102 61 12 $next != $#tokens ? :
108 36 55 if ($needs_padding)
112 325 931 if (@$token == 3) { }
931 0 elsif (@$token == 4) { }
114 2 323 if $tag_body =~ /[\r\n]/mou
120 897 34 if ($TRIM_INNER_WHITESPACE_TYPES{$tag_type})
121 2 895 if $tag_body =~ /[\r\n]/mou
126 65 864 if ($tag_type eq '{' or $tag_type eq '&') { }
34 830 elsif ($tag_type eq '!') { }
154 676 elsif ($tag_type eq '#') { }
64 612 elsif ($tag_type eq '^') { }
105 507 elsif ($tag_type eq '$') { }
53 454 elsif ($tag_type eq '<') { }
372 82 elsif ($tag_type eq '/') { }
82 0 elsif ($tag_type eq '>') { }
143 3 50 if ($is_dynamic) { }
153 1 371 unless @stack
157 2 369 if ($open_tag_body ne $tag_body)
160 147 222 if ($syntax->[1] == 0)
162 143 4 defined $SOURCE ? :
176 75 7 if ($i != 1)
178 14 61 if ($prev->[0] == 1)
185 48 34 if ($is_dynamic) { }
205 3 536 if (@stack)
217 40 1540 if ($type == 3) { }
984 556 elsif ($type == 2) { }
221 771 213 if (@$token == 4) { }
233 1 9 unless $SOURCE
245 2 7 if $len > 0