test for pod correctness
authorMischa POSLAWSKY <perl@shiar.org>
Wed, 28 May 2008 04:15:54 +0000 (04:15 +0000)
committerMischa 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]

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;
+