Condition Coverage

blib/lib/Mojolicious/Controller.pm
Criterion Covered Total %
condition 35 55 63.6


and 2 conditions

line l !l condition
117 0 55 ++$valid and last
135 0 9 $tx->finish(@_) and return $tx->established ? $self : $self->rendered(101)

and 3 conditions

line !l l&&!r l&&r condition
92 274 33 84 exists $captures->{$name} and not $self->app->routes->is_reserved($name)
149 18 0 75 $tx->is_websocket and not $tx->established
206 155 0 1010 not $stash->{'mojo.finished'} and ++$stash->{'mojo.finished'}
276 636 0 20 builtin::blessed($target) and $target->isa("Mojo::URL")

or 2 conditions

line l !l condition
40 89 31 shift() // {}
91 361 30 $self->stash->{'mojo.captures'} //= {}
214 276 0 $timing->elapsed("mojo.timer") // 0
215 276 0 $timing->rps($elapsed) // "??"
246 130 123 $stash->{'mojo.session'} //= {}
273 622 34 shift() // ""

or 3 conditions

line l !l&&r !l&&!r condition
134 35 0 0 $self->tx || Carp::croak('Transaction already destroyed')
148 93 0 0 $self->tx || Carp::croak('Transaction already destroyed')
176 26 551 429 $ts or $maybe
208 237 114 659 $status or $res->code
217 0 276 0 $res->message || $res->default_message($code)
228 5875 0 0 (shift())->tx || Carp::croak('Transaction already destroyed')
229 3677 0 0 (shift())->tx || Carp::croak('Transaction already destroyed')
233 105 0 0 $self->tx || Carp::croak('Transaction already destroyed')
250 23 0 18 @_ > 1 or ref $_[0]