X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=xt%2Fauthor%2Fpod_coverage.t;h=4a7bfdf635822aa7bf76861594029a034610fbb3;hb=7931f7dbb7c24340c20560f49e32ec258968949b;hp=bf1daf1e42b18c8c76b47263a50e2cf670978963;hpb=b1aaf0dc7312de31c7274c66681eca2d02c4d22b;p=gitmo%2FClass-MOP.git diff --git a/xt/author/pod_coverage.t b/xt/author/pod_coverage.t index bf1daf1..4a7bfdf 100644 --- a/xt/author/pod_coverage.t +++ b/xt/author/pod_coverage.t @@ -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. @@ -14,10 +15,14 @@ my @modules = all_modules(); plan tests => scalar @modules; my %trustme = ( - 'Class::MOP' => [ 'HAVE_ISAREV', 'subname', 'in_global_destruction' ], + 'Class::MOP' => [ + 'DEBUG_NO_META', + 'HAVE_ISAREV', + 'subname', + 'in_global_destruction', + ], 'Class::MOP::Attribute' => ['process_accessors'], 'Class::MOP::Class' => [ - # deprecated 'alias_method', 'compute_all_applicable_attributes', @@ -40,6 +45,7 @@ my %trustme = ( 'create_meta_instance', 'reset_package_cache_flag', 'update_package_cache_flag', + 'reinitialize', # doc'd with rebless_instance 'rebless_instance_away', @@ -50,8 +56,7 @@ my %trustme = ( 'Class::MOP::Class::Immutable::Trait' => ['.+'], 'Class::MOP::Class::Immutable::Class::MOP::Class' => ['.+'], 'Class::MOP::Deprecated' => ['.+'], - - 'Class::MOP::Instance' => [ + 'Class::MOP::Instance' => [ qw( BUILDARGS bless_instance_structure is_dependent_on_superclasses ), @@ -91,7 +96,11 @@ my %trustme = ( initialize_body ) ], - 'Class::MOP::Module' => ['create'], + 'Class::MOP::MiniTrait' => ['.+'], + 'Class::MOP::Mixin::AttributeCore' => ['.+'], + 'Class::MOP::Mixin::HasAttributes' => ['.+'], + 'Class::MOP::Mixin::HasMethods' => ['.+'], + 'Class::MOP::Module' => ['create'], 'Class::MOP::Package' => [ 'get_method_map', 'wrap_method_body' ], );