From: Dave Rolsky Date: Sat, 14 Mar 2009 18:00:46 +0000 (-0500) Subject: moved pod tests to xt dir X-Git-Tag: 0.78_01~44 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=9f32bdd862f0fd6bd753f1e0090aaec0a125d09f;p=gitmo%2FClass-MOP.git moved pod tests to xt dir --- diff --git a/t/pod_coverage.t b/t/pod_coverage.t deleted file mode 100644 index eb119fd..0000000 --- a/t/pod_coverage.t +++ /dev/null @@ -1,9 +0,0 @@ -use strict; -use warnings; - -use Test::More; - -eval "use Test::Pod::Coverage 1.04"; -plan skip_all => "Test::Pod::Coverage 1.04 required for testing POD coverage" if $@; - -all_pod_coverage_ok( { trustme => [ qr/compatability/ ] } ); diff --git a/t/pod.t b/xt/pod.t similarity index 100% rename from t/pod.t rename to xt/pod.t diff --git a/xt/pod_coverage.t b/xt/pod_coverage.t new file mode 100644 index 0000000..e6858d0 --- /dev/null +++ b/xt/pod_coverage.t @@ -0,0 +1,31 @@ +#!/usr/bin/perl + +use strict; +use warnings; + +use Test::More; + +eval "use Test::Pod::Coverage 1.04"; +plan skip_all => "Test::Pod::Coverage 1.04 required for testing POD coverage" if $@; + +# This is a stripped down version of all_pod_coverage_ok which lets us +# vary the trustme parameter per module. +my @modules = all_modules(); +plan tests => scalar @modules; + +my %trustme = ( + 'Class::MOP::Attribute' => ['process_accessors'], +); + +for my $module ( sort @modules ) { + my $trustme = []; + if ( $trustme{$module} ) { + my $methods = join '|', @{ $trustme{$module} }; + $trustme = [qr/$methods/]; + } + + pod_coverage_ok( + $module, { trustme => $trustme }, + "Pod coverage for $module" + ); +}