Acme-CPANAuthors-InMemoriam
view release on metacpan or search on metacpan
t/96metatest.t view on Meta::CPAN
#!perl -T
use strict;
use warnings;
use Test::More;
# Skip if doing a regular install
plan skip_all => "Author tests not required for installation"
unless ( $ENV{AUTOMATED_TESTING} );
eval "use Test::CPAN::Meta::JSON";
plan skip_all => "Test::CPAN::Meta::JSON required for testing META.json files" if $@;
plan 'no_plan';
my $meta = meta_spec_ok(undef,undef,@_);
use Acme::CPANAuthors::InMemoriam;
my $version = $Acme::CPANAuthors::InMemoriam::VERSION;
is($meta->{version},$version,
'META.json distribution version matches');
if($meta->{provides}) {
for my $mod (keys %{$meta->{provides}}) {
is($meta->{provides}{$mod}{version},$version,
"META.json entry [$mod] version matches distribution version");
eval "require $mod";
my $VERSION = '$' . $mod . '::VERSION';
my $v = eval "$VERSION";
is($meta->{provides}{$mod}{version},$v,
"META.json entry [$mod] version matches module version");
isnt($meta->{provides}{$mod}{version},0);
}
}
( run in 1.010 second using v1.01-cache-2.11-cpan-5a3173703d6 )