my
@modules
=
sort
{
$a
cmp
$b
} ( Test::Pod::Coverage::all_modules() );
my
$exceptions
= {
'SQL::Abstract'
=> {
ignore
=> [
qw(
belch
puke
DETECT_AUTOGENERATED_STRINGIFICATION
)
]},
'SQL::Abstract::Tree'
=> {
ignore
=> [
qw(BUILDARGS)
] },
'SQL::Abstract::Test'
=> {
skip
=> 1 },
'SQL::Abstract::Formatter'
=> {
skip
=> 1 },
'SQL::Abstract::Parts'
=> {
skip
=> 1 },
'DBIx::Class::Storage::Debug::PrettyPrint'
=> {
skip
=> 1 },
};
foreach
my
$module
(
@modules
) {
SKIP:
{
skip
"$module - No user visible methods"
,
1
if
(
$exceptions
->{
$module
}{skip} );
my
$parms
= {};
$parms
->{trustme} =
[
map
{
qr/^$_$/
} @{
$exceptions
->{
$module
}{ignore} } ]
if
exists
(
$exceptions
->{
$module
}{ignore} );
pod_coverage_ok(
$module
,
$parms
,
"$module POD coverage"
);
}
}
done_testing;