Condition Coverage

blib/lib/Mojolicious/Renderer.pm
Criterion Covered Total %
condition 52 63 82.5


and 2 conditions

line l !l condition
42 23 7 $ext eq $_ and return $ext
190 698 52 -r $_ and return $_
227 0 0 $c->helpers->log->error(qq[No handler for "$handler" found]) and return undef

and 3 conditions

line !l l&&!r l&&r condition
113 335 2 44 my $next = _next($stash) and not defined $inline
131 0 687 52 $self->compress and length $output >= $self->min_compress_size
135 3 0 49 $gzip and not $headers->content_encoding
152 203 2 4 $controller and $action
180 8 10 3 @$handlers and not defined $handler
202 0 783 0 s/\.(\w+)$//u and push @{$$templates{$_};}, $1
208 2 206 0 s/\.(\w+)$//u and unshift @{$$templates{$_};}, $1

or 2 conditions

line l !l condition
111 55 282 $stash->{'mojo.content'} //= {}
134 49 3 $c->req->headers->accept_encoding // ""
179 13 8 $self->{'templates'}{$variant} // []

or 3 conditions

line l !l&&r !l&&!r condition
36 41 22 49 ($param // $req->param('_format')) || $c->stash->{'format'}
68 5684 16657 2350 $self->{'proxy'}{$name} || $self->helpers->{$name}
94 4 38 0 $options->{'handler'} //= $self->default_handler
95 382 591 0 $stash->{'format'} || $self->default_format
107 337 203 6 $options->{'template'} //= $self->template_for($c)
112 11 29 297 $stash->{'extends'} or $stash->{'layout'}
115 13 31 0 $stash->{'format'} || $self->default_format
117 39 3 0 $content->{'content'} //= $output
180 3 10 8 @$handlers and not defined $handler or grep {$_ eq $handler;} @$handlers
224 126 463 1 $options->{'handler'} ||= $self->template_handler($options)