| blib/lib/Trickster/Router.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| branch | 13 | 24 | 54.1 |
| line | true | false | branch |
|---|---|---|---|
| 19 | 0 | 23 | unless ref $handler eq "CODE" |
| 34 | 2 | 21 | if ($opts{'name'}) |
| 71 | 25 | 14 | if ($path =~ /$route->{'pattern'}{'regex'}/u) |
| 75 | 25 | 0 | if ($route->{'constraints'}) |
| 78 | 2 | 0 | if (exists $captures{$param}) |
| 80 | 2 | 0 | if (ref $constraint eq 'Regexp') { } |
| 0 | 0 | elsif (ref $constraint eq 'CODE') { } | |
| 81 | 1 | 1 | unless $captures{$param} =~ /$constraint/u |
| 83 | 0 | 0 | unless &$constraint($captures{$param}) |
| 87 | 1 | 24 | unless $valid |
| 104 | 0 | 2 | unless $route |
| 118 | 0 | 0 | $method ? : |