Alien-Build-Git
view release on metacpan or search on metacpan
t/alien_build_plugin_fetch_git.t view on Meta::CPAN
"This is version 0.02\n",
);
};
subtest 'fetch without tag' => sub {
my $ret;
my $error;
my $out;
note $out = capture_merged {
$ret = eval { $build->fetch("$example1") };
$error = $@;
};
is $error, '';
diag $out if $error;
is(
$ret,
hash {
field type => 'list';
field list => array {
item hash {
field filename => '0.01';
field url => url {
url_component scheme => 'file';
url_component host => 'localhost' if $^O ne 'MSWin32';
url_component host => '' if $^O eq 'MSWin32';
url_component path => $example1;
url_component fragment => '0.01';
};
};
item hash {
field filename => '0.02';
field url => url {
url_component scheme => 'file';
url_component host => 'localhost' if $^O ne 'MSWin32';
url_component host => '' if $^O eq 'MSWin32';
url_component path => $example1;
url_component fragment => '0.02';
};
};
item hash {
field filename => '0.03';
field url => url {
url_component scheme => 'file';
url_component host => 'localhost' if $^O ne 'MSWin32';
url_component host => '' if $^O eq 'MSWin32';
url_component path => $example1;
url_component fragment => '0.03';
};
};
end;
};
field protocol => 'file';
end;
},
) || do {
require Data::Dumper;
diag Data::Dumper::Dumper($ret);
};
};
done_testing
( run in 0.492 second using v1.01-cache-2.11-cpan-df04353d9ac )