File Coverage

blib/lib/Dist/Zilla/Role/ExecFiles.pm
Criterion Covered Total %
statement 14 14 100.0
branch n/a
condition n/a
subroutine 4 4 100.0
pod 0 1 0.0
total 18 19 94.7


line stmt bran cond sub pod time code
1             package Dist::Zilla::Role::ExecFiles 6.029;
2             # ABSTRACT: something that finds files to install as executables
3              
4 17     17   10203 use Moose::Role;
  17         61  
  17         179  
5             with 'Dist::Zilla::Role::FileFinder';
6              
7 17     17   93462 use Dist::Zilla::Pragmas;
  17         70  
  17         153  
8              
9 17     17   149 use namespace::autoclean;
  17         47  
  17         129  
10              
11             requires 'dir';
12              
13             sub find_files {
14 56     56 0 163 my ($self) = @_;
15              
16 56         1999 my $dir = $self->dir;
17             my $files = [
18 458         1266 grep { index($_->name, "$dir/") == 0 }
19 56         154 @{ $self->zilla->files }
  56         1655  
20             ];
21             }
22              
23             1;
24              
25             __END__
26              
27             =pod
28              
29             =encoding UTF-8
30              
31             =head1 NAME
32              
33             Dist::Zilla::Role::ExecFiles - something that finds files to install as executables
34              
35             =head1 VERSION
36              
37             version 6.029
38              
39             =head1 PERL VERSION
40              
41             This module should work on any version of perl still receiving updates from
42             the Perl 5 Porters. This means it should work on any version of perl released
43             in the last two to three years. (That is, if the most recently released
44             version is v5.40, then this module should work on both v5.40 and v5.38.)
45              
46             Although it may work on older versions of perl, no guarantee is made that the
47             minimum required version will not be increased. The version may be increased
48             for any reason, and there is no promise that patches will be accepted to lower
49             the minimum required perl.
50              
51             =head1 AUTHOR
52              
53             Ricardo SIGNES 😏 <cpan@semiotic.systems>
54              
55             =head1 COPYRIGHT AND LICENSE
56              
57             This software is copyright (c) 2022 by Ricardo SIGNES.
58              
59             This is free software; you can redistribute it and/or modify it under
60             the same terms as the Perl 5 programming language system itself.
61              
62             =cut