X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=xt%2Fpodcoverage.t;h=dff0acf7e1db202d53584092c161ee79d1a350da;hb=7df2b5df3d6c48b35c73a9e840d8e8ef395b11f6;hp=a5c923fc492a58eb599996f13f6b64a66b227b7b;hpb=20884f55ed03738633c1cf2a1f8d43af743b650e;p=dbsrgits%2FDBIx-Class.git diff --git a/xt/podcoverage.t b/xt/podcoverage.t index a5c923f..dff0acf 100644 --- a/xt/podcoverage.t +++ b/xt/podcoverage.t @@ -3,7 +3,7 @@ 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; @@ -15,6 +15,9 @@ unless ( DBIx::Class::Optional::Dependencies->req_ok_for ('test_podcoverage') ) : 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 @@ -59,6 +57,7 @@ my $exceptions = { store_column get_column get_columns + has_column_loaded /], }, 'DBIx::Class::ResultSource' => { @@ -115,6 +114,8 @@ my $exceptions = { /] }, + 'DBIx::Class::_TempExtlib*' => { skip => 1 }, + 'DBIx::Class::Admin::*' => { skip => 1 }, 'DBIx::Class::ClassResolver::PassThrough' => { skip => 1 }, 'DBIx::Class::Componentised' => { skip => 1 }, @@ -133,6 +134,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 +161,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: {