blib/lib/Routes/Tiny.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
branch | 15 | 18 | 83.3 |
line | true | false | branch |
---|---|---|---|
27 | 46 | 6 | unless defined $self->{'strict_trailing_slash'} |
29 | 48 | 4 | unless defined $self->{'strict_case'} |
41 | 42 | 28 | if $pattern->{'name'} |
62 | 89 | 82 | if (my $m = $pattern->match($path, @args)) |
76 | 35 | 0 | if $pattern |
86 | 0 | 52 | if (exists $self->{'names'}{$name}) { } |
92 | 1 | 51 | if ($parent_routes) |
101 | 70 | 1 | if (@_ % 2) { } |
107 | 1 | 0 | if ($method =~ /^(GET|HEAD|POST|PUT|DELETE|TRACE|OPTIONS|CONNECT|PATCH)$/i) { } |