aboutsummaryrefslogtreecommitdiffhomepage
path: root/crates/shirabe/tests/installer/library_installer_test.rs
blob: 2182962505d8d82aaabd56ced16ff1bd7df1054d (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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
//! ref: composer/tests/Composer/Test/Installer/LibraryInstallerTest.php

/// Sets up a Composer/Config over root/vendor/bin temp dirs plus mocked
/// DownloadManager/repository/IO. The temp-dir helpers and the mocks are not
/// available here, so this remains a stub.
fn set_up() {
    todo!()
}

/// Removes the root dir created by `set_up`, which is itself a stub.
fn tear_down() {
    todo!()
}

struct TearDown;

impl Drop for TearDown {
    fn drop(&mut self) {
        tear_down();
    }
}

// These construct a LibraryInstaller over a temp dir with a mocked IO/Filesystem/repository
// and mocked packages to drive install/update/uninstall and path resolution.
#[test]
#[ignore = "mocks IO/Filesystem/repository and packages to drive LibraryInstaller; mocking is not available"]
fn test_installer_creation_should_not_create_vendor_directory() {
    todo!()
}

#[test]
#[ignore = "mocks IO/Filesystem/repository and packages to drive LibraryInstaller; mocking is not available"]
fn test_installer_creation_should_not_create_bin_directory() {
    todo!()
}

#[test]
#[ignore = "mocks IO/Filesystem/repository and packages to drive LibraryInstaller; mocking is not available"]
fn test_is_installed() {
    todo!()
}

#[test]
#[ignore = "mocks IO/Filesystem/repository and packages to drive LibraryInstaller; mocking is not available"]
fn test_install() {
    todo!()
}

#[test]
#[ignore = "mocks IO/Filesystem/repository and packages to drive LibraryInstaller; mocking is not available"]
fn test_update() {
    todo!()
}

#[test]
#[ignore = "mocks IO/Filesystem/repository and packages to drive LibraryInstaller; mocking is not available"]
fn test_uninstall() {
    todo!()
}

#[test]
#[ignore = "mocks IO/Filesystem/repository and packages to drive LibraryInstaller; mocking is not available"]
fn test_get_install_path_without_target_dir() {
    todo!()
}

#[test]
#[ignore = "mocks IO/Filesystem/repository and packages to drive LibraryInstaller; mocking is not available"]
fn test_get_install_path_with_target_dir() {
    todo!()
}

#[test]
#[ignore = "mocks IO/Filesystem/repository and packages to drive LibraryInstaller; mocking is not available"]
fn test_ensure_binaries_installed() {
    todo!()
}