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
59 8 0 if (ref $trace and $caught || $self->force && ref $res eq 'ARRAY' && $res->[0] == 500)
64 2 6 unless $self->no_print_errors
65 1 7 if (($env->{'HTTP_ACCEPT'} || '*/*') =~ /html/) { }
95 4 10 if ref $err
113 0 15 if (utf8::is_utf8($str))