Condition Coverage

blib/lib/Mojolicious.pm
Criterion Covered Total %
condition 18 24 75.0


and 2 conditions

line l !l condition
114 1022 71 0 $self->static->dispatch($c) and $plugins->emit_hook("after_static", $c)
137 0 63 0 ++$self->{'dispatch'} and $self->hook("around_action", \&Mojolicious::_action) and $self->hook("around_dispatch", sub { $_[1]->app->dispatch($_[1]); } )

and 3 conditions

line !l l&&!r l&&r condition
79 91 1031 71 $tx and my $sub = $tx->can("stash")
137 0 0 63 ++$self->{'dispatch'} and $self->hook("around_action", \&Mojolicious::_action)
194 419 199 20 builtin::blessed($val) and $val->isa("Mojo::Promise")

or 3 conditions

line l !l&&r !l&&!r condition
85 1102 91 0 $c->{'tx'} ||= $self->build_tx
127 70 927 96 $tx->res->code or $self->routes->dispatch($c)
966 2 64 $tx->res->code or $self->routes->dispatch($c) or $tx->res->code