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.029;
2             # ABSTRACT: the pragmas (boilerplate!) to enable in each Dist::Zilla module
3              
4 55     55   1447 use v5.20.0;
  55         254  
5 55     55   336 use warnings;
  55         126  
  55         1705  
6 55     55   28428 use utf8;
  55         710  
  55         310  
7              
8 55     55   26494 use experimental qw(signatures);
  55         195585  
  55         334  
9              
10             sub import {
11 2097     2097   28175 warnings->import;
12 2097         15107 utf8->import;
13              
14 2097         218988 feature->unimport(':all');
15 2097         75902 feature->import(':5.20');
16 2097         19055 feature->unimport('switch');
17              
18 2097         18239 experimental->import(qw(
19             lexical_subs
20             postderef
21             postderef_qq
22             signatures
23             ));
24              
25 2097 50       283917 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.029
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) 2022 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