Branch Coverage

blib/lib/HTML/Template/Parser/TreeWriter/TextXslate/Metakolon.pm
Criterion Covered Total %
branch 33 44 75.0


line true false branch
32 5 33 if ($$node[0] eq 'function' and $$node[1][1] =~ /^(form|html)$/)
54 5 33 if ($self->is_escaped($src))
58 7 31 if (lc $node->escape eq 'html')
63 2 36 if (defined $node->default)
66 0 38 if ($node->escape)
70 0 38 if ($name_or_expr =~ /^\$(.*)/ and $self->special_raw_var_map->{$1})
73 26 12 if ($is_raw) { }
83 9 0 if ($node->name_or_expr->[0] eq 'name')
87 1 8 if ($ENV{'OLD_TEMPLATE_SUFFIX'} and $ENV{'NEW_TEMPLATE_SUFFIX'})
88 1 0 if ($node->name_or_expr->[1][0] eq 'string')
94 1 8 if ($self->wrap_template_target) { }
99 4 5 if ($self->current_context) { }
183 19 95 if ($$node[0] eq 'op')
185 0 19 unless $op_name
232 0 8 if ($self->_is_static_function($name)) { }
259 0 8 if $name eq 'not'
278 12 35 if ($self->current_context) { }
279 2 10 if ($$node[1] =~ /^__counter__$/) { }
0 10 elsif ($$node[1] =~ /^__first__$/) { }
0 10 elsif ($$node[1] =~ /^__last__$/) { }
0 10 elsif ($$node[1] =~ /^__inner__$/) { }
0 10 elsif ($$node[1] =~ /^__odd__$/) { }