From: Mischa POSLAWSKY Date: Wed, 28 May 2008 04:15:54 +0000 (+0000) Subject: test for pod correctness X-Git-Tag: 3.20~11 X-Git-Url: http://git.shiar.nl/perl/plp/.git/commitdiff_plain/c92c16d5c32aaf8fc61e7d008224eb8c44be438f test for pod correctness If Test::Pod is present, check the pod of files in our manifest. --- diff --git a/t/pod.t b/t/pod.t new file mode 100644 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; +