8 unless ( DBIx::Class::Optional::Dependencies->req_ok_for ('test_strictures') ) {
9 my $missing = DBIx::Class::Optional::Dependencies->req_missing_for ('test_strictures');
11 ? die ("Failed to load release-testing module requirements: $missing")
12 : plan skip_all => "Test needs: $missing"
17 # The rationale is - if we can load all our optdeps
18 # that are related to lib/ - then we should be able to run
19 # perl -c checks (via syntax_ok), and all should just work
20 my $missing_groupdeps_present = grep
21 { DBIx::Class::Optional::Dependencies->req_ok_for($_) }
23 { $_ !~ /^ (?: test | rdbms | dist ) _ /x }
24 keys %{DBIx::Class::Optional::Dependencies->req_group_list}
30 m/\.(?: pm | pl | t )$ /ix or return;
33 maint/Makefile.PL.inc/.+ # all the maint inc snippets are auto-strictured
35 t/lib/DBICTest/Util/OverrideRequire.pm # no stictures by design (load order sensitive)
40 Test::Strict::strict_ok($f);
41 Test::Strict::warnings_ok($f);
43 Test::Strict::syntax_ok($f)
44 if ! $missing_groupdeps_present and $f =~ /^ (?: lib )/x;
47 }, (qw(lib t examples maint)) );