X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2F03podcoverage.t;h=8f2c0d64cb5ff5820e55fa6d1c6decd7c894ef30;hb=b20edc27c4f33ce5d8821fe0f5dc26610b085ccd;hp=77460de45c436fc29edf0384e7da44924437dfc1;hpb=a79864b1fe3aa9f39f334a36d5e1bbdb563bcaf0;p=dbsrgits%2FDBIx-Class-Historic.git diff --git a/t/03podcoverage.t b/t/03podcoverage.t index 77460de..8f2c0d6 100644 --- a/t/03podcoverage.t +++ b/t/03podcoverage.t @@ -2,9 +2,10 @@ use Test::More; eval "use Test::Pod::Coverage 1.04"; plan skip_all => 'Test::Pod::Coverage 1.04 required' if $@; -plan skip_all => 'set TEST_POD to enable this test' unless $ENV{TEST_POD}; +plan skip_all => 'set TEST_POD to enable this test' + unless ($ENV{TEST_POD} || -e 'MANIFEST.SKIP'); -my @modules = sort { $a cmp $b } (all_modules()); +my @modules = sort { $a cmp $b } (Test::Pod::Coverage::all_modules()); plan tests => scalar(@modules); # Since this is about checking documentation, a little documentation @@ -21,7 +22,13 @@ my $exceptions = { ignore => [ qw/MODIFY_CODE_ATTRIBUTES component_base_class - mk_classdata/ + mk_classdata + mk_classaccessor/ + ] + }, + 'DBIx::Class::Storage' => { + ignore => [ + qw(cursor) ] }, 'DBIx::Class::CDBICompat::AccessorMapping' => { skip => 1 }, @@ -58,7 +65,7 @@ my $exceptions = { 'DBIx::Class::Relationship::ProxyMethods' => { skip => 1 }, 'DBIx::Class::ResultSetProxy' => { skip => 1 }, 'DBIx::Class::ResultSourceProxy' => { skip => 1 }, - 'DBIx::Class::Storage' => { skip => 1 }, + 'DBIx::Class::Storage::DBI' => { skip => 1 }, 'DBIx::Class::Storage::DBI::DB2' => { skip => 1 }, 'DBIx::Class::Storage::DBI::MSSQL' => { skip => 1 }, 'DBIx::Class::Storage::DBI::MultiDistinctEmulation' => { skip => 1 }, @@ -70,12 +77,24 @@ my $exceptions = { 'DBIx::Class::Storage::DBI::mysql' => { skip => 1 }, 'SQL::Translator::Parser::DBIx::Class' => { skip => 1 }, 'SQL::Translator::Producer::DBIx::Class::File' => { skip => 1 }, + +# skipped because the synopsis covers it clearly + + 'DBIx::Class::InflateColumn::File' => { skip => 1 }, + +# skip connection since it's just an override + + 'DBIx::Class::Schema::Versioned' => { ignore => [ qw(connection) ] }, + +# must kill authors. + + 'DBIx::Class::Storage::DBI::Replication' => { skip => 1 }, }; foreach my $module (@modules) { SKIP: { - skip "No real methods", 1 if ($exceptions->{$module}{skip}); + skip "$module - No real methods", 1 if ($exceptions->{$module}{skip}); # build parms up from ignore list my $parms = {};