plan tests => scalar @modules;
my %trustme = (
+ 'Class::MOP' => ['HAVE_ISAREV'],
'Class::MOP::Attribute' => ['process_accessors'],
'Class::MOP::Class' => [
# deprecated
'alias_method',
+ 'compute_all_applicable_attributes',
'compute_all_applicable_methods',
# unfinished feature
'invalidate_meta_instance',
'invalidate_meta_instances',
'remove_dependent_meta_instance',
- 'remove_meta_instance_depdendencies',
+ 'remove_meta_instance_dependencies',
'update_meta_instance_dependencies',
# effectively internal
'clone_instance',
'construct_class_instance',
'construct_instance',
+ 'create_immutable_transformer',
'create_meta_instance',
+ 'get_immutable_options',
'reset_package_cache_flag',
'update_package_cache_flag',
+ 'wrap_method_body',
+
+ # doc'd with rebless_instance
+ 'rebless_instance_away',
+ ],
+
+ 'Class::MOP::Instance' => [
+ qw( BUILDARGS
+ bless_instance_structure
+ is_dependent_on_superclasses ),
+ ],
+
+ 'Class::MOP::Instance' => [
+ qw( BUILDARGS
+ bless_instance_structure
+ is_dependent_on_superclasses ),
+ ],
+
+ 'Class::MOP::Method::Accessor' => [
+ qw( generate_accessor_method
+ generate_accessor_method_inline
+ generate_clearer_method
+ generate_clearer_method_inline
+ generate_predicate_method
+ generate_predicate_method_inline
+ generate_reader_method
+ generate_reader_method_inline
+ generate_writer_method
+ generate_writer_method_inline
+ initialize_body
+ )
+ ],
+
+ 'Class::MOP::Method::Constructor' => [
+ qw( attributes
+ generate_constructor_method
+ generate_constructor_method_inline
+ initialize_body
+ meta_instance
+ options
+ )
],
+
+ 'Class::MOP::Method::Generated' => [
+ qw( new
+ definition_context
+ is_inline
+ initialize_body
+ )
+ ],
+
+ 'Class::MOP::Module' => ['create'],
);
for my $module ( sort @modules ) {
my $trustme = [];
if ( $trustme{$module} ) {
my $methods = join '|', @{ $trustme{$module} };
- $trustme = [qr/$methods/];
+ $trustme = [qr/^(?:$methods)$/];
}
pod_coverage_ok(