Condition Coverage

blib/lib/HTML/Normalize.pm
Criterion Covered Total %
condition 9 45 20.0


and 3 conditions

line !l l&&!r l&&r condition
264 0 1 0 $paramTypes{$key}[0] < 2 and exists $self->{$key}
330 0 0 0 exists $self->{'defaults'}{$tag}{$attrib} and $self->{'defaults'}{$tag}{$attrib} ne $value
404 0 2 6 ref $parent and ref $parent->{'_content'}
436 5 0 0 $elt->{'_tag'} =~ /$self->{'inline'}/i and $elt->{'_tag'} =~ /$self->{'needattr'}/
442 0 0 0 @elts and @elts == $blockElts
470 0 0 0 @elts == 1 and ref $elts[0]
0 0 0 @elts == 1 and ref $elts[0] and $elts[0]{'_tag'} =~ /$self->{'block'}/
489 5 0 0 $elt->{'_tag'} eq 'a' and $self->{'-expelbr'}
496 0 0 0 ref $br and $br->{'_tag'} eq 'br'
564 0 0 0 not $self->{'-keepimplicit'} and $elt->{'_implicit'}

or 2 conditions

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

or 3 conditions

line l !l&&r !l&&!r condition
278 0 1 0 $paramTypes{$key}[0] != 1 or exists $self->{$key}
560 0 0 0 $self->{'-keepimplicit'} or not $elt->{'_implicit'}
0 0 0 $self->{'-keepimplicit'} or not $elt->{'_implicit'} or $elt->{'_content'}