blob: fdc4bf09955aae45b81cece1681e1e0537549edd (
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
|
//! ref: composer/tests/Composer/Test/Package/Archiver/ArchiveManagerTest.php
/// Builds an ArchiveManager via Factory/DownloadManager/Loop and derives targetDir under a
/// unique tmp dir (testDir); none of that factory/fixture infrastructure is ported.
/// Returns (test_dir, target_dir).
#[allow(dead_code)]
fn set_up() -> (String, String) {
todo!()
}
#[allow(dead_code)]
fn tear_down(_test_dir: &str) {
// Removes testDir created in set_up.
todo!()
}
#[allow(dead_code)]
struct TearDown {
test_dir: String,
}
impl Drop for TearDown {
fn drop(&mut self) {
tear_down(&self.test_dir);
}
}
// These drive ArchiveManager end-to-end (building tar archives via PharData, todo!()) and
// the filename-derivation helpers over packages; the archiving and fixture setup are not
// ported.
#[test]
#[ignore = "needs the Factory/FactoryMock-built ArchiveManager (createDownloadManager/createHttpDownloader/FactoryMock::createConfig) in set_up, which is unported"]
fn test_unknown_format() {
todo!()
}
#[test]
#[ignore = "needs setupGitRepo + PharData tar archiving and the Factory/FactoryMock-built ArchiveManager (set_up), which is unported"]
fn test_archive_tar() {
todo!()
}
#[test]
#[ignore = "needs setupGitRepo + PharData tar archiving and the Factory/FactoryMock-built ArchiveManager (set_up), which is unported"]
fn test_archive_custom_file_name() {
todo!()
}
#[test]
#[ignore = "needs the Factory/FactoryMock-built ArchiveManager (createDownloadManager/createHttpDownloader/FactoryMock::createConfig) in set_up, which is unported"]
fn test_get_package_filename_parts() {
todo!()
}
#[test]
#[ignore = "needs the Factory/FactoryMock-built ArchiveManager (createDownloadManager/createHttpDownloader/FactoryMock::createConfig) in set_up, which is unported"]
fn test_get_package_filename() {
todo!()
}
|