File Coverage

blib/lib/Path/Dispatcher/Rule/Dispatch.pm
Criterion Covered Total %
statement 6 10 60.0
branch n/a
condition n/a
subroutine 2 3 66.6
pod 1 1 100.0
total 9 14 64.2


line stmt bran cond sub pod time code
1             package Path::Dispatcher::Rule::Dispatch;
2 32     32   130 use Any::Moose;
  32         36  
  32         947  
3             extends 'Path::Dispatcher::Rule';
4              
5             has dispatcher => (
6             is => 'ro',
7             isa => 'Path::Dispatcher',
8             required => 1,
9             handles => ['rules', 'complete'],
10             );
11              
12             sub match {
13 0     0 1   my $self = shift;
14 0           my $path = shift;
15              
16 0           my $dispatch = $self->dispatcher->dispatch($path);
17 0           return $dispatch->matches;
18             }
19              
20             __PACKAGE__->meta->make_immutable;
21 32     32   15012 no Any::Moose;
  32         53  
  32         114  
22              
23             1;
24              
25             __END__