Branch Coverage

blib/lib/Plack/Middleware/HTMLLint.pm
Criterion Covered Total %
branch 22 26 84.6


line true false branch
29 2 0 unless ($self->error2html)
57 6 2 if ($content_type =~ m[^(?:text/x?html|application/xhtml\+xml)\b]io)
61 0 6 $content_type =~ m[^(?:text/xhtml|application/xhtml\+xml)\b]io ? :
0 6 $content =~ /^$/imo ? :
65 4 2 if (my(@errors) = $self->html_lint($syntax, $content)) { }
73 3 3 if ($$res[2]) { }
76 2 1 if (my $error_html = &$do_lint($content))
77 1 1 unless ($content =~ s/]*)>/$error_html/i)
92 30 3 if (defined $body_chunk) { }
94 8 22 if ($end_of_html_body or $body_chunk =~ m[]io) { }
104 0 3 if ($do_lint_finished) { }
109 2 1 if ($error_html)
110 1 1 unless ($html_last_buffer =~ s[][$error_html]i)