| blib/lib/Plack/Response.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| branch | 21 | 24 | 87.5 |
| line | true | false | branch |
|---|---|---|---|
| 20 | 32 | 9 | if defined $rc |
| 21 | 3 | 38 | if defined $headers |
| 22 | 1 | 40 | if defined $content |
| 30 | 4 | 61 | if (@_) { } |
| 32 | 1 | 3 | if (ref $headers eq 'ARRAY') { } |
| 1 | 2 | elsif (ref $headers eq 'HASH') { } | |
| 33 | 0 | 1 | if @$headers % 2 != 0 |
| 46 | 1 | 46 | if (@_) { } |
| 75 | 3 | 0 | if (@_) |
| 87 | 0 | 36 | unless $self->status |
| 116 | 16 | 20 | unless defined $body |
| 117 | 15 | 21 | if (not ref $body or &Scalar::Util::blessed($body) and overload::Method($body, '""') and not $body->can('getline')) { } |