Branch Coverage

blib/lib/HTML/Scrape.pm
Criterion Covered Total %
branch 17 22 77.2


line true false branch
55 0 2 if (my $n = scalar @{$p->{'stack'};})
70 3 19 if $HTML::Tagset::emptyElement{$tagname}
75 0 10 if (defined $id and exists $parser->{'ids'}{$id})
88 3 5 if ($HTML::Tagset::optionalEndTag{$tagname} and @{$stack;} and $stack->[-1][0] eq $tagname)
105 2 14 if $HTML::Tagset::emptyElement{$tagname}
110 14 0 if (@{$stack;})
126 2 12 if ($this_tag_closes_previous_one)
131 0 14 unless (@{$stack;})
135 0 14 if ($tagname ne $stack->[-1][0])
151 17 70 if ($item->[1])
165 10 9 if (defined $id)