Condition Coverage

blib/lib/Plack/Middleware/PrettyException.pm
Criterion Covered Total %
condition 22 28 78.5


and 3 conditions

line !l l&&!r l&&r condition
47 6 0 1 $r->[0] =~ /^3/ and $e->can('location')
96 7 0 3 exists $env->{'HTTP_ACCEPT'} and $env->{'HTTP_ACCEPT'} =~ m[application/json]i
102 3 1 0 $exception and $exception->can('does')
135 2 3 2 $exception and $exception->can('does')

or 2 conditions

line l !l condition
45 6 1 $r->[0] ||= 500
78 5 1 $r->[2] || 'error not found in body'
131 7 0 $status ||= 'unknown HTTP status code'
132 7 0 $error ||= 'unknown error'
142 1 0 $v // ''

or 3 conditions

line l !l&&r !l&&!r condition
64 9 5 2 $died or &is_error($r->[0])
96 1 3 7 $self->force_json or exists $env->{'HTTP_ACCEPT'} and $env->{'HTTP_ACCEPT'} =~ m[application/json]i