X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=xt%2Fdist%2Fpod_coverage.t;h=859f0e324f1ebe7a43cde1f534e5f871b413140e;hb=93f1cd05f42cb5b4081a2929804f3c8ab4d38f52;hp=a86c4d8fdedef29e4e44906ccc268b2239fcb030;hpb=87b1255103d7b8873b225416cb381c50011f4c06;p=dbsrgits%2FDBIx-Class.git diff --git a/xt/dist/pod_coverage.t b/xt/dist/pod_coverage.t index a86c4d8..859f0e3 100644 --- a/xt/dist/pod_coverage.t +++ b/xt/dist/pod_coverage.t @@ -8,6 +8,7 @@ use Test::More; use Module::Runtime 'require_module'; use lib 'maint/.Generated_Pod/lib'; use DBICTest; +use DBIx::Class::Schema::SanityChecker; use namespace::clean; # this has already been required but leave it here for CPANTS static analysis @@ -29,10 +30,7 @@ require Test::Pod::Coverage; my $exceptions = { 'DBIx::Class' => { ignore => [qw/ - MODIFY_CODE_ATTRIBUTES component_base_class - mk_classdata - mk_classaccessor /] }, 'DBIx::Class::Optional::Dependencies' => { @@ -70,6 +68,10 @@ my $exceptions = { resolve_prefetch STORABLE_freeze STORABLE_thaw + get_rsrc_instance_specific_attribute + set_rsrc_instance_specific_attribute + get_rsrc_instance_specific_handler + set_rsrc_instance_specific_handler /], }, 'DBIx::Class::ResultSet' => { @@ -101,6 +103,11 @@ my $exceptions = { connection /] }, + 'DBIx::Class::Schema::SanityChecker' => { + ignore => [ map { + qr/^ (?: check_${_} | format_${_}_errors ) $/x + } @{ DBIx::Class::Schema::SanityChecker->available_checks } ] + }, 'DBIx::Class::Admin' => { ignore => [ qw/ @@ -115,6 +122,8 @@ my $exceptions = { /] }, + 'DBIx::Class::_TempExtlib*' => { skip => 1 }, + 'DBIx::Class::Admin::*' => { skip => 1 }, 'DBIx::Class::ClassResolver::PassThrough' => { skip => 1 }, 'DBIx::Class::Componentised' => { skip => 1 }, @@ -178,9 +187,10 @@ foreach my $module (@modules) { # build parms up from ignore list my $parms = {}; - $parms->{trustme} = - [ map { qr/^$_$/ } @{ $ex->{ignore} } ] - if exists($ex->{ignore}); + $parms->{trustme} = [ map + { ref $_ eq 'Regexp' ? $_ : qr/^\Q$_\E$/ } + @{ $ex->{ignore} } + ] if exists($ex->{ignore}); # run the test with the potentially modified parm set Test::Pod::Coverage::pod_coverage_ok($module, $parms, "$module POD coverage");