File Coverage

blib/lib/Dist/Zilla/Plugin/PodSyntaxTests.pm
Criterion Covered Total %
statement 11 11 100.0
branch n/a
condition n/a
subroutine 4 4 100.0
pod 0 1 0.0
total 15 16 93.7


line stmt bran cond sub pod time code
1             # ABSTRACT: a author test for Pod syntax
2              
3             use Moose;
4 11     11   7816 extends 'Dist::Zilla::Plugin::InlineFiles';
  11         35  
  11         95  
5             with 'Dist::Zilla::Role::PrereqSource';
6              
7             use Dist::Zilla::Pragmas;
8 11     11   74137  
  11         29  
  11         100  
9             use namespace::autoclean;
10 11     11   88  
  11         30  
  11         11500  
11             #pod =head1 SYNTAX
12             #pod
13             #pod # Add this to your dist.ini.
14             #pod [PodSyntaxTests]
15             #pod
16             #pod # To test for POD validity, run this in the shell:
17             #pod $ dzil test --release
18             #pod
19             #pod =head1 DESCRIPTION
20             #pod
21             #pod This is an extension of L<Dist::Zilla::Plugin::InlineFiles>, providing the
22             #pod following files:
23             #pod
24             #pod xt/author/pod-syntax.t - a standard Test::Pod test
25             #pod
26             #pod L<Test::Pod> C<1.41> will be added as a C<develop requires> dependency.
27             #pod
28             #pod One can run the release tests by invoking C<dzil test --release>.
29             #pod
30             #pod =cut
31              
32              
33             # Register the author test prereq as a "develop requires"
34             # so it will be listed in "dzil listdeps --author"
35             my ($self) = @_;
36              
37 11     11 0 38 $self->zilla->register_prereqs(
38             {
39 11         404 type => 'requires',
40             phase => 'develop',
41             },
42             'Test::Pod' => '1.41',
43             );
44             }
45              
46              
47             __PACKAGE__->meta->make_immutable;
48             1;
49              
50             =pod
51              
52             =encoding UTF-8
53              
54             =head1 NAME
55              
56             Dist::Zilla::Plugin::PodSyntaxTests - a author test for Pod syntax
57              
58             =head1 VERSION
59              
60             version 6.028
61              
62             =head1 DESCRIPTION
63              
64             This is an extension of L<Dist::Zilla::Plugin::InlineFiles>, providing the
65             following files:
66              
67             xt/author/pod-syntax.t - a standard Test::Pod test
68              
69             L<Test::Pod> C<1.41> will be added as a C<develop requires> dependency.
70              
71             One can run the release tests by invoking C<dzil test --release>.
72              
73             =head1 PERL VERSION
74              
75             This module should work on any version of perl still receiving updates from
76             the Perl 5 Porters. This means it should work on any version of perl released
77             in the last two to three years. (That is, if the most recently released
78             version is v5.40, then this module should work on both v5.40 and v5.38.)
79              
80             Although it may work on older versions of perl, no guarantee is made that the
81             minimum required version will not be increased. The version may be increased
82             for any reason, and there is no promise that patches will be accepted to lower
83             the minimum required perl.
84              
85             =head1 SYNTAX
86              
87             # Add this to your dist.ini.
88             [PodSyntaxTests]
89              
90             # To test for POD validity, run this in the shell:
91             $ dzil test --release
92              
93             =head1 AUTHOR
94              
95             Ricardo SIGNES 😏 <cpan@semiotic.systems>
96              
97             =head1 COPYRIGHT AND LICENSE
98              
99             This software is copyright (c) 2022 by Ricardo SIGNES.
100              
101             This is free software; you can redistribute it and/or modify it under
102             the same terms as the Perl 5 programming language system itself.
103              
104             =cut
105              
106             ___[ xt/author/pod-syntax.t ]___
107             #!perl
108             # This file was automatically generated by Dist::Zilla::Plugin::PodSyntaxTests.
109             use strict; use warnings;
110             use Test::More;
111             use Test::Pod 1.41;
112              
113             all_pod_files_ok();