aboutsummaryrefslogtreecommitdiffhomepage
path: root/crates/shirabe/tests/package/archiver/archive_manager_test.rs
blob: b3b61f8e4636ccea649c335731e905306de4d933 (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 = "ArchiveManager builds archives via PharData (todo!()) over fixtures; not ported"]
fn test_unknown_format() {
    todo!()
}

#[test]
#[ignore = "ArchiveManager builds archives via PharData (todo!()) over fixtures; not ported"]
fn test_archive_tar() {
    todo!()
}

#[test]
#[ignore = "ArchiveManager builds archives via PharData (todo!()) over fixtures; not ported"]
fn test_archive_custom_file_name() {
    todo!()
}

#[test]
#[ignore = "ArchiveManager builds archives via PharData (todo!()) over fixtures; not ported"]
fn test_get_package_filename_parts() {
    todo!()
}

#[test]
#[ignore = "ArchiveManager builds archives via PharData (todo!()) over fixtures; not ported"]
fn test_get_package_filename() {
    todo!()
}