Branch Coverage

lib/Mojolicious/Plugin/PlackMiddleware.pm
Criterion Covered Total %
branch 24 32 75.0


line true false branch
23 2 22 if ($env->{'mojo.routed'}) { }
43 9 11 ref $mws[0] eq 'HASH' ? :
44 2 18 ref $mws[0] eq 'CODE' ? :
56 0 23 if $c->tx->req->error
67 1 22 if not $plack_env->{'mojo.routed'}
89 4 0 $len && $len < 131072 ? :
91 1 3 unless $read
94 0 3 if $len <= 0
118 72 27 unless $key =~ /^(?:CONTENT_LENGTH|CONTENT_TYPE)$/
178 0 0 if ($mojo_res->content->is_dynamic and $mojo_res->content->{'delay'})
195 20 0 if ($prefix)
196 20 0 unless ($class =~ s/^\+// or $class =~ /^$prefix/)
200 16 4 if ($class->can('call'))
241 28 1 if (not $cond or &$cond($env->{'mojo.c'}, $env)) { }
263 13 0 if ($offset <= $self->[2])
264 10 3 if ($_[0] = substr($self->[0], $offset, $_[1]))