Branch Coverage

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


line true false branch
24 2 22 if ($env->{'mojo.routed'}) { }
45 9 11 ref $mws[0] eq 'HASH' ? :
46 2 18 ref $mws[0] eq 'CODE' ? :
58 0 23 if $c->tx->req->error
69 1 22 if not $plack_env->{'mojo.routed'}
91 4 0 $len && $len < 131072 ? :
93 1 3 unless $read
96 0 3 if $len <= 0
120 72 7 unless $key =~ /^(?:CONTENT_LENGTH|CONTENT_TYPE)$/u
180 0 0 if ($mojo_res->content->is_dynamic and $mojo_res->content->{'delay'})
197 20 0 if ($prefix)
198 20 0 unless ($class =~ s/^\+//u or $class =~ /^$prefix/u)
202 16 4 if ($class->can('call'))
243 28 1 if (not $cond or &$cond($env->{'mojo.c'}, $env)) { }
265 13 0 if ($offset <= $self->[2])
266 10 3 if ($_[0] = substr($self->[0], $offset, $_[1]))