Branch Coverage

lib/PAGI/Middleware/ErrorHandler.pm
Criterion Covered Total %
branch 25 28 89.2


line true false branch
72 1 9 if ($scope->{'type'} ne "http")
82 1 1 if ($event->{'type'} eq "http.response.start")
93 8 1 unless (eval { do { XXX; 1 } })
98 8 1 if ($error)
100 1 7 if ($self->{'on_error'})
105 0 8 if ($response_started)
115 1 7 if (builtin::blessed($error) and $error->can("status_code"))
148 5 3 unless ($self->{'development'})
153 1 7 if ($content_type eq 'application/json') { }
1 6 elsif ($content_type eq 'text/plain') { }
158 1 0 $self->{'development'} ? :
164 0 1 if ($self->{'development'} and $error_text ne $display_error)
172 2 4 $self->{'development'} ? :
191 2 4 if ($self->{'development'} and $safe_stack)