X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=xt%2Fpodcoverage.t;h=da4858047cb1c765678f2485430294eee32d1d71;hb=b1dbf7164ee06fa23aef5a799dd57df0357514ba;hp=0e07ecea9db6fc9cc87acafb8217b4b4a671b190;hpb=8273e845426f0187b4ad6c4a1b42286fa09a648f;p=dbsrgits%2FDBIx-Class.git diff --git a/xt/podcoverage.t b/xt/podcoverage.t index 0e07ece..da48580 100644 --- a/xt/podcoverage.t +++ b/xt/podcoverage.t @@ -3,18 +3,21 @@ 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 + $ENV{RELEASE_TESTING} ? 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. # The exceptions structure below is a hash keyed by the module @@ -47,11 +50,6 @@ my $exceptions = { MULTICREATE_DEBUG /], }, - 'DBIx::Class::Storage::TxnScopeGuard' => { - ignore => [qw/ - IS_BROKEN_PERL - /], - }, 'DBIx::Class::FilterColumn' => { ignore => [qw/ new @@ -125,12 +123,15 @@ my $exceptions = { 'DBIx::Class::ResultSource::*' => { skip => 1 }, 'DBIx::Class::Storage::Statistics' => { skip => 1 }, 'DBIx::Class::Storage::DBI::Replicated::Types' => { skip => 1 }, + 'DBIx::Class::GlobalDestruction' => { skip => 1 }, + 'DBIx::Class::Storage::BlockRunner' => { skip => 1 }, # temporary # test some specific components whose parents are exempt below 'DBIx::Class::Relationship::Base' => {}, '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 }, @@ -157,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: {