Git-DescribeVersion
view release on metacpan - search on metacpan
view release on metacpan or search on metacpan
t/app-args.t view on Meta::CPAN
);
plan tests => @tests * 2;
foreach my $test ( @tests ){
my ($env, $argv, $args, $exp) = @$test{qw(env argv args exp)};
$env->{"GIT_DV_\U$_"} = delete $env->{$_} for keys %$env;
local %ENV = (%ENV, %$env);
local @ARGV = @$argv;
is_deeply(Git::DescribeVersion::App::options(@$args), $exp, 'got expected options as function');
local @ARGV = @$argv;
is_deeply(Git::DescribeVersion::App->options(@$args), $exp, 'got expected options as class method');
}
view all matches for this distributionview release on metacpan - search on metacpan
( run in 0.779 second using v1.00-cache-2.02-grep-82fe00e-cpan-c9a218a2bbc )