| blib/lib/Mojolicious/Plugin/DefaultHelpers.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| condition | 33 | 41 | 80.4 |
| line | !l | l&&!r | l&&r | condition |
|---|---|---|---|---|
| 95 | 2 | 1 | 60 | &blessed($e) && $e->isa('Mojo::Exception') |
| 163 | 6 | 1 | 18 | @_ == 1 and not ref $_[0] |
| 344 | 99 | 6 | 3 | $token and $header |
| line | l | !l | condition |
|---|---|---|---|
| 81 | 87 | 38 | $name ||= "content" |
| 83 | 87 | 38 | $c->stash->{'mojo.content'} //= {} |
| 90 | 124 | 1 | $hash->{$name} // "" |
| 167 | 1 | 6 | $session->{'new_flash'} //= {} |
| 190 | 6 | 1 | $c->tx->connection // "" |
| 318 | 0 | 22 | (shift())->error // {} |
| 0 | 22 | +((shift())->error // {})->{'message'} // "Unknown error" |
| line | l | !l&&r | !l&&!r | condition |
|---|---|---|---|---|
| 87 | 54 | 20 | 1 | $hash->{$name} //= _block($content) |
| 98 | 17 | 1 | 0 | $_[0]->session->{'csrf_token'} ||= &hmac_sha1_sum($$ . &steady_time() . (rand), $_[0]->app->secrets->[0]) |
| 120 | 12 | 104 | 0 | $stash->{'format'} || $app->renderer->default_format |
| 134 | 4 | 126 | 0 | $stash->{'mojo.exception_format'} ||= $c->app->exception_format |
| 209 | 2676 | 913 | 0 | $_[0]->stash->{'mojo.log'} ||= $_[0]->app->log->context("[" . $_[0]->req->request_id . "]") |
| 344 | 0 | 3 | 0 | $hash->{'csrf_token'} //= $header |