blib/lib/Mojolicious/Controller.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 35 | 55 | 63.6 |
line | l | !l | condition |
---|---|---|---|
82 | 0 | 45 | ++$valid and last |
100 | 0 | 9 | $tx->finish(@_) and return $tx->established ? $self : $self->rendered(101) |
line | !l | l&&!r | l&&r | condition |
---|---|---|---|---|
57 | 271 | 33 | 84 | exists $captures->{$name} and not $self->app->routes->is_reserved($name) |
114 | 18 | 0 | 75 | $tx->is_websocket and not $tx->established |
171 | 97 | 0 | 932 | not $stash->{'mojo.finished'} and ++$stash->{'mojo.finished'} |
241 | 550 | 0 | 26 | &Scalar::Util::blessed($target) and $target->isa("Mojo::URL") |
line | l | !l | condition |
---|---|---|---|
38 | 83 | 31 | shift() // {} |
56 | 363 | 25 | $self->stash->{'mojo.captures'} //= {} |
179 | 255 | 0 | $timing->elapsed("mojo.timer") // 0 |
180 | 255 | 0 | $timing->rps($elapsed) // "??" |
211 | 119 | 110 | $stash->{'mojo.session'} //= {} |
238 | 542 | 34 | shift() // "" |
line | l | !l&&r | !l&&!r | condition |
---|---|---|---|---|
99 | 18 | 0 | 0 | $self->tx || Carp::croak('Transaction already destroyed') |
113 | 93 | 0 | 0 | $self->tx || Carp::croak('Transaction already destroyed') |
141 | 26 | 532 | 400 | $ts or $maybe |
173 | 218 | 107 | 607 | $status or $res->code |
182 | 0 | 255 | 0 | $res->message || $res->default_message($code) |
193 | 5419 | 0 | 0 | (shift())->tx || Carp::croak('Transaction already destroyed') |
194 | 3378 | 0 | 0 | (shift())->tx || Carp::croak('Transaction already destroyed') |
198 | 93 | 0 | 0 | $self->tx || Carp::croak('Transaction already destroyed') |
215 | 21 | 0 | 18 | @_ > 1 or ref $_[0] |