Branch Coverage

blib/lib/Combine/FromHTML.pm
Criterion Covered Total %
branch 0 76 0.0


line true false branch
172 0 0 unless ref $xwi
176 0 0 unless (defined $log)
179 0 0 if ($$html eq '')
182 0 0 if (length $$html < 10)
186 0 0 if (length $$html > 1024)
191 0 0 if ($len > 0.9 * $start_len) { }
196 0 0 $#rows > 10 ? :
199 0 0 if length $r == 61 and substr($r, 0, 1) eq 'M'
200 0 0 if length $r == 72 and not $r =~ /\s/
201 0 0 if ($uu == 10 or $b64 == 10)
216 0 0 if ($xwi->truncated)
218 0 0 if ($last_blank > 0) { }
227 0 0 if ($opt =~ /^Guess/)
228 0 0 if ($url =~ m[\..?html?$|/$]i or $html =~ /<\s*html\s*|<\s*head\s*|<\s*body\s*/i) { }
236 0 0 if ($opt =~ /Text/i)
252 0 0 if (defined $relTextPlugin and $relTextPlugin ne '')
255 0 0 if (defined $rtext)
264 0 0 if (Combine::Config::Get('useTidy')) { }
273 0 0 unless (eval { do { $thtml = $tidy->clean($html_utf8 . "\n") } })
284 0 0 unless (&Encode::is_utf8($html))
305 0 0 if ($html =~ m[([^<]+)]i)
321 0 0 if ($tag =~ /$attr\s*=\s*[\"]/i) { }
0 0 elsif ($tag =~ /$attr\s*=\s*[\']/i) { }
322 0 0 if ($tag =~ s/$attr\s*=\s*\"([^\"]+?)\"//i)
326 0 0 if ($tag =~ s/$attr\s*=\s*\'([^\']+?)\'//i)
330 0 0 if ($tag =~ s/$attr\s*=\s*([^\s]+?)\s//i)
334 0 0 if $str =~ /^$/
335 0 0 if ($attr =~ /name/i) { }
0 0 elsif ($attr =~ /content/i) { }
341 0 0 if $key =~ /^$/ or $val =~ /^$/
409 0 0 unless exists $Tags{$$link{'tag'}}
410 0 0 $$link{'_TEXT'} ? :
411 0 0 if ($$link{'tag'} eq 'headings') { }
0 0 elsif ($$link{'tag'} eq 'text') { }
0 0 elsif ($$link{'tag'} eq 'frame' or $$link{'tag'} eq 'img') { }
412 0 0 unless ($linktext =~ /^\s*$/)
420 0 0 unless (defined $rtext)
434 0 0 unless ($linkurl =~ /^#/)