Branch Coverage

blib/lib/HTML/ListScraper.pm
Criterion Covered Total %
branch 21 44 47.7


line true false branch
50 0 0 if (@_)
51 0 0 if ($_[0] < 2)
64 0 0 if (@_)
89 5 0 if ($foam)
107 3 0 if ($foam)
129 2 15 if (not defined $occ) { }
145 0 0 if ($len < 2)
152 0 0 unless (defined $internal)
160 0 0 !defined($occ) ? :
168 0 3 if ($len < 2)
181 2 1 if ($occ) { }
196 5 38 if (not defined $edge) { }
38 0 elsif ($pos >= $edge + $len) { }
202 43 0 if (defined $gap)
214 0 5 unless (defined $edge)
235 1 0 if (scalar @instances)
247 33 16 if ($size < 2)
280 54 0 if (not defined $edge or $pos >= $edge + $len)
305 0 1412 unless ($self->_is_tag($tag))
310 289 1123 if (exists $attr->{'href'} and $attr->{'href'}) { }
316 0 1412 if ($tag ne $rtag)
330 0 1211 unless ($self->_is_tag($tag))