X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=xt%2Fdist%2Fpod_coverage.t;h=4505af4b113e3041119fed7ac5503b8007fc10ed;hb=d009cb7d393292037eff527a9f8bab93860224fb;hp=1f3195a4a65c634affb7df141b5c4ada62da11b3;hpb=554484cbb19aadbcb23e28dfbd3de048518ece0d;p=dbsrgits%2FDBIx-Class.git diff --git a/xt/dist/pod_coverage.t b/xt/dist/pod_coverage.t index 1f3195a..4505af4 100644 --- a/xt/dist/pod_coverage.t +++ b/xt/dist/pod_coverage.t @@ -1,12 +1,12 @@ +BEGIN { do "./t/lib/ANFANG.pm" or die ( $@ || $! ) } use DBIx::Class::Optional::Dependencies -skip_all_without => 'test_podcoverage'; use warnings; use strict; use Test::More; -use List::Util 'first'; use Module::Runtime 'require_module'; -use lib qw(t/lib maint/.Generated_Pod/lib); +use lib 'maint/.Generated_Pod/lib'; use DBICTest; use namespace::clean; @@ -31,6 +31,7 @@ my $exceptions = { ignore => [qw/ MODIFY_CODE_ATTRIBUTES component_base_class + inject_base mk_classdata mk_classaccessor /] @@ -57,6 +58,7 @@ my $exceptions = { store_column get_column get_columns + get_dirty_columns has_column_loaded /], }, @@ -165,7 +167,7 @@ foreach my $module (@modules) { SKIP: { my ($match) = - first { $module =~ $_ } + grep { $module =~ $_ } (sort { length $b <=> length $a || $b cmp $a } (keys %$ex_lookup) ) ;