Branch Coverage

blib/lib/Dancer/Route/Registry.pm
Criterion Covered Total %
branch 20 24 83.3


line true false branch
20 114 0 unless (defined $self->{'id'})
41 1 0 if $self->routes($method)
51 3464 2 if ($method) { }
53 3453 11 $route ? :
65 1175 263 if defined $last
79 11 1427 if (keys %{$$route{'options'};}) { }
100 651 788 if ($package and 'Dancer::App'->app_exists($package)) { }
122 19 5 if (ref $pattern eq "ARRAY")
126 2 17 if grep {$_ eq "get";} @methods and not grep({$_ eq "head";} @methods)
131 1 23 if grep {$_ eq $pattern;} @methods
143 1427 12 if (@rest == 1) { }
165 0 0 if $r->equals($route)