Branch Coverage

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 36 29 exists $self->cache->{$cache_key} ? :
102 1 64 unless my(@found) = grep({$_->match($method, $path);} @$routes)
104 0 64 if (scalar @found > 1)