| blib/lib/Plack/App/unAPI.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| branch | 25 | 28 | 89.2 |
| line | true | false | branch |
|---|---|---|---|
| 30 | 7 | 16 | if $format eq '' or $format eq '_' |
| 34 | 1 | 15 | unless ($route and $$route{'app'}) |
| 40 | 2 | 13 | if $id eq '' and not $$route{'always'} // $self->formats->{'_'}{'always'} |
| 46 | 1 | 12 | if ($error) { } |
| 1 | 11 | elsif (not _is_psgi_response($res)) { } | |
| 53 | 2 | 11 | if ($error) |
| 75 | 6 | 4 | $id eq '' ? : |
| 78 | 10 | 42 | if $name eq '_' |
| 98 | 3 | 2 | defined $content ? : |
| 113 | 34 | 0 | if (ref $spec eq 'ARRAY') |
| 115 | 2 | 32 | @$spec % 2 ? : |
| 116 | 0 | 34 | unless $type |
| 118 | 2 | 32 | unless ($app) |
| 121 | 0 | 2 | unless ($self->can($method)) |