Branch Coverage

blib/lib/HTML/ContentExtractor.pm
Criterion Covered Total %
branch 0 62 0.0


line true false branch
152 0 0 if (@_ != 0)
153 0 0 if (ref $_[0] eq 'HASH') { }
173 0 0 if @_ == 0
180 0 0 if @_ == 0
188 0 0 if (@_ == 0)
192 0 0 if (ref $_[0] eq 'ARRAY') { }
203 0 0 if (@_ == 0)
208 0 0 if (ref $_[0] eq 'ARRAY') { }
221 0 0 if (@_ == 0)
226 0 0 if (ref $_[0] eq 'ARRAY') { }
243 0 0 if $$self{'tree'}
263 0 0 if $$self{'tree'}
297 0 0 unless $num_words == 0
298 0 0 if ($ratio > 0.3 or $num_links > 400) { }
312 0 0 unless ref $node
321 0 0 if ($$self{'table_tags'}{$tag})
329 0 0 unless $num_words == 0
331 0 0 if ($num_words < $$self{'min_text_len'} and $node->tag ne 'h1' and $node->tag ne 'h2' and $node->tag ne 'h3' and $node->tag ne 'p')
339 0 0 if ($ratio > $$self{'link_text_ratio'})
346 0 0 if (index($txt, $_) != -1)
363 0 0 unless (ref $node)
367 0 0 if $node->tag eq 'a' or $node->tag eq 'style' or $node->tag eq 'script' or $node->tag eq 'option' or $node->tag eq 'noscript' or $node->tag eq 'hr' or $node->tag eq 'input'
387 0 0 unless ref $node
394 0 0 if ($$self{'ignore_tags'}{$node->tag})
399 0 0 if ($node->tag eq 'a' and $node->parent->tag eq 'body')
406 0 0 unless (ref $node)
409 0 0 if $node->tag eq 'head'
413 0 0 if (ref $child and $child->can('tag') and $child->tag eq 'table') { }
415 0 0 unless ($avail)
452 0 0 unless ($url =~ /\#/)
459 0 0 if ($HTML =~ /(