| blib/lib/Plack/Middleware/FixMissingBodyInRedirect.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| branch | 19 | 22 | 86.3 |
| line | true | false | branch |
|---|---|---|---|
| 18 | 0 | 14 | unless $$res[0] >= 300 and $$res[0] < 400 |
| 20 | 14 | 0 | if ($headers->exists('Location')) |
| 23 | 5 | 9 | if (@$res == 3 and not _is_body_set($$res[2])) { } |
| 4 | 5 | elsif (@$res == 2 or blessed($$res[2])) { } | |
| 32 | 2 | 2 | unless ($headers->exists('Content-Type')) |
| 38 | 4 | 4 | if $done |
| 39 | 2 | 2 | if (not defined $chunk) { } |
| 2 | 0 | elsif (length $chunk) { } | |
| 71 | 8 | 4 | if (ref $body eq 'ARRAY') { } |
| 1 | 3 | elsif (&Plack::Util::is_real_fh($body) and -f $body and -z _) { } | |
| 72 | 9 | 2 | if defined $_ |