Branch Coverage

blib/lib/Dancer/Plugin/BeforeRoute.pm
Criterion Covered Total %
branch 28 28 100.0


line true false branch
132 9 28 unless (_is_the_right_method($request_method, @methods))
136 17 11 unless (_is_the_right_path($request_path, $path))
146 1 11 unless my $methods = shift()
149 2 9 ref $methods ? :
151 1 10 unless my $path = shift()
153 1 9 unless my $subref = shift()
161 3 34 if ($method eq 'HEAD')
165 32 10 unless lc $_ eq 'any'
28 9 grep({/^\Q$method\E$/i unless lc $_ eq 'any';} @methods) ? :
173 7 21 if (ref $expected_path)
174 1 6 $got_path =~ /$expected_path/ ? :
176 3 18 if ($expected_path =~ /\:/)
178 1 2 $got_path =~ /^$expected_path$/ ? :
180 9 9 $got_path eq $expected_path ? :