use Test::Requires in tests
[gitmo/Moose.git] / xt / author / pod_coverage.t
index d7e3e93..cda0317 100644 (file)
@@ -5,8 +5,9 @@ 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 $@;
+use Test::Requires {
+    'Test::Pod::Coverage' => '1.04', # skip all if not installed
+};
 
 # This is a stripped down version of all_pod_coverage_ok which lets us
 # vary the trustme parameter per module.
@@ -31,6 +32,7 @@ my %trustme = (
             construct_instance
             create_error
             raise_error
+            reinitialize
             superclasses
             )
     ],
@@ -59,11 +61,13 @@ my %trustme = (
     'Moose::Meta::Role'               => [
         qw( alias_method
             get_method_modifier_list
+            reinitialize
             reset_package_cache_flag
             update_package_cache_flag
             wrap_method_body
             )
     ],
+    'Moose::Meta::Mixin::AttributeCore' => ['.+'],
     'Moose::Meta::Role::Composite' =>
         [ 'get_method', 'get_method_list', 'has_method', 'add_method' ],
     'Moose::Role' => [
@@ -91,6 +95,7 @@ my %trustme = (
     'Moose::Meta::TypeConstraint::Role'  => [qw( equals is_a_type_of )],
     'Moose::Meta::TypeConstraint::Union' => ['compile_type_constraint'],
     'Moose::Util'                        => ['add_method_modifier'],
+    'Moose::Util::MetaRole'              => ['apply_metaclass_roles'],
     'Moose::Util::TypeConstraints' => ['find_or_create_type_constraint'],
 );