File Coverage

blib/lib/Path/IsDev/Heuristic/Tool/MakeMaker.pm
Criterion Covered Total %
statement 20 20 100.0
branch 2 2 100.0
condition n/a
subroutine 7 7 100.0
pod 2 2 100.0
total 31 31 100.0


line stmt bran cond sub pod time code
1 11     11   4549 use 5.008; # utf8
  11         25  
2 11     11   70 use strict;
  11         13  
  11         189  
3 11     11   32 use warnings;
  11         12  
  11         238  
4 11     11   510 use utf8;
  11         18  
  11         43  
5              
6             package Path::IsDev::Heuristic::Tool::MakeMaker;
7              
8             our $VERSION = '1.001003';
9              
10              
11              
12              
13              
14              
15              
16              
17              
18              
19              
20              
21              
22              
23              
24              
25             # ABSTRACT: Determine if a path is an ExtUtils::MakeMaker Tooled source directory
26              
27             our $AUTHORITY = 'cpan:KENTNL'; # AUTHORITY
28              
29 11     11   962 use Role::Tiny::With qw( with );
  11         3701  
  11         1346  
30             with 'Path::IsDev::Role::Heuristic', 'Path::IsDev::Role::Matcher::Child::Exists::Any::File';
31              
32              
33              
34              
35              
36              
37              
38              
39              
40 12     12 1 37 sub files { return qw( Makefile.PL ) }
41              
42              
43              
44              
45              
46              
47              
48             sub matches {
49 12     12 1 20 my ( $self, $result_object ) = @_;
50 12 100       28 if ( $self->child_exists_any_file( $result_object, $self->files ) ) {
51 1         16 $result_object->result(1);
52 1         6 return 1;
53             }
54 11         34 return;
55             }
56              
57             1;
58              
59             __END__