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             # ABSTRACT: matches only the empty path
3              
4             our $VERSION = '1.07';
5              
6 31     31   227 use Moo;
  31         68  
  31         184  
7             extends 'Path::Dispatcher::Rule';
8              
9             sub _match {
10 0     0     my $self = shift;
11 0           my $path = shift;
12 0 0         return if length $path->path;
13 0           return { leftover => $path->path };
14             }
15              
16             __PACKAGE__->meta->make_immutable;
17 31     31   12093 no Moo;
  31         105  
  31         188  
18              
19             1;
20              
21             __END__