Debian Codegraph @

t/950-kwalitee/050-meta.t

raw
1 #!perl -w
2 use strict;
3 use Test::More;
4 plan skip_all => "Only run as part of the dist"
5 unless -f "META.yml";
6 eval "use CPAN::Meta 2.110580;";
7 plan skip_all => "CPAN::Meta required for testing META.yml"
8 if $@;
9 plan skip_all => "Only if automated or author testing"
10 unless $ENV{AUTOMATED_TESTING} || -d "../.git";
11 plan tests => 1;
12
13 my $meta;
14 unless (ok(eval {
15 $meta = CPAN::Meta->load_file("META.yml",
16 { lazy_validation => 0 }) },
17 "loaded META.yml successfully")) {
18 diag($@);
19 }