App-FuguVM
view release on metacpan or search on metacpan
t/fuguvm/proxy.t view on Meta::CPAN
is_deeply(\@left,
[
"http://$MIRROR/7.8/arm64/SHA256",
"http://$MIRROR/7.8/arm64/base78.tgz",
'http://example.com/loose.txt',
],
'the kept version and the unversioned file survive');
is($cache->size, 115, 'and the freed bytes are gone');
# The directory itself must be gone, not only its files. The
# tree is what a CI cache uploads and downloads on every key
# rotation.
ok(!-e "$tmpdir/proxy/$MIRROR/7.7",
'the pruned release directory is gone');
ok(!-e "$tmpdir/proxy/$MIRROR/syspatch/7.7",
'the pruned syspatch directory is gone');
ok(-d "$tmpdir/proxy/$MIRROR/7.8",
'the kept version directory remains');
is_deeply($cache->prune('7.8'), [], 'pruning twice removes nothing');
}
( run in 0.862 second using v1.01-cache-2.11-cpan-b16cb0d3907 )