X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=xt%2Fauthor%2Fpod_coverage.t;h=5e0eb9348ecf5469a0d2b26d9cd4c3041a3c3d46;hb=b5331fcbe6111bb33ccc9dfde4c5d2bebc255f82;hp=e93b74cf3836601e245b3ddd925419f8a5816a74;hpb=d47834546dd2f1e05250ee0fb18fe24bf9e0c1a2;p=gitmo%2FMoose.git diff --git a/xt/author/pod_coverage.t b/xt/author/pod_coverage.t index e93b74c..5e0eb93 100644 --- a/xt/author/pod_coverage.t +++ b/xt/author/pod_coverage.t @@ -5,12 +5,13 @@ 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. -my @modules = all_modules(); +my @modules = grep { !/Accessor::Native.+$/ } all_modules(); plan tests => scalar @modules; my %trustme = ( @@ -20,11 +21,18 @@ my %trustme = ( attach_to_class ) ], - 'Moose::Meta::Class' => [ + 'Moose::Meta::Attribute::Native::MethodProvider::Array' => ['.+'], + 'Moose::Meta::Attribute::Native::MethodProvider::Bool' => ['.+'], + 'Moose::Meta::Attribute::Native::MethodProvider::Code' => ['.+'], + 'Moose::Meta::Attribute::Native::MethodProvider::Counter' => ['.+'], + 'Moose::Meta::Attribute::Native::MethodProvider::Hash' => ['.+'], + 'Moose::Meta::Attribute::Native::MethodProvider::String' => ['.+'], + 'Moose::Meta::Class' => [ qw( check_metaclass_compatibility construct_instance create_error raise_error + reinitialize superclasses ) ], @@ -53,13 +61,16 @@ 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::Role::Composite' => ['add_method'], - 'Moose::Role' => [ + 'Moose::Meta::Mixin::AttributeCore' => ['.+'], + 'Moose::Meta::Role::Composite' => + [ 'get_method', 'get_method_list', 'has_method', 'add_method' ], + 'Moose::Role' => [ qw( after around augment @@ -77,16 +88,20 @@ my %trustme = ( 'Moose::Meta::TypeConstraint::Class' => [qw( equals is_a_type_of is_a_subtype_of )], 'Moose::Meta::TypeConstraint::Enum' => [qw( constraint equals )], - 'Moose::Meta::TypeConstraint::DuckType' => [qw( constraint equals get_message )], + 'Moose::Meta::TypeConstraint::DuckType' => + [qw( constraint equals get_message )], 'Moose::Meta::TypeConstraint::Parameterizable' => ['.+'], 'Moose::Meta::TypeConstraint::Parameterized' => ['.+'], - 'Moose::Meta::TypeConstraint::Role' => [qw( equals is_a_type_of )], - 'Moose::Meta::TypeConstraint::Union' => ['compile_type_constraint'], - 'Moose::Util' => ['add_method_modifier'], + 'Moose::Meta::TypeConstraint::Role' => [qw( equals is_a_type_of )], + 'Moose::Meta::TypeConstraint::Union' => + [qw( compile_type_constraint coercion has_coercion)], + 'Moose::Util' => ['add_method_modifier'], + 'Moose::Util::MetaRole' => ['apply_metaclass_roles'], 'Moose::Util::TypeConstraints' => ['find_or_create_type_constraint'], ); for my $module ( sort @modules ) { + my $trustme = []; if ( $trustme{$module} ) { my $methods = join '|', @{ $trustme{$module} };