Condition Coverage

blib/lib/HTML/StripScripts.pm
Criterion Covered Total %
condition 44 55 80.0


and 3 conditions

line !l l&&!r l&&r condition
502 236 927 2392 $tag_filters and ref $attr_filter
516 2 0 3 defined $filtered_attr{$key} and length $filtered_attr{$key}
1447 12 3 3 $self->{'_hssCfg'}{'AllowRelURL'} and $text =~ m[^((?:[\w\-.!~*|;/?=+\$,%#]|&){0,100})$]
1719 18 1 2 $filter->{'_hssCfg'}{'AllowMailto'} and substr($attval, 0, 7) eq 'mailto:'
1828 94 1337 0 exists $rules->{'*'} and ref $rules->{'*'} eq 'HASH' && exists $rules->{'*'}{'tag'} && !$rules->{'*'}{'tag'} || !$rules->{'*'}
1870 56 0 1431 $rules and ref $rules eq 'HASH'
56 5 1426 $rules and ref $rules eq 'HASH' and keys %$rules
1911 0 0 3 ref $required eq 'ARRAY' and @$required
2091 5 0 2 $self->_hss_context eq 'Html' and $self->_hss_valid_in_context($tag, 'Flow')

or 2 conditions

line l !l condition
402 1453 34 $cfg ||= {}
426 7 1883 $self->{'_hssCfg'}{'Context'} || 'Flow'
1819 5 1482 $cfg->{'BanList'} || {}
1837 0 12 $cfg->{'BanAllBut'} ||= []
1886 2 12 $banned->{$tag} ||= 1

or 3 conditions

line l !l&&r !l&&!r condition
380 1 1486 0 ref $pkg || $pkg
455 0 0 3153 $tag eq 'script' or $tag eq 'style'
468 1325 1484 305 $self->{'_hssRules'}{$tag} || $default_filters
522 41 0 3071 $tag_filters && $tag_filters->{'tag'} || $default_filters->{'tag'}
1828 6 6 1325 ref $rules->{'*'} eq 'HASH' && exists $rules->{'*'}{'tag'} && !$rules->{'*'}{'tag'} || !$rules->{'*'}
1931 894 894 888 $value eq '0' or $value eq '1'