Condition Coverage

blib/lib/HTML/TagFilter.pm
Criterion Covered Total %
condition 39 60 65.0


and 3 conditions

line !l l&&!r l&&r condition
355 55 0 5 $sub and ref $sub eq 'CODE'
368 0 168 22 $sub and ref $sub eq 'CODE'
565 5 4 9 $self->attribute_ok(@data) and $self->url_ok(@data)
637 0 0 136 @_ and defined $_[0]
688 0 4 57 $tagname and $self->has_rules
710 0 0 18 $tagname and $attribute
0 0 18 $tagname and $attribute and $self->has_rules
741 0 7 0 $self->xss_allow_local_links and $value =~ m[^\.*/]s || !($value =~ /:/s)
810 1 0 9 $tagset and ref $tagset eq 'HASH'
1 0 9 $tagset and ref $tagset eq 'HASH' and %$tagset
826 9 0 1 $tagset and ref $tagset eq 'HASH'
9 0 1 $tagset and ref $tagset eq 'HASH' and %$tagset
854 0 19 132 $$self{'_allows'} and %{$$self{'_allows'};}
866 0 4 9 $$self{'_denies'} and %{$$self{'_denies'};}
904 0 82 17 defined $$tagset{$tag}{$att} and @{$$tagset{$tag}{$att};}

or 3 conditions

line l !l&&r !l&&!r condition
334 1 1 8 $$config{'allow'} or $$config{'deny'}
335 9 1 0 $$config{'allow'} or $$config{'deny'}
344 0 2 8 delete $$config{'skip_entification'} or delete $$config{'skip_ltgt_entification'}
741 0 1 6 $value =~ m[^\.*/]s || !($value =~ /:/s)
842 66 9 4 $self->has_allow_rules or $self->has_deny_rules