Branch Coverage

blib/lib/Test/HTML/Content/NoXPath.pm
Criterion Covered Total %
branch 36 42 85.7


line true false branch
21 21 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 66 6 if (exists $$currattr{$key}) { }
99 4 62 if (not defined $$attrs{$key}) { }
102 10 52 unless __dwim_compare($$currattr{$key}, $$attrs{$key})
105 2 4 if (not defined $$attrs{$key}) { }
106 0 2 if exists $$currattr{$key}
116 0 63 unless defined $attrref
117 9 54 if exists $$attrref{'_content'}
128 58 253 if ($type eq 'S' and $tag eq $currtag)
133 63 0 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)