Add proper thaw hooks so schema gets re-attached
[dbsrgits/DBIx-Class.git] / t / 03podcoverage.t
index 106fece..8f2c0d6 100644 (file)
@@ -2,7 +2,8 @@ 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 } (Test::Pod::Coverage::all_modules());
 plan tests => scalar(@modules);
@@ -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 },
@@ -75,9 +82,9 @@ my $exceptions = {
 
     'DBIx::Class::InflateColumn::File'                  => { skip => 1 },
 
-# skipped because two methods may not need to be public
+# skip connection since it's just an override
 
-    'DBIx::Class::Schema::Versioned' => { ignore => [ qw(on_connect exists) ] },
+    'DBIx::Class::Schema::Versioned' => { ignore => [ qw(connection) ] },
 
 # must kill authors.