File Coverage

blib/lib/Path/Dispatcher/Rule/Empty.pm
Criterion Covered Total %
statement 6 10 60.0
branch 0 2 0.0
condition n/a
subroutine 2 3 66.6
pod n/a
total 8 15 53.3


line stmt bran cond sub pod time code
1             package Path::Dispatcher::Rule::Empty;
2 32     32   835 use Any::Moose;
  32         730  
  32         1432  
3             extends 'Path::Dispatcher::Rule';
4              
5             sub _match {
6 0     0     my $self = shift;
7 0           my $path = shift;
8 0 0         return if length $path->path;
9 0           return { leftover => $path->path };
10             }
11              
12             __PACKAGE__->meta->make_immutable;
13 32     32   15733 no Any::Moose;
  32         47  
  32         722  
14              
15             1;
16              
17             __END__