| blib/lib/Routes/Tiny.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| branch | 13 | 16 | 81.2 |
| line | true | false | branch |
|---|---|---|---|
| 26 | 42 | 6 | unless defined $self->{'strict_trailing_slash'} |
| 38 | 39 | 27 | if $pattern->{'name'} |
| 59 | 81 | 78 | if (my $m = $pattern->match($path, @args)) |
| 73 | 35 | 0 | if $pattern |
| 83 | 0 | 48 | if (exists $self->{'names'}{$name}) { } |
| 89 | 1 | 47 | if ($parent_routes) |
| 98 | 66 | 1 | if (@_ % 2) { } |
| 104 | 1 | 0 | if ($method =~ /^(GET|HEAD|POST|PUT|DELETE|TRACE|OPTIONS|CONNECT|PATCH)$/i) { } |