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