App-MechaCPAN
view release on metacpan or search on metacpan
t/31_cpanfile.t view on Meta::CPAN
use strict;
use FindBin;
use File::Copy;
use Test::More;
use Cwd qw/cwd/;
require q[./t/helper.pm];
my $pwd = cwd;
my $cpanfile = "$FindBin::Bin/../test_dists/DeployCpanfile/cpanfile";
my $cpanfile_info = App::MechaCPAN::parse_cpanfile($cpanfile);
my $output = {
'runtime' => {
'requires' => {
'Try::Tiny' => undef,
},
},
'configure' => { 'requires' => { 'Test::More' => undef } },
'perl' => '5.012000',
};
is_deeply(
$cpanfile_info, $output,
"parse_cpan produces the expected requirements"
);
done_testing;
( run in 0.591 second using v1.01-cache-2.11-cpan-6de40a662fe )