git.shiar.nl
/
perl
/
plp
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a3a4d69
)
test for pod correctness
author
Mischa POSLAWSKY
<perl@shiar.org>
Wed, 28 May 2008 04:15:54 +0000
(
04:15
+0000)
committer
Mischa POSLAWSKY
<perl@shiar.org>
Wed, 28 May 2008 10:49:11 +0000
(10:49 +0000)
If Test::Pod is present, check the pod of files in our manifest.
t/pod.t
[new file with mode: 0644]
patch
|
blob
diff --git a/t/pod.t
b/t/pod.t
new file mode 100644
(file)
index 0000000..
f4d0ec1
--- /dev/null
+++ b/
t/pod.t
@@ -0,0
+1,13
@@
+use strict;
+use warnings;
+
+use Test::More;
+use ExtUtils::Manifest qw(maniread);
+eval 'use Test::Pod 1.00';
+plan skip_all => "Test::Pod 1.00 required for testing POD" if $@;
+
+my $manifest = maniread();
+my @pod = grep /\.(?:pm|pod)$/, keys %$manifest;
+plan tests => scalar @pod;
+pod_file_ok($_ => $_) for @pod;
+