Branch Coverage

blib/lib/HTML/Tidy.pm
Criterion Covered Total %
branch 47 48 97.9


line true false branch
111 7 27 if ($key eq 'config_file')
119 7 20 if (grep {$newkey eq $_;} @unsupported_options)
195 1 13 ref $value eq 'ARRAY' ? :
197 1 13 unless $parm eq 'text' or $parm eq 'type'
221 1 10 if (@_ == 0)
226 1 9 if utf8::is_utf8($html)
228 2 8 unless defined $errorblock
249 159 37 if ($line =~ /^line (\d+) column (\d+) - (Warning|Error|Info): (.+)$/) { }
16 21 elsif ($line =~ /^Info: (.+)$/) { }
10 11 elsif ($line =~ /^\d+ warnings?, \d+ errors? were found!/) { }
3 8 elsif ($line eq 'No warnings or errors were found.') { }
2 6 elsif ($line eq 'This document has errors that must be fixed before') { }
2 4 elsif ($line eq 'using HTML Tidy to generate a tidied up version.') { }
3 1 elsif ($line =~ /^\s*$/) { }
251 17 9 $type eq 'Info' ? :
133 26 $type eq 'Warning' ? :
288 155 41 if $message and $self->_is_keeper($message)
304 1 13 if (@_ == 0)
309 2 11 if utf8::is_utf8($text)
310 13 0 if (defined $text)
332 41 134 if (@ignore_types)
333 15 26 if grep {$message->type == $_;} @ignore_types
337 13 147 if (@ignore_texts)
338 5 8 if grep {$message->text =~ /$_/;} @ignore_texts