| blib/lib/Dancer2/Plugin/RPC/RESTRPC.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| branch | 20 | 20 | 100.0 |
| line | true | false | branch |
|---|---|---|---|
| 45 | 2 | 6 | $config->{'code_wrapper'} ? : |
| 51 | 1 | 11 | if ($dsl->app->request->content_type ne 'application/json') |
| 57 | 2 | 9 | $request->body ? : |
| 66 | 2 | 9 | $callback ? : |
| 71 | 1 | 10 | if (my $error = $@) { } |
| 1 | 9 | elsif (not $continue->success) { } | |
| 93 | 1 | 8 | if (my $error = $@) |
| 99 | 1 | 8 | if (&blessed($response) and $response->can('as_restrpc_error')) { } |
| 1 | 7 | elsif (&blessed($response)) { } | |
| 107 | 2 | 9 | unless ref $response |