2018-03-22 15:51:09 +01:00
|
|
|
use strict;
|
|
|
|
use warnings;
|
|
|
|
|
|
|
|
use Test::More;
|
|
|
|
|
2018-03-22 15:54:03 +01:00
|
|
|
plan skip_all => "set TEST_POD to enable this test (developer only!)" unless $ENV{TEST_POD};
|
2018-03-22 15:51:09 +01:00
|
|
|
plan skip_all => "File::Find not installed" unless eval { require File::Find };
|
|
|
|
plan skip_all => "Test::Pod not installed" unless eval { require Test::Pod };
|
2018-03-22 15:54:03 +01:00
|
|
|
plan tests => 107;
|
2018-03-22 15:51:09 +01:00
|
|
|
|
|
|
|
my @files;
|
|
|
|
File::Find::find({ wanted=>sub { push @files, $_ if /\.pm$/ }, no_chdir=>1 }, 'lib');
|
|
|
|
|
|
|
|
for my $m (sort @files) {
|
|
|
|
Test::Pod::pod_file_ok( $m, "Valid POD in '$m'" );
|
2018-03-22 15:54:03 +01:00
|
|
|
}
|