Debian Codegraph @

README

raw
1 NAME
2
3 Test::Pod::No404s - Using this test module will check your POD for any
4 http 404 links
5
6 VERSION
7
8 This document describes v0.02 of Test::Pod::No404s - released November 01, 2014 as part of Test-Pod-No404s.
9
10 SYNOPSIS
11
12 #!/usr/bin/perl
13 use strict; use warnings;
14
15 use Test::More;
16
17 eval "use Test::Pod::No404s";
18 if ( $@ ) {
19 plan skip_all => 'Test::Pod::No404s required for testing POD';
20 } else {
21 all_pod_files_ok();
22 }
23
24 DESCRIPTION
25
26 This module looks for any http(s) links in your POD and verifies that
27 they will not return a 404. It uses LWP::UserAgent for the heavy
28 lifting, and simply lets you know if it failed to retrieve the
29 document. More specifically, it uses $response->is_error as the "test."
30
31 This module does NOT check "pod" or "man" links like L<Test::Pod> in
32 your pod. For that, please check out Test::Pod::LinkCheck.
33
34 Normally, you wouldn't want this test to be run during end-user
35 installation because they might have no internet! It is HIGHLY
36 recommended that this be used only for module authors' RELEASE_TESTING
37 phase. To do that, just modify the synopsis to add an env check :)
38
39 METHODS
40
41 pod_file_ok
42
43 pod_file_ok() will okay the test if there is no http(s) links present
44 in the POD or if all links are not an error. Furthermore, if the POD
45 was malformed as reported by Pod::Simple, the test will fail and not
46 attempt to check the links.
47
48 When it fails, pod_file_ok() will show any failing links as
49 diagnostics.
50
51 The optional second argument TESTNAME is the name of the test. If it is
52 omitted, pod_file_ok() chooses a default test name "404 test for
53 FILENAME".
54
55 all_pod_files_ok
56
57 This function is what you will usually run. It automatically finds any
58 POD in your distribution and runs checks on them.
59
60 Accepts an optional argument: an array of files to check. By default it
61 checks all POD files it can find in the distribution. Every file it
62 finds is passed to the pod_file_ok function.
63
64 EXPORT
65
66 Automatically exports the two subs.
67
68 SEE ALSO
69
70 Please see those modules/websites for more information related to this
71 module.
72
73 * Test::Pod::LinkCheck
74
75 SUPPORT
76
77 Perldoc
78
79 You can find documentation for this module with the perldoc command.
80
81 perldoc Test::Pod::No404s
82
83 Websites
84
85 The following websites have more information about this module, and may
86 be of help to you. As always, in addition to those websites please use
87 your favorite search engine to discover more resources.
88
89 * MetaCPAN
90
91 A modern, open-source CPAN search engine, useful to view POD in HTML
92 format.
93
94 http://metacpan.org/release/Test-Pod-No404s
95
96 * Search CPAN
97
98 The default CPAN search engine, useful to view POD in HTML format.
99
100 http://search.cpan.org/dist/Test-Pod-No404s
101
102 * RT: CPAN's Bug Tracker
103
104 The RT ( Request Tracker ) website is the default bug/issue tracking
105 system for CPAN.
106
107 http://rt.cpan.org/NoAuth/Bugs.html?Dist=Test-Pod-No404s
108
109 * AnnoCPAN
110
111 The AnnoCPAN is a website that allows community annotations of Perl
112 module documentation.
113
114 http://annocpan.org/dist/Test-Pod-No404s
115
116 * CPAN Ratings
117
118 The CPAN Ratings is a website that allows community ratings and
119 reviews of Perl modules.
120
121 http://cpanratings.perl.org/d/Test-Pod-No404s
122
123 * CPAN Forum
124
125 The CPAN Forum is a web forum for discussing Perl modules.
126
127 http://cpanforum.com/dist/Test-Pod-No404s
128
129 * CPANTS
130
131 The CPANTS is a website that analyzes the Kwalitee ( code metrics )
132 of a distribution.
133
134 http://cpants.cpanauthors.org/dist/overview/Test-Pod-No404s
135
136 * CPAN Testers
137
138 The CPAN Testers is a network of smokers who run automated tests on
139 uploaded CPAN distributions.
140
141 http://www.cpantesters.org/distro/T/Test-Pod-No404s
142
143 * CPAN Testers Matrix
144
145 The CPAN Testers Matrix is a website that provides a visual overview
146 of the test results for a distribution on various Perls/platforms.
147
148 http://matrix.cpantesters.org/?dist=Test-Pod-No404s
149
150 * CPAN Testers Dependencies
151
152 The CPAN Testers Dependencies is a website that shows a chart of the
153 test results of all dependencies for a distribution.
154
155 http://deps.cpantesters.org/?module=Test::Pod::No404s
156
157 Email
158
159 You can email the author of this module at APOCAL at cpan.org asking
160 for help with any problems you have.
161
162 Internet Relay Chat
163
164 You can get live help by using IRC ( Internet Relay Chat ). If you
165 don't know what IRC is, please read this excellent guide:
166 http://en.wikipedia.org/wiki/Internet_Relay_Chat. Please be courteous
167 and patient when talking to us, as we might be busy or sleeping! You
168 can join those networks/channels and get help:
169
170 * irc.perl.org
171
172 You can connect to the server at 'irc.perl.org' and join this
173 channel: #perl-help then talk to this person for help: Apocalypse.
174
175 * irc.freenode.net
176
177 You can connect to the server at 'irc.freenode.net' and join this
178 channel: #perl then talk to this person for help: Apocal.
179
180 * irc.efnet.org
181
182 You can connect to the server at 'irc.efnet.org' and join this
183 channel: #perl then talk to this person for help: Ap0cal.
184
185 Bugs / Feature Requests
186
187 Please report any bugs or feature requests by email to
188 bug-test-pod-no404s at rt.cpan.org, or through the web interface at
189 http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Test-Pod-No404s. You
190 will be automatically notified of any progress on the request by the
191 system.
192
193 Source Code
194
195 The code is open to the world, and available for you to hack on. Please
196 feel free to browse it and play with it, or whatever. If you want to
197 contribute patches, please send me a diff or prod me to pull from your
198 repository :)
199
200 https://github.com/apocalypse/perl-test-pod-no404s
201
202 git clone git://github.com/apocalypse/perl-test-pod-no404s.git
203
204 AUTHOR
205
206 Apocalypse <[email protected]>
207
208 COPYRIGHT AND LICENSE
209
210 This software is copyright (c) 2014 by Apocalypse.
211
212 This is free software; you can redistribute it and/or modify it under
213 the same terms as the Perl 5 programming language system itself.
214
215 The full text of the license can be found in the LICENSE file included
216 with this distribution.
217
218 DISCLAIMER OF WARRANTY
219
220 THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
221 APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
222 HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT
223 WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT
224 LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
225 PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE
226 OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU
227 ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
228
229 IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
230 WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR
231 CONVEYS THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
232 INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES
233 ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT
234 NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES
235 SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO
236 OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY
237 HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
238