blib/lib/Raisin/Routes.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
branch | 13 | 18 | 72.2 |
line | true | false | branch |
---|---|---|---|
38 | 0 | 64 | unless ($method and $path) |
45 | 0 | 64 | unless ($code and ref $code eq "CODE") |
54 | 128 | 51 | unless $type |
64 | 0 | 64 | if (ref $path and ref $path ne "Regexp") |
70 | 64 | 0 | unless ref $path |
86 | 2 | 62 | if ($self->list->{$path}{$method}) |
99 | 40 | 29 | exists $self->cache->{$cache_key} ? : |
102 | 1 | 68 | unless my(@found) = grep({$_->match($method, $path);} @$routes) |
104 | 0 | 68 | if (scalar @found > 1) |