auto/share/dist/Dist-Zilla-PluginBundle-Author-ETHER/profiles/default/Module.pm untested

filter: Statementstmt 0.0% 0 / 46 Branchbran 0.0% 0 / 12 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 13 Podpod n/a totaltotal 0.0% 0 / 71 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1 use strict;
2 use warnings;
3 package {{ $name }};
4 # vim: set ts=8 sts=2 sw=2 tw=100 et :
5 # ABSTRACT: ...
6 # KEYWORDS: ...
7  
8 our $VERSION = '{{ $dist->version }}';
9  
10 use 5.020;
11 use strictures 2;
12 use stable 0.031 'postderef';
13 use experimental 'signatures';
14 no autovivification warn => qw(fetch store exists delete);
15 use if "$]" >= 5.022, experimental => 're_strict';
16 no if "$]" >= 5.031009, feature => 'indirect';
17 no if "$]" >= 5.033001, feature => 'multidimensional';
18 no if "$]" >= 5.033006, feature => 'bareword_filehandles';
19 no if "$]" >= 5.041009, feature => 'smartmatch';
20 no feature 'switch';
21 {{
22 ($zilla_plugin) = ($name =~ /^Dist::Zilla::Plugin::(.+)$/g);
23  
24 $zilla_plugin ? <<'PLUGIN'
25 use Moose;
26 with 'Dist::Zilla::Role::...';
27  
28 use namespace::autoclean;
29  
30 around dump_config => sub
31 {
32 my ($orig, $self) = @_;
33 my $config = $self->$orig;
34  
35 $config->{+__PACKAGE__} = {
36 ...,
37 blessed($self) ne __PACKAGE__ ? ( version => $VERSION ) : (),
38 };
39  
40 return $config;
41 };
42  
43  
44 __PACKAGE__->meta->make_immutable;
45 PLUGIN
46 : "\n1;\n"
47 }}__END__
48  
49 =pod
50  
51 =head1 SYNOPSIS
52  
53 {{
54 $zilla_plugin ? <<SYNOPSIS
55 In your F<dist.ini>:
56  
57 [$zilla_plugin]
58 SYNOPSIS
59 : <<SYNOPSIS
60 use $name;
61  
62 ...
63 SYNOPSIS
64 }}
65 =head1 DESCRIPTION
66  
67 {{ $zilla_plugin ? 'This is a L<Dist::Zilla> plugin that' : '' }}...
68  
69 =head1 {{ $zilla_plugin ? 'CONFIGURATION OPTIONS' : 'FUNCTIONS/METHODS' }}
70  
71 =head2 foo
72  
73 ...
74  
75 =head1 ACKNOWLEDGEMENTS
76  
77 ...
78  
79 =head1 SEE ALSO
80  
81 =for :list
82 * L<foo>
83  
84 =cut