Branch Coverage

blib/lib/Mojolicious/Plugin/RenderCGI.pm
Criterion Covered Total %
branch 24 30 80.0


line true false branch
24 2 0 if $plugin->default
40 1 13 defined $content ? :
41 0 14 unless defined($name //= $r->template_name($options))
50 9 5 unless $stash
54 0 14 if ($last_template and $last_template eq $name)
62 13 1 unless ($template)
63 1 12 if (defined $content) { }
69 3 9 unless (defined $content)
71 0 3 if (my $path = $r->template_path($options)) { }
82 3 7 unless $content =~ /\w/
92 1 6 unless ref $err
102 1 6 if $@
112 0 5 if ref $plugin->exception eq 'HASH'
117 4 1 if $plugin->exception eq 'template'
120 0 1 if $plugin->exception =~ /comment/