Condition Coverage

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


and 2 conditions

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

and 3 conditions

line !l l&&!r l&&r condition
57 275 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 944 not $stash->{'mojo.finished'} and ++$stash->{'mojo.finished'}
241 619 0 20 &Scalar::Util::blessed($target) and $target->isa("Mojo::URL")

or 2 conditions

line l !l condition
38 83 31 shift() // {}
56 363 29 $self->stash->{'mojo.captures'} //= {}
179 255 0 $timing->elapsed("mojo.timer") // 0
180 255 0 $timing->rps($elapsed) // "??"
211 123 114 $stash->{'mojo.session'} //= {}
238 605 34 shift() // ""

or 3 conditions

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 547 400 $ts or $maybe
173 222 112 610 $status or $res->code
182 0 255 0 $res->message || $res->default_message($code)
193 5604 0 0 (shift())->tx || Carp::croak('Transaction already destroyed')
194 3426 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]