Branch Coverage

blib/lib/Plack/Middleware/HTTPExceptions.pm
Criterion Covered Total %
branch 14 20 70.0


line true false branch
13 0 2 if ($ENV{'PLACK_ENV'} || '') eq "development"
25 4 3 if ref $res eq "ARRAY"
34 0 2 if ($writer) { }
49 0 6 if (&blessed($e) and $e->can("as_psgi"))
52 5 1 if (&blessed($e) and $e->can('code')) { }
54 0 3 overload::Method($e, '""') ? :
2 3 $e->can('as_string') ? :
58 0 1 if ($self->rethrow) { }
67 0 6 unless ($code =~ /^[3-5]\d\d$/)
78 1 5 if ($code =~ /^3/ and my $loc = eval { do { $e->location } })