Branch Coverage

blib/lib/HTML/Scrape.pm
Criterion Covered Total %
branch 29 32 90.6


line true false branch
71 27 3 if (defined $wanted_id)
79 3 27 unless (defined $wanted_id)
81 1 2 if (my $n = scalar @{$p->{'stack'};})
97 24 505 if $HTML::Tagset::emptyElement{$tagname}
102 0 120 if (defined $id and exists $parser->{'ids'}{$id})
115 36 89 if ($HTML::Tagset::optionalEndTag{$tagname} and @{$stack;} and $stack->[-1][0] eq $tagname)
132 13 389 if $HTML::Tagset::emptyElement{$tagname}
137 389 0 if (@{$stack;})
153 14 375 if ($this_tag_closes_previous_one)
158 0 389 unless (@{$stack;})
162 4 385 if ($tagname ne $stack->[-1][0])
178 792 3508 if ($item->[1])
192 109 326 if (defined $id)
195 86 23 if (defined $parser->{'wanted_id'}) { }
197 24 62 if ($id eq $parser->{'wanted_id'}) { }
209 47 62 if ($keepit)