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.037;
2             # ABSTRACT: something that finds files to install as executables
3              
4 17     17   12686 use Moose::Role;
  17         42  
  17         207  
5             with 'Dist::Zilla::Role::FileFinder';
6              
7 17     17   96797 use Dist::Zilla::Pragmas;
  17         33  
  17         140  
8              
9 17     17   143 use namespace::autoclean;
  17         44  
  17         174  
10              
11             requires 'dir';
12              
13             sub find_files {
14 56     56 0 174 my ($self) = @_;
15              
16 56         2849 my $dir = $self->dir;
17             my $files = [
18 458         1421 grep { index($_->name, "$dir/") == 0 }
19 56         161 @{ $self->zilla->files }
  56         2208  
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.037
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
43             released in the last two to three years. (That is, if the most recently
44             released version is v5.40, then this module should work on both v5.40 and
45             v5.38.)
46              
47             Although it may work on older versions of perl, no guarantee is made that the
48             minimum required version will not be increased. The version may be increased
49             for any reason, and there is no promise that patches will be accepted to
50             lower the minimum required perl.
51              
52             =head1 AUTHOR
53              
54             Ricardo SIGNES 😏 <cpan@semiotic.systems>
55              
56             =head1 COPYRIGHT AND LICENSE
57              
58             This software is copyright (c) 2026 by Ricardo SIGNES.
59              
60             This is free software; you can redistribute it and/or modify it under
61             the same terms as the Perl 5 programming language system itself.
62              
63             =cut