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 677 51 -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 329 2 44 my $next = _next($stash) and not defined $inline
131 0 684 48 $self->compress and length $output >= $self->min_compress_size
135 3 0 45 $gzip and not $headers->content_encoding
152 201 2 4 $controller and $action
180 8 10 3 @$handlers and not defined $handler
202 0 763 0 s/\.(\w+)$//u and push @{$$templates{$_};}, $1
208 1 202 0 s/\.(\w+)$//u and unshift @{$$templates{$_};}, $1

or 2 conditions

line l !l condition
111 55 276 $stash->{'mojo.content'} //= {}
134 45 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 5617 16280 2326 $self->{'proxy'}{$name} || $self->helpers->{$name}
94 4 38 0 $options->{'handler'} //= $self->default_handler
95 370 588 0 $stash->{'format'} || $self->default_format
107 325 201 6 $options->{'template'} //= $self->template_for($c)
112 11 29 291 $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 122 453 1 $options->{'handler'} ||= $self->template_handler($options)