| blib/lib/Kelp/Response.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| condition | 22 | 29 | 75.8 |
| line | l | !l | condition |
|---|---|---|---|
| 164 | 2 | 0 | $body //= "" |
| 182 | 49 | 16 | $code //= 500 |
| 183 | 41 | 0 | &status_message($code) // "Error" |
| 241 | 18 | 4 | $error //= "No error, something is wrong" |
| line | l | !l&&r | !l&&!r | condition |
|---|---|---|---|---|
| 37 | 229 | 1 | 1 | Kelp::Util::effective_charset($self->charset) // $self->app->charset |
| 63 | 3 | 28 | 0 | $self->charset || $self->app->charset |
| 70 | 10 | 166 | 1 | $self->charset || $self->app->charset |
| 77 | 2 | 31 | 0 | $self->charset || $self->app->charset |
| 84 | 1 | 1 | 0 | $self->charset || $self->app->charset |
| 143 | 22 | 5 | 0 | not $ct or $ct =~ m[^application/json]i |
| 183 | 24 | 41 | 0 | $error //= &status_message($code) // "Error" |