X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=xt%2Fpodcoverage.t;h=a16a3653aec56d3ca3b1463fc03027dbd5822243;hb=2131aa2eac548e0b10325b97c10d22a61fffd9c9;hp=caaeca4b333d26d62e085aa2bc7709df215b1999;hpb=db29433c74a98967f61f117bd508c06055db2892;p=dbsrgits%2FDBIx-Class.git diff --git a/xt/podcoverage.t b/xt/podcoverage.t index caaeca4..a16a365 100644 --- a/xt/podcoverage.t +++ b/xt/podcoverage.t @@ -3,23 +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; -# Don't run tests for installs -if ( DBICTest::RunMode->is_plain ) { - plan( skip_all => "Author tests not required for installation" ); -} - 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 @@ -42,14 +40,14 @@ my $exceptions = { mk_classaccessor /] }, - 'DBIx::Class::Row' => { + 'DBIx::Class::Carp' => { ignore => [qw/ - MULTICREATE_DEBUG - /], + unimport + /] }, - 'DBIx::Class::Storage::TxnScopeGuard' => { + 'DBIx::Class::Row' => { ignore => [qw/ - IS_BROKEN_PERL + MULTICREATE_DEBUG /], }, 'DBIx::Class::FilterColumn' => { @@ -59,6 +57,7 @@ my $exceptions = { store_column get_column get_columns + has_column_loaded /], }, 'DBIx::Class::ResultSource' => { @@ -125,12 +124,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 }, @@ -144,6 +146,9 @@ my $exceptions = { # skipped because the synopsis covers it clearly 'DBIx::Class::InflateColumn::File' => { skip => 1 }, + +# internal subclass, nothing to POD + 'DBIx::Class::ResultSet::Pager' => { skip => 1 }, }; my $ex_lookup = {}; @@ -154,7 +159,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: {