Condition Coverage

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


and 2 conditions

line l !l condition
114 1026 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 1035 71 $tx and my $sub = $tx->can("stash")
137 0 0 63 ++$self->{'dispatch'} and $self->hook("around_action", \&Mojolicious::_action)
194 420 199 20 builtin::blessed($val) and $val->isa("Mojo::Promise")

or 3 conditions

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