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.037;
2             # ABSTRACT: a author test for Pod syntax
3              
4 11     11   9193 use Moose;
  11         32  
  11         100  
5             extends 'Dist::Zilla::Plugin::InlineFiles';
6             with 'Dist::Zilla::Role::PrereqSource';
7              
8 11     11   91865 use Dist::Zilla::Pragmas;
  11         30  
  11         114  
9              
10 11     11   89 use namespace::autoclean;
  11         28  
  11         127  
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 38 my ($self) = @_;
38              
39 11         478 $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.037
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
79             released in the last two to three years. (That is, if the most recently
80             released version is v5.40, then this module should work on both v5.40 and
81             v5.38.)
82              
83             Although it may work on older versions of perl, no guarantee is made that the
84             minimum required version will not be increased. The version may be increased
85             for any reason, and there is no promise that patches will be accepted to
86             lower the minimum required perl.
87              
88             =head1 SYNTAX
89              
90             # Add this to your dist.ini.
91             [PodSyntaxTests]
92              
93             # To test for POD validity, run this in the shell:
94             $ dzil test --release
95              
96             =head1 AUTHOR
97              
98             Ricardo SIGNES 😏 <cpan@semiotic.systems>
99              
100             =head1 COPYRIGHT AND LICENSE
101              
102             This software is copyright (c) 2026 by Ricardo SIGNES.
103              
104             This is free software; you can redistribute it and/or modify it under
105             the same terms as the Perl 5 programming language system itself.
106              
107             =cut
108              
109             __DATA__
110             ___[ xt/author/pod-syntax.t ]___
111             #!perl
112             # This file was automatically generated by Dist::Zilla::Plugin::PodSyntaxTests
113             use strict; use warnings;
114             use Test::More;
115             use Test::Pod 1.41;
116              
117             all_pod_files_ok();