The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.
#!perl

BEGIN {
  unless ($ENV{RELEASE_TESTING}) {
    require Test::More;
    Test::More::plan(skip_all => 'these tests are for release candidate testing');
  }
}

# This file was automatically generated by Dist::Zilla::Plugin::Test::Pod::Coverage::Configurable.

use Test::Pod::Coverage 1.08;
use Test::More 0.88;
use Pod::Coverage::TrustPod;

my %skip = map { $_ => 1 } qw( DateTime::Helpers DateTimePP DateTimePPExtra );

my @modules;
for my $module ( all_modules() ) {
    next if $skip{$module};

    push @modules, $module;
}

plan skip_all => 'All the modules we found were excluded from POD coverage test.'
    unless @modules;

plan tests => scalar @modules;

my %trustme = (
             'DateTime' => [
                           qr/0$/,
                           qr/^STORABLE/,
                           qr/^utc_year$/,
                           qr/^timegm$/,
                           qr/^day_of_month$/,
                           qr/^doq$/,
                           qr/^dow$/,
                           qr/^doy$/,
                           qr/^iso8601$/,
                           qr/^local_rd_as_seconds$/,
                           qr/^mday$/,
                           qr/^min$/,
                           qr/^mon$/,
                           qr/^sec$/,
                           qr/^wday$/,
                           qr/^DefaultLanguage$/,
                           qr/^era$/,
                           qr/^language$/
                         ],
             'DateTime::Infinite' => [
                                     qr/^STORABLE/,
                                     qr/^set/,
                                     qr/^is(?:in)?finite/,
                                     qr/^truncate/
                                   ]
           );

for my $module ( sort @modules ) {
    pod_coverage_ok(
        $module,
        {
            coverage_class => 'Pod::Coverage::TrustPod',
            trustme        => $trustme{$module} || [],
        },
        "pod coverage for $module"
    );
}

done_testing();