X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=xt%2Fpodcoverage.t;h=88bcb81c322b81c4ccb2f02807d104dca59657d0;hb=cb551b079b096630988312e22becd87fb54fb7de;hp=2cd6c524838b47683af209031cffd9d752a62f90;hpb=a4367b26b7b086d368880cd4d822eb4fb34603e7;p=dbsrgits%2FDBIx-Class-Historic.git diff --git a/xt/podcoverage.t b/xt/podcoverage.t index 2cd6c52..88bcb81 100644 --- a/xt/podcoverage.t +++ b/xt/podcoverage.t @@ -1,19 +1,16 @@ +use DBIx::Class::Optional::Dependencies -skip_all_without => 'test_podcoverage'; + use warnings; use strict; use Test::More; use List::Util 'first'; -use lib qw(t/lib); +use lib qw(t/lib maint/.Generated_Pod/lib); use DBICTest; use namespace::clean; -require DBIx::Class; -unless ( DBIx::Class::Optional::Dependencies->req_ok_for ('test_podcoverage') ) { - my $missing = DBIx::Class::Optional::Dependencies->req_missing_for ('test_podcoverage'); - $ENV{RELEASE_TESTING} || DBICTest::RunMode->is_author - ? die ("Failed to load release-testing module requirements: $missing") - : plan skip_all => "Test needs: $missing" -} +# this has already been required but leave it here for CPANTS static analysis +require Test::Pod::Coverage; # Since this is about checking documentation, a little documentation # of what this is doing might be in order. @@ -37,6 +34,11 @@ my $exceptions = { mk_classaccessor /] }, + 'DBIx::Class::Optional::Dependencies' => { + ignore => [qw/ + croak + /] + }, 'DBIx::Class::Carp' => { ignore => [qw/ unimport @@ -47,11 +49,6 @@ my $exceptions = { MULTICREATE_DEBUG /], }, - 'DBIx::Class::Storage::TxnScopeGuard' => { - ignore => [qw/ - IS_BROKEN_PERL - /], - }, 'DBIx::Class::FilterColumn' => { ignore => [qw/ new @@ -59,6 +56,7 @@ my $exceptions = { store_column get_column get_columns + has_column_loaded /], }, 'DBIx::Class::ResultSource' => { @@ -133,6 +131,7 @@ my $exceptions = { 'DBIx::Class::SQLMaker::LimitDialects' => {}, # internals + 'DBIx::Class::_Util' => { skip => 1 }, 'DBIx::Class::SQLMaker*' => { skip => 1 }, 'DBIx::Class::SQLAHacks*' => { skip => 1 }, 'DBIx::Class::Storage::DBI*' => { skip => 1 }, @@ -159,7 +158,7 @@ for my $string (keys %$exceptions) { $ex_lookup->{$re} = $ex; } -my @modules = sort { $a cmp $b } (Test::Pod::Coverage::all_modules()); +my @modules = sort { $a cmp $b } Test::Pod::Coverage::all_modules('lib'); foreach my $module (@modules) { SKIP: {