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