8 eval "use Test::Pod::Coverage 1.04";
9 plan skip_all => "Test::Pod::Coverage 1.04 required for testing POD coverage" if $@;
11 # This is a stripped down version of all_pod_coverage_ok which lets us
12 # vary the trustme parameter per module.
13 my @modules = all_modules();
14 plan tests => scalar @modules;
17 'Moose' => ['make_immutable'],
18 'Moose::Meta::Attribute' => [ 'interpolate_class', 'throw_error' ],
19 'Moose::Meta::Class' => [
20 qw( check_metaclass_compatibility
23 create_immutable_transformer
27 'Moose::Meta::Method::Constructor' =>
28 [qw( initialize_body intialize_body)],
29 'Moose::Meta::Method::Destructor' => ['initialize_body'],
45 for my $module ( sort @modules ) {
47 if ( $trustme{$module} ) {
48 my $methods = join '|', @{ $trustme{$module} };
49 $trustme = [qr/^(?:$methods)$/];
53 $module, { trustme => $trustme },
54 "Pod coverage for $module"