File Coverage

blib/lib/Dist/Zilla/Role/ShareDir.pm
Criterion Covered Total %
statement 9 9 100.0
branch n/a
condition n/a
subroutine 3 3 100.0
pod n/a
total 12 12 100.0


line stmt bran cond sub pod time code
1             package Dist::Zilla::Role::ShareDir 6.037;
2             # ABSTRACT: something that picks a directory to install as shared files
3              
4 11     11   10300 use Moose::Role;
  11         32  
  11         123  
5             with 'Dist::Zilla::Role::FileFinder';
6              
7 11     11   66740 use Dist::Zilla::Pragmas;
  11         32  
  11         114  
8              
9 11     11   89 use namespace::autoclean;
  11         27  
  11         103  
10              
11             # Must return a hashref with any of the keys 'dist' and 'module'. The 'dist'
12             # must be a scalar with a directory to include and 'module' must be a hashref
13             # mapping module names to directories to include. If there are no directories
14             # to include, it must return undef.
15             requires 'share_dir_map';
16              
17             1;
18              
19             __END__
20              
21             =pod
22              
23             =encoding UTF-8
24              
25             =head1 NAME
26              
27             Dist::Zilla::Role::ShareDir - something that picks a directory to install as shared files
28              
29             =head1 VERSION
30              
31             version 6.037
32              
33             =head1 PERL VERSION
34              
35             This module should work on any version of perl still receiving updates from
36             the Perl 5 Porters. This means it should work on any version of perl
37             released in the last two to three years. (That is, if the most recently
38             released version is v5.40, then this module should work on both v5.40 and
39             v5.38.)
40              
41             Although it may work on older versions of perl, no guarantee is made that the
42             minimum required version will not be increased. The version may be increased
43             for any reason, and there is no promise that patches will be accepted to
44             lower the minimum required perl.
45              
46             =head1 AUTHOR
47              
48             Ricardo SIGNES 😏 <cpan@semiotic.systems>
49              
50             =head1 COPYRIGHT AND LICENSE
51              
52             This software is copyright (c) 2026 by Ricardo SIGNES.
53              
54             This is free software; you can redistribute it and/or modify it under
55             the same terms as the Perl 5 programming language system itself.
56              
57             =cut