Omit the run method for scripts which new Pod::Coverage finds
Tomas Doran [Wed, 25 Aug 2010 23:31:03 +0000 (23:31 +0000)]
t/author/podcoverage.t

index e8730de..f8868b6 100644 (file)
@@ -5,9 +5,12 @@ use Test::More;
 use Pod::Coverage 0.19;
 use Test::Pod::Coverage 1.04;
 
-all_pod_coverage_ok(
-  {
-    also_private => ['BUILD']
-  }
-);
+my @modules = all_modules;
+our @private = ( 'BUILD' );
+foreach my $module (@modules) {
+    local @private = (@private, 'run') if $module =~ /^Catalyst::Script::/;
+    pod_coverage_ok($module, { also_private => \@private });
+}
+
+done_testing;