blob: dcca80afb3681c2a6b0531fe8987491fdea71a05 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
//! ref: composer/tests/Composer/Test/Package/Archiver/ArchivableFilesFinderTest.php
/// Builds a temp directory tree of fixture files under a unique tmp dir; the Filesystem and
/// getUniqueTmpDirectory infrastructure is not ported.
#[allow(dead_code)]
fn set_up() -> String {
todo!()
}
#[allow(dead_code)]
fn tear_down(_sources: &str) {
// Removes the temp directory tree created in set_up.
todo!()
}
#[allow(dead_code)]
struct TearDown {
sources: String,
}
impl Drop for TearDown {
fn drop(&mut self) {
tear_down(&self.sources);
}
}
// These set up a temp directory tree (including a git repo) and assert the files the finder
// selects with manual/git/skip excludes; the git-backed fixture setup is not ported.
macro_rules! stub {
($name:ident) => {
#[test]
#[ignore = "needs a temp directory tree and git-backed fixtures to drive ArchivableFilesFinder; not ported"]
fn $name() {
todo!()
}
};
}
stub!(test_manual_excludes);
stub!(test_git_excludes);
stub!(test_skip_excludes);
|