Condition Coverage

blib/lib/Mojolicious/Plugin/RenderCGI.pm
Criterion Covered Total %
condition 11 22 50.0


and 2 conditions

line l !l condition
24 0 2 $app->log->debug('Set default render handler ' . $plugin->handler_name) and $app->defaults('handler', $plugin->handler_name)
82 0 3 $app->log->debug(sprintf('Empty or nothing template "%s"', $name)) and return
92 0 1 $$output = $plugin->error(sprintf('Compile time error for template "%s" from the %s: %s', $name, $from, $err), $c) and return
102 0 1 $$output = $plugin->error(sprintf(qq[Runtime error for template "%s" from the %s:\n%s], $name, $from, $@), $c) and return
112 0 0 $c->stash(%{$plugin->exception;}) and die $error

or 3 conditions

line l !l&&r !l&&!r condition
41 0 13 0 $renderer->template_path($options) || $renderer->template_name($options)
1 13 0 $name //= $renderer->template_path($options) || $renderer->template_name($options)
52 5 9 0 $stash ||= $c->stash($pkg)
99 1 6 0 $plugin->cache->{$name} ||= $template