| blib/lib/Mojolicious/Plugin/Alias.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| branch | 13 | 16 | 81.2 |
| line | true | false | branch |
|---|---|---|---|
| 24 | 0 | 17 | unless $alias and $alias =~ m[^/.*] |
| 25 | 7 | 10 | if (@_ > 0) |
| 26 | 3 | 4 | @_ == 1 && !ref($_[0]) ? : |
| 31 | 17 | 0 | if ($alias and exists $$aliases{$alias}) |
| 40 | 10 | 498 | if ($req_path =~ /^$alias.*/) |
| 52 | 6 | 0 | if ($conf) |
| 62 | 68 | 10 | unless my $alias = $self->match($req_path) |
| 75 | 9 | 57 | if ($saved_static_dispatcher) |