summaryrefslogtreecommitdiff
path: root/lib/Archive/Tar/t/99_pod.t
blob: 02190fecbcc32fd237039b604e241f4e16e59f19 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
use Test::More;
use File::Spec;
use File::Find;
use strict;

BEGIN { chdir 't' if -d 't' };

eval 'use Test::Pod';
plan skip_all => "Test::Pod v0.95 required for testing POD"
    if $@ || $Test::Pod::VERSION < 0.95;

my @files;
find( sub { push @files, File::Spec->catfile(
                    File::Spec->splitdir( $File::Find::dir ), $_
                ) if /\.p(?:l|m|od)$/ }, File::Spec->catdir(qw(.. blib lib) ));

plan tests => scalar @files;
for my $file ( @files ) {
    pod_file_ok( $file );
}