Branch Coverage

lib/Petal/Canonicalizer/XHTML.pm
Criterion Covered Total %
branch 31 38 81.5


line true false branch
65 4 112 if $class->_is_inside_content_or_replace
77 1 111 if $class->_is_xinclude($tag) and $class->_xinclude($tag, $att)
84 102 9 unless ($class->_is_inside_content_or_replace)
90 23 30 if $key =~ /^$petal:/
114 15 31 if $key =~ /^$petal:/
116 8 23 if ($value =~ /^<\?attr/) { }
126 0 23 $_ =~ /$Petal::CodeGenerator::PI_RE/s ? :
139 7 95 if (uc $tag eq 'AREA' or uc $tag eq 'BASE' or uc $tag eq 'BASEFONT' or uc $tag eq 'BR' or uc $tag eq 'COL' or uc $tag eq 'FRAME' or uc $tag eq 'HR' or uc $tag eq 'IMG' or uc $tag eq 'INPUT' or uc $tag eq 'ISINDEX' or uc $tag eq 'LINK' or uc $tag eq 'META' or uc $tag eq 'PARAM') { }
153 0 7 if (defined $$att{"${petal}:omit-tag"}) { }
157 0 0 defined $att_str && $att_str ? :
163 5 2 defined $att_str && $att_str ? :
168 3 92 if (defined $$att{"${petal}:omit-tag"}) { }
172 0 3 defined $att_str && $att_str ? :
178 15 77 defined $att_str && $att_str ? :
203 8 108 if $class->_is_inside_content_or_replace('endtag')
207 1 107 if $class->_is_xinclude($tag)
209 95 0 if (not defined $node->{'replace'} && $node->{'replace'} and uc $tag ne 'AREA' and uc $tag ne 'BASE' and uc $tag ne 'BASEFONT' and uc $tag ne 'BR' and uc $tag ne 'COL' and uc $tag ne 'FRAME' and uc $tag ne 'HR' and uc $tag ne 'IMG' and uc $tag ne 'INPUT' and uc $tag ne 'ISINDEX' and uc $tag ne 'LINK' and uc $tag ne 'META' and uc $tag ne 'PARAM')
224 3 92 if (defined $node->{'omit-tag'}) { }
240 0 107 if (exists $node->{'on-error'})