| blib/lib/Mojolicious/Services.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| branch | 14 | 22 | 63.6 |
| line | true | false | branch |
|---|---|---|---|
| 19 | 1 | 1 | $name =~ /^[a-z0-9]/ ? : |
| 22 | 2 | 2 | if (_load($class)) |
| 41 | 0 | 0 | if (_load($_)) |
| 53 | 2 | 0 | if $conf->{'namespaces'} |
| 55 | 2 | 0 | if ($namespaces and ref $namespaces eq 'ARRAY') |
| 58 | 0 | 2 | unless $self->lazy |
| 66 | 2 | 2 | if ($service) |
| 71 | 2 | 0 | unless ($self->services->{$name}) |
| 76 | 0 | 2 | unless $self->services->{$name} |
| 86 | 3 | 1 | unless my $e = load_class($module) |
| 87 | 0 | 1 | ref $e ? : |