Filewatcher File Search File Search
Catalog
Content Search
» » » » » Chloro-0.04.tar.gz » Content »
pkg://Chloro-0.04.tar.gz:30468/Chloro-0.04/t/  info  downloads

release-pod-coverage.t

#!/usr/bin/perl

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


use strict;
use warnings;

use Test::More;

use Test::Requires {
    'Test::Pod::Coverage' => '1.04',
};

my %skip = map { $_ => 1 } qw(
    Chloro::Trait::Class
    Chloro::Trait::Role
    Chloro::Types
    Chloro::Types::Internal
);

# This is a stripped down version of all_pod_coverage_ok which lets us
# vary the trustme parameter per module.
my @modules = grep { ! $skip{$_} } all_modules();
plan tests => scalar @modules;

my %trustme = (
    'Chloro'                                 => qr/.+/,
    'Chloro::Field'                          => qr/^STORABLE_.+/,
    'Chloro::Role::Trait::HasFormComponents' => qr/.+/,
);

for my $module ( sort @modules ) {
    my $trustme = [];

    if ( $trustme{$module} ) {
        if ( ref $trustme{$module} eq 'ARRAY' ) {
            my $methods = join '|', @{ $trustme{$module} };
            $trustme = [qr/^(?:$methods)$/];
        }
        else {
            $trustme = [ $trustme{$module} ];
        }
    }

    pod_coverage_ok(
        $module, { trustme => $trustme },
        "Pod coverage for $module"
    );
}
Results 1 - 1 of 1
Help - FTP Sites List - Software Dir.
Search over 15 billion files
© 1997-2017 FileWatcher.com