File Coverage

blib/lib/Dist/Zilla/Pragmas.pm
Criterion Covered Total %
statement 18 18 100.0
branch 1 2 50.0
condition n/a
subroutine 5 5 100.0
pod n/a
total 24 25 96.0


line stmt bran cond sub pod time code
1             package Dist::Zilla::Pragmas 6.030;
2             # ABSTRACT: the pragmas (boilerplate!) to enable in each Dist::Zilla module
3              
4 55     55   1377 use v5.20.0;
  55         249  
5 55     55   316 use warnings;
  55         123  
  55         1746  
6 55     55   28712 use utf8;
  55         708  
  55         335  
7              
8 55     55   27940 use experimental qw(signatures);
  55         192471  
  55         348  
9              
10             sub import {
11 2097     2097   28761 warnings->import;
12 2097         15255 utf8->import;
13              
14 2097         220901 feature->unimport(':all');
15 2097         76927 feature->import(':5.20');
16 2097         18773 feature->unimport('switch');
17              
18 2097         18231 experimental->import(qw(
19             lexical_subs
20             postderef
21             postderef_qq
22             signatures
23             ));
24              
25 2097 50       285273 feature->unimport('multidimensional') if $] >= 5.034;
26             }
27              
28             1;
29              
30             __END__
31              
32             =pod
33              
34             =encoding UTF-8
35              
36             =head1 NAME
37              
38             Dist::Zilla::Pragmas - the pragmas (boilerplate!) to enable in each Dist::Zilla module
39              
40             =head1 VERSION
41              
42             version 6.030
43              
44             =head1 PERL VERSION
45              
46             This module should work on any version of perl still receiving updates from
47             the Perl 5 Porters. This means it should work on any version of perl released
48             in the last two to three years. (That is, if the most recently released
49             version is v5.40, then this module should work on both v5.40 and v5.38.)
50              
51             Although it may work on older versions of perl, no guarantee is made that the
52             minimum required version will not be increased. The version may be increased
53             for any reason, and there is no promise that patches will be accepted to lower
54             the minimum required perl.
55              
56             =head1 AUTHOR
57              
58             Ricardo SIGNES 😏 <cpan@semiotic.systems>
59              
60             =head1 COPYRIGHT AND LICENSE
61              
62             This software is copyright (c) 2023 by Ricardo SIGNES.
63              
64             This is free software; you can redistribute it and/or modify it under
65             the same terms as the Perl 5 programming language system itself.
66              
67             =cut