9 'Test::Pod::Coverage' => '1.04', # skip all if not installed
12 # This is a stripped down version of all_pod_coverage_ok which lets us
13 # vary the trustme parameter per module.
14 my @modules = grep { !/Accessor::Native.+$/ } all_modules();
15 plan tests => scalar @modules;
18 'Moose::Meta::Attribute' => [
24 'Moose::Meta::Attribute::Native::MethodProvider::Array' => ['.+'],
25 'Moose::Meta::Attribute::Native::MethodProvider::Bool' => ['.+'],
26 'Moose::Meta::Attribute::Native::MethodProvider::Code' => ['.+'],
27 'Moose::Meta::Attribute::Native::MethodProvider::Counter' => ['.+'],
28 'Moose::Meta::Attribute::Native::MethodProvider::Hash' => ['.+'],
29 'Moose::Meta::Attribute::Native::MethodProvider::String' => ['.+'],
30 'Moose::Meta::Class' => [
31 qw( check_metaclass_compatibility
39 'Moose::Meta::Class::Immutable::Trait' => ['.+'],
40 'Moose::Meta::Method' => ['throw_error'],
41 'Moose::Meta::Method::Accessor' => [
42 qw( generate_accessor_method
43 generate_accessor_method_inline
44 generate_clearer_method
45 generate_predicate_method
46 generate_reader_method
47 generate_reader_method_inline
48 generate_writer_method
49 generate_writer_method_inline
52 'Moose::Meta::Method::Constructor' => [
60 'Moose::Meta::Method::Destructor' => [ 'initialize_body', 'options' ],
61 'Moose::Meta::Role' => [
63 get_method_modifier_list
65 reset_package_cache_flag
66 update_package_cache_flag
70 'Moose::Meta::Mixin::AttributeCore' => ['.+'],
71 'Moose::Meta::Role::Composite' =>
72 [ 'get_method', 'get_method_list', 'has_method', 'add_method' ],
85 'Moose::Meta::TypeCoercion' => ['compile_type_coercion'],
86 'Moose::Meta::TypeCoercion::Union' => ['compile_type_coercion'],
87 'Moose::Meta::TypeConstraint' => ['compile_type_constraint'],
88 'Moose::Meta::TypeConstraint::Class' =>
89 [qw( equals is_a_type_of is_a_subtype_of )],
90 'Moose::Meta::TypeConstraint::Enum' => [qw( constraint equals )],
91 'Moose::Meta::TypeConstraint::DuckType' =>
92 [qw( constraint equals get_message )],
93 'Moose::Meta::TypeConstraint::Parameterizable' => ['.+'],
94 'Moose::Meta::TypeConstraint::Parameterized' => ['.+'],
95 'Moose::Meta::TypeConstraint::Role' => [qw( equals is_a_type_of )],
96 'Moose::Meta::TypeConstraint::Union' =>
97 [qw( compile_type_constraint coercion has_coercion)],
98 'Moose::Util' => ['add_method_modifier'],
99 'Moose::Util::MetaRole' => ['apply_metaclass_roles'],
100 'Moose::Util::TypeConstraints' => ['find_or_create_type_constraint'],
103 for my $module ( sort @modules ) {
106 if ( $trustme{$module} ) {
107 my $methods = join '|', @{ $trustme{$module} };
108 $trustme = [qr/^(?:$methods)$/];
112 $module, { trustme => $trustme },
113 "Pod coverage for $module"