Branch Coverage

blib/lib/Test/HTML/Content/NoXPath.pm
Criterion Covered Total %
branch 37 42 88.1


line true false branch
21 18 0 if ($text eq '') { }
39 48 0 unless $Test::HTML::Content::NoXPath::HTML_PARSER_StripsTags
40 29 19 unless (ref $template eq "Regexp")
56 41 106 if ($type eq "C")
58 30 11 if __match_comment($text, $comment)
67 16 21 unless (ref $template eq "Regexp")
85 30 52 if ($type eq "T")
87 12 18 if __match_text($foundtext, $text)
98 61 6 if (exists $currattr->{$key}) { }
99 4 57 if (not defined $attrs->{$key}) { }
102 10 47 unless __dwim_compare($currattr->{$key}, $attrs->{$key})
105 2 4 if (not defined $attrs->{$key}) { }
106 0 2 if exists $currattr->{$key}
116 0 57 unless defined $attrref
118 6 51 if exists $attrref->{'_content'}
128 55 235 if ($type eq "S" and $tag eq $currtag)
133 58 2 if $complete
146 11 0 unless $Test::HTML::Content::NoXPath::HTML_PARSER_StripsTags
147 3 8 unless (ref $template eq "Regexp")
163 4 4 if ($type eq "D")
165 3 1 if __match_declaration($text, $doctype)