Skip to content
Fetching contributors…
Cannot retrieve contributors at this time
20 lines (18 sloc) 493 Bytes
#!perl -w
use strict;
use Test::More;
plan skip_all => "Only run as part of the dist"
unless -f "META.yml";
eval "use CPAN::Meta 2.110580;";
plan skip_all => "CPAN::Meta required for testing META.yml"
if $@;
plan skip_all => "Only if automated or author testing"
unless $ENV{AUTOMATED_TESTING} || -d "../.git";
plan tests => 1;
my $meta;
unless (ok(eval {
$meta = CPAN::Meta->load_file("META.yml",
{ lazy_validation => 0 }) },
"loaded META.yml successfully")) {
diag($@);
}
Something went wrong with that request. Please try again.