File Coverage

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