blib/lib/Dist/Zilla/Plugin/PodSyntaxTests.pm

filter: Statementstmt 100% 15 / 15 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 4 / 4 Podpod 0.0% 0 / 1 totaltotal 95.0% 19 / 20 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« blib/lib/Dist/Zilla/Plugin/PodCoverageTests.pm ↑ Summary blib/lib/Dist/Zilla/Stash/PAUSE.pm »
1 package Dist::Zilla::Plugin::PodSyntaxTests 6.040;
2 # ABSTRACT: a author test for Pod syntax
3  
4 11 ▶use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 11 extends 'Dist::Zilla::Plugin::InlineFiles';
6 11 with 'Dist::Zilla::Role::PrereqSource';
7  
8 11 ▶use Dist::Zilla::Pragmas;
Subroutine BEGIN: called CC=1 SCAR=0.0
9  
10 11 ▶use namespace::autoclean;
Subroutine BEGIN: called CC=1 SCAR=0.0
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 11 ▶sub register_prereqs {
Subroutine register_prereqs: called CC=1 SCAR=0.0
Pod undocumented
37 11 my ($self) = @_;
38  
39 11 $self->zilla->register_prereqs(
40 {
41 type => 'requires',
42 phase => 'develop',
43 },
44 'Test::Pod' => '1.41',
45 );
46 }
47  
48  
49 11 __PACKAGE__->meta->make_immutable;
50 11 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.040
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__
« blib/lib/Dist/Zilla/Plugin/PodCoverageTests.pm ↑ Summary blib/lib/Dist/Zilla/Stash/PAUSE.pm »