fixes for the applied_attribute stuff in moose 2
[catagits/Reaction.git] / t / 03podcoverage.t
CommitLineData
7adfd53f 1use strict;
2use warnings;
3use Test::More;
4
5eval "use Test::Pod::Coverage 1.04";
6plan skip_all => 'Test::Pod::Coverage 1.04 required' if $@;
7plan skip_all => 'set TEST_POD to enable this test' unless $ENV{TEST_POD};
8
9my @modules = sort { $a cmp $b } (Test::Pod::Coverage::all_modules());
10@modules = grep {!/^ComponentUI::/} @modules;
11plan tests => scalar(@modules);
12
13# methods to ignore on all modules
14my $exceptions = {
15 ignore => [
16 qw/ BUILD build_ can_ clear_ has_ do_ adopt_ accept_
17 apply_ layout value meta /
18 ]
19};
20
21foreach my $module (@modules) {
22 # build parms up from ignore list
23 my $parms = {};
24 $parms->{trustme} =
25 [ map { qr/^$_/ } @{ $exceptions->{ignore} } ]
26 if exists($exceptions->{ignore});
27
28 # run the test with the potentially modified parm set
29 pod_coverage_ok($module, $parms, "$module POD coverage");
30}