Now that populate is rewritten: finalize the resolver fatal sanity checks
[dbsrgits/DBIx-Class-Historic.git] / xt / pod.t
1 use warnings;
2 use strict;
3
4 use Test::More;
5 use lib qw(t/lib);
6 use DBICTest;
7
8 require DBIx::Class;
9 unless ( DBIx::Class::Optional::Dependencies->req_ok_for ('test_pod') ) {
10   my $missing = DBIx::Class::Optional::Dependencies->req_missing_for ('test_pod');
11   $ENV{RELEASE_TESTING}
12     ? die ("Failed to load release-testing module requirements: $missing")
13     : plan skip_all => "Test needs: $missing"
14 }
15
16 # this has already been required but leave it here for CPANTS static analysis
17 require Test::Pod;
18
19 my $generated_pod_dir = 'maint/.Generated_Pod';
20 Test::Pod::all_pod_files_ok( 'lib', -d $generated_pod_dir ? $generated_pod_dir : () );