Branch Coverage

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


line true false branch
78 0 2 if ($self->content =~ /$self->opt->{'nocontent'}/)
101 31 13 unless decode($block)
102 8 5 if length $body
107 4 9 if $nolinklen < $self->opt->{'min_length'}
120 2 7 if ($c1 > $self->opt->{'threshold'}) { }
1 6 elsif ($c > $self->opt->{'threshold'}) { }
123 0 2 if $self->opt->{'debug'}
129 0 1 if $self->opt->{'debug'}
130 1 0 if ($score > $best->{'score'})
131 0 1 if $self->opt->{'debug'}
137 0 1 if $self->opt->{'debug'}
142 0 1 if $self->opt->{'debug'}
144 3 3 unless $flag
146 0 6 if $self->opt->{'debug'}
149 0 2 if $self->opt->{'debug'}
150 1 1 if ($best->{'score'} < $score)
151 0 1 if $self->opt->{'debug'}
179 2 0 if ($self->content =~ /$self->{'pattern'}{'title'}/)
181 2 0 if (length $title)
184 2 2 index($title, strip(strip_tags($2))) >= 0 ? :
215 0 13 if length $nolink < $self->opt->{'min_nolink'} * $count
216 0 13 if $self->_is_linklist($block)
223 0 13 if ($block =~ /$listpat/)
233 0 0 if $li =~ /$self->{'pattern'}{'href'}/
235 0 0 if $#listitems + 1