Condition Coverage

blib/lib/HTML/Purifier.pm
Criterion Covered Total %
condition 12 20 60.0


and 3 conditions

line !l l&&!r l&&r condition
182 0 0 2 exists $self->{'allow_attributes'}{$lc_tag} and grep {lc $_ eq $lc_attr;} @{$$self{"allow_attributes"}{$lc_tag};}
199 14 0 1 $skip_content and $lc_tag eq $stack[-1]
207 0 0 12 $stack[-1] and $stack[-1] eq $lc_tag

or 2 conditions

line l !l condition
132 7 0 $params->{'allow_tags'} || []
7 0 $params->{'allow_attributes'} || {}
2 5 $params->{'strip_comments'} // 1
3 4 $params->{'encode_invalid_tags'} // 1

or 3 conditions

line l !l&&r !l&&!r condition
172 1 0 14 $lc_tag eq "script" or $lc_tag eq "style"