aboutsummaryrefslogtreecommitdiffhomepage
path: root/crates/shirabe/tests/package/archiver/zip_archiver_test.rs
blob: 5f41c789b868b861e29fc6527f85de8b80b65bd2 (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
//! ref: composer/tests/Composer/Test/Package/Archiver/ZipArchiverTest.php

/// Creates the Filesystem/ProcessExecutor and a unique tmp testDir; that infrastructure is
/// not ported. Returns testDir.
#[allow(dead_code)]
fn set_up() -> String {
    todo!()
}

/// Unlinks the zip files collected in filesToCleanup, then (parent) removes testDir.
#[allow(dead_code)]
fn tear_down(_files_to_cleanup: &[String], _test_dir: &str) {
    todo!()
}

#[allow(dead_code)]
struct TearDown {
    files_to_cleanup: Vec<String>,
    test_dir: String,
}

impl Drop for TearDown {
    fn drop(&mut self) {
        tear_down(&self.files_to_cleanup, &self.test_dir);
    }
}

// ZipArchiver::archive builds a zip via ZipArchive, which is todo!() in the php-shim.

#[test]
#[ignore = "ZipArchiver::archive builds a zip via ZipArchive, which is todo!() in the php-shim"]
fn test_simple_files() {
    todo!()
}

#[test]
#[ignore = "ZipArchiver::archive builds a zip via ZipArchive, which is todo!() in the php-shim"]
fn test_gitignore_exclude_negation() {
    todo!()
}

#[test]
#[ignore = "ZipArchiver::archive builds a zip via ZipArchive, which is todo!() in the php-shim"]
fn test_folder_with_backslashes() {
    todo!()
}