Branch Coverage

blib/lib/Plack/Middleware/StackTrace.pm
Criterion Covered Total %
branch 15 18 83.3


line true false branch
27 4 10 if (ref $_[0]) { }
44 7 3 if ($caught)
47 2 5 if (ref $caught) { }
55 7 0 if $caught_trace
58 8 0 if ($trace and $caught || $self->force && ref $res eq 'ARRAY' && $res->[0] == 500)
63 2 6 unless $self->no_print_errors
64 1 7 if (($env->{'HTTP_ACCEPT'} || '*/*') =~ /html/) { }
94 4 10 if ref $err
112 0 15 if (utf8::is_utf8($str))