Branch Coverage

blib/lib/Dotiac/DTL/Addon/html_template.pm
Criterion Covered Total %
branch 38 52 73.0


line true false branch
41 0 0 if (defined $o and exists $Dotiac::DTL::Addon::html_template_pure::OPTIONS{$a})
69 247 247 if @end
73 533 76 if ($$template =~ /[^<\{]*([<\{])/g) { }
76 321 212 if ($dtag eq '{') { }
79 255 66 if ($n eq '%') { }
63 3 elsif ($n eq '{') { }
3 0 elsif ($n eq '#') { }
81 0 255 if $npos < 0
88 118 137 if $found and grep {$_ eq $tagname;} @end
91 0 137 if ($@)
94 2 135 if ($$pos >= length $$template) { }
100 52 85 if (not $start or $first)
102 0 52 if lc $Dotiac::DTL::Addon::html_template_pure::OPTIONS{'default_escape'} eq 'html'
110 0 63 if $npos < 0
117 0 3 if $npos < 0
125 97 115 if ($$template =~ m[\G(?:!--\s*)? ([/]?)\s* [Tt][Mm][Pp][Ll]_((?:[Vv][Aa][Rr])|(?:[Ii][Ff])|(?:[Ee][Ll][Ss][Ee])|(?:[Uu][Nn][Ll][Ee][Ss][Ss])|(?:[Ll][Oo][Oo][Pp])|(?:[Ii][Nn][Cc][Ll][Uu][Dd][Ee])) \s*( (?: (?: (?:(?:[Dd][Ee][Ff][Aa][Uu][Ll][Tt])|(?:[Ee][Ss][Cc][Aa][Pp][Ee])|(?:[Nn][Aa][Mm][Ee])) \s*=\s* )? (?!-->)(?:(?:"[^">]*")|(?:'[^'>]*')|(?:[^\s=>]*))\s* )* ) (?:--)?>]gsx) { }
143 21 76 if $end
144 7 90 if $end and $tag eq 'loop'
145 3 94 if $end and $tag eq 'unless'
146 28 69 if $found and grep {$_ eq $tagname;} @end
148 69 0 if ($t) { }
149 0 69 if ($$pos >= length $$template) { }
155 24 45 if (not $start or $first)
157 3 21 if lc $Dotiac::DTL::Addon::html_template_pure::OPTIONS{'default_escape'} eq 'html'
180 0 0 if $found
181 0 0 if @end