| blib/lib/Dancer/Serializer.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| branch | 16 | 20 | 80.0 |
| line | true | false | branch |
|---|---|---|---|
| 21 | 143 | 7 | if $_engine |
| 26 | 0 | 7 | if $serializer_name |
| 46 | 30 | 15 | if (ref $content and ref $content ne "GLOB") |
| 51 | 7 | 23 | if ($@) { } |
| 79 | 0 | 34 | unless engine() |
| 87 | 22 | 12 | unless engine()->support_content_type($content_type) |
| 89 | 1 | 0 | unless $request->is_put or $request->is_post or $request->is_patch or $request->is_delete |
| 102 | 1 | 10 | if ($@) |
| 109 | 2 | 8 | if (not ref $new_params or ref $new_params ne "HASH") |
| 113 | 0 | 8 | keys %$old_params ? : |