Condition Coverage

lib/HTML/Normalize.pm
Criterion Covered Total %
condition 31 45 68.8


and 3 conditions

line !l l&&!r l&&r condition
263 23 37 0 $paramTypes{$key}[0] < 2 and exists $$self{$key}
326 23 0 0 exists $$self{'defaults'}{$tag}{$attrib} and $$self{'defaults'}{$tag}{$attrib} ne $value
377 0 49 185 ref $parent and ref $$parent{'_content'}
407 63 2 44 $$elt{'_tag'} =~ /$$self{'inline'}/ and $$elt{'_tag'} =~ /$$self{'needattr'}/
415 0 40 4 @elts and @elts == $blockElts
440 10 28 4 @elts == 1 and ref $elts[0]
38 4 0 @elts == 1 and ref $elts[0] and $elts[0]{'_tag'} =~ /$$self{'block'}/
462 100 1 4 $$elt{'_tag'} eq 'a' and $$self{-'expelbr'}
469 6 0 2 ref $br and $$br{'_tag'} eq 'br'
537 0 23 22 not $$self{-'keepimplicit'} and $$elt{'_implicit'}

or 2 conditions

line l !l condition
253 38 0 $params ||= []
254 38 0 $okParams ||= []
255 38 0 $requiredParams ||= []

or 3 conditions

line l !l&&r !l&&!r condition
278 0 19 0 $paramTypes{$key}[0] != 1 or exists $$self{$key}
532 0 23 33 $$self{-'keepimplicit'} or not $$elt{'_implicit'}
23 22 11 $$self{-'keepimplicit'} or not $$elt{'_implicit'} or $$elt{'_content'}