|
#!/usr/bin/perl
use_ok 'OPM::Maker::Command::depcheck' ;
my @packages = (
{ type => 'cpan' , name => 'File::Temp' , version => 10_000 },
{ type => 'opm' , name => 'FAQ' , version => '6.0.0' },
);
my $file = t::lib::depcheck::build_sopm( @packages );
my ( $stdout , $stderr ) = capture {
OPM::Maker::Command::depcheck::execute( undef , { home => $t::lib::depcheck::home }, [ $file ] );
};
ok ! $stderr ;
unlike $stdout , qr/FAQ/ ;
like $stdout , qr/Missing: CPAN-Module File::Temp 10000/ ;
t::lib::depcheck::teardown();
done_testing();
|