Condition Coverage

lib/Petal/Canonicalizer/XML.pm
Criterion Covered Total %
condition 50 58 86.2


and 3 conditions

line !l l&&!r l&&r condition
156 1253 0 46 $class->_is_xinclude($tag) and $class->_xinclude($tag, $att)
224 0 4 1 defined $att_str && $att_str
230 0 475 744 defined $att_str && $att_str
261 1224 0 24 defined $node->{'replace'} and $node->{'replace'}
279 1224 0 24 defined $node->{'replace'} and $node->{'replace'}
329 17433 1413 9 defined $tmp and $tmp->{'use-macro'}
351 26 0 270 defined $_ && $_
548 0 0 53 defined $attr and defined $expr

or 2 conditions

line l !l condition
56 29 173 $header ||= ''
222 2 3 $$att{"${petal}:omit-tag"} || 'string:1'
274 16 1232 $node->{'repeat'} || '0'
275 33 1215 $node->{'condition'} || '0'
276 4 1244 $node->{'define_slot'} || '0'
373 4 1398 delete $$att{"${petal}:on-error"} || (return)
396 11 1386 delete $$att{"${petal}:set"} || delete $$att{"${petal}:def"} || delete $$att{"${petal}:define"} || (return)
417 40 1362 delete $$att{"${petal}:if"} || delete $$att{"${petal}:condition"} || (return)
439 4 1398 delete $$att{"${metal}:define-slot"} || (return)
464 30 1372 delete $$att{"${petal}:for"} || delete $$att{"${petal}:foreach"} || delete $$att{"${petal}:loop"} || delete $$att{"${petal}:repeat"} || (return)
492 29 1326 delete $$att{"${petal}:replace"} || delete $$att{"${petal}:outer"} || (return)
518 9 1402 delete $$att{"${metal}:use-macro"} || (return)
541 35 1289 delete $$att{"${petal}:att"} || delete $$att{"${petal}:attr"} || delete $$att{"${petal}:atts"} || delete $$att{"${petal}:attributes"} || (return)
576 1 1262 delete $$att{"${petal}:content"} || delete $$att{"${petal}:contents"} || delete $$att{"${petal}:inner"} || (return)

or 3 conditions

line l !l&&r !l&&!r condition
334 73 62 63808 defined $Petal::Canonicalizer::XML::NodeStack[$i]{'replace'} or defined $Petal::Canonicalizer::XML::NodeStack[$i]{'content'}
135 80 63728 defined $Petal::Canonicalizer::XML::NodeStack[$i]{'replace'} or defined $Petal::Canonicalizer::XML::NodeStack[$i]{'content'} or defined $Petal::Canonicalizer::XML::NodeStack[$i]{'use-macro'}