Condition Coverage

lib/Petal/Canonicalizer/XHTML.pm
Criterion Covered Total %
condition 67 103 65.0


and 3 conditions

line !l l&&!r l&&r condition
77 111 0 1 $class->_is_xinclude($tag) and $class->_xinclude($tag, $att)
157 0 0 0 defined $att_str && $att_str
163 0 2 5 defined $att_str && $att_str
172 0 3 0 defined $att_str && $att_str
178 0 77 15 defined $att_str && $att_str
209 102 5 0 defined $node->{'replace'} && $node->{'replace'}
5 0 102 not defined $node->{'replace'} && $node->{'replace'} and uc $tag ne 'AREA'
5 0 102 not defined $node->{'replace'} && $node->{'replace'} and uc $tag ne 'AREA' and uc $tag ne 'BASE'
0 0 102 not defined $node->{'replace'} && $node->{'replace'} and uc $tag ne 'AREA' and uc $tag ne 'BASE' and uc $tag ne 'BASEFONT'
0 1 101 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'
1 0 101 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'
1 0 101 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'
0 1 100 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'
1 0 100 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'
1 4 96 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'
4 0 96 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'
4 1 95 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'
1 0 95 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'
1 0 95 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'

or 2 conditions

line l !l condition
155 0 0 $$att{"${petal}:omit-tag"} || 'string:1'
170 2 1 $$att{"${petal}:omit-tag"} || 'string:1'
235 14 93 $node->{'repeat'} || '0'
236 7 100 $node->{'condition'} || '0'
237 0 107 $node->{'define_slot'} || '0'

or 3 conditions

line l !l&&r !l&&!r condition
139 0 0 102 uc $tag eq 'AREA' or uc $tag eq 'BASE'
0 0 102 uc $tag eq 'AREA' or uc $tag eq 'BASE' or uc $tag eq 'BASEFONT'
0 1 101 uc $tag eq 'AREA' or uc $tag eq 'BASE' or uc $tag eq 'BASEFONT' or uc $tag eq 'BR'
1 0 101 uc $tag eq 'AREA' or uc $tag eq 'BASE' or uc $tag eq 'BASEFONT' or uc $tag eq 'BR' or uc $tag eq 'COL'
1 0 101 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'
0 1 100 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'
1 0 100 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'
1 4 96 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'
4 0 96 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'
4 1 95 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'
1 0 95 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'
1 0 95 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'