Branch Coverage

blib/lib/Slovo.pm
Criterion Covered Total %
branch 25 40 62.5


line true false branch
27 131 13 if (ref $class_or_self and $class_or_self->{'home'})
28 0 16 if ($ENV{'MOJO_HOME'})
32 0 0 ref $class_or_self ? :
37 0 26 if (-x $r->child("script/$m") or -x $r->child("bin/$m") or -x $r->child("script/$m.pl") or -x $r->child("bin/$m.pl"))
42 0 1 if (ref $class_or_self) { }
51 13 0 ref $class_or_self ? :
105 15 0 if ref $_ eq "HASH"
109 43 38 unless ($c->session->{$session_key})
120 79 12 if ($last and not $c->current_route =~ /^api\./u)
146 81 0 if (my $tpls = $dom->{'templates'}) { }
149 0 81 if ($tpls =~ m[^/]u and -d $tpls) { }
157 0 324 if (-d "$path/$tpls")
204 0 13 if ($config->{'response_compression'})
224 116 39 ref $plugin ? :
229 116 39 if (ref $plugin eq 'HASH') { }
39 0 elsif (not ref $plugin) { }
231 26 90 ref $value eq 'CODE' ? :
238 13 142 if ($name eq "OpenAPI")
288 0 78 if (my $e = Mojo::Loader::load_class($class))
289 0 0 ref $e ? :