Branch Coverage

blib/lib/HTML/ExtractContent.pm
Criterion Covered Total %
branch 31 50 62.0


line true false branch
64 0 2 if ($self->content =~ /$self->opt->{'nocontent'}/)
87 31 13 unless decode($block)
88 8 5 if length $body
93 4 9 if $nolinklen < $self->opt->{'min_length'}
106 2 7 if ($c1 > $self->opt->{'threshold'}) { }
1 6 elsif ($c > $self->opt->{'threshold'}) { }
108 0 2 if $self->opt->{'debug'}
115 0 1 if $self->opt->{'debug'}
116 1 0 if ($score > $$best{'score'})
117 0 1 if $self->opt->{'debug'}
123 0 1 if $self->opt->{'debug'}
127 0 1 if $self->opt->{'debug'}
130 3 3 unless $flag
131 0 6 if $self->opt->{'debug'}
135 0 2 if $self->opt->{'debug'}
136 1 1 if ($$best{'score'} < $score)
137 0 1 if $self->opt->{'debug'}
165 2 0 if ($self->content =~ /$$self{'pattern'}{'title'}/)
167 2 0 if (length $title)
170 2 2 index($title, strip(strip_tags($2))) >= 0 ? :
201 0 13 if length $nolink < $self->opt->{'min_nolink'} * $count
202 0 13 if $self->_is_linklist($block)
209 0 13 if ($block =~ /$listpat/)
219 0 0 if $li =~ /$$self{'pattern'}{'href'}/
221 0 0 if $#listitems + 1