Branch Coverage

blib/lib/PAGI/Middleware/Debug.pm
Criterion Covered Total %
branch 20 26 76.9


line true false branch
69 1 3 if (not $self->{'enabled'} or $scope->{'type'} ne "http")
84 3 3 if ($event->{'type'} eq "http.response.start")
90 2 1 if (lc $h->[0] eq "content-type" and $h->[1] =~ m[text/html]i)
97 1 2 unless ($is_html)
104 3 0 if ($event->{'type'} eq "http.response.body")
105 2 1 if ($is_html and not $headers_sent) { }
110 2 0 unless ($event->{'more'})
114 2 0 if ($body =~ s[()][$panel$1]i) { }
122 0 2 if (lc $h->[0] eq "content-length")
204 1 1 if ($self->{'show_timing'})
217 2 0 if ($self->{'show_scope'})
236 1 0 if ($self->{'show_headers'} and $scope->{'headers'})
251 1 1 if ($self->{'show_headers'})