aboutsummaryrefslogtreecommitdiffhomepage
path: root/crates/shirabe/tests/installer/installation_manager_test.rs
blob: 58d083474e3e0a956d814979d0a03d154fb488cd (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
//! ref: composer/tests/Composer/Test/Installer/InstallationManagerTest.php

/// Builds mocked Loop/repository/IO. The mocks are not available here, so this
/// remains a stub.
fn set_up() {
    todo!()
}

// These mock individual installers, the repository and IO to drive InstallationManager's
// add/execute/install/update/uninstall logic; mocking is not available here.
macro_rules! stub {
    ($name:ident) => {
        #[test]
        #[ignore = "mocks installers/repository/IO to drive InstallationManager; mocking is not available"]
        fn $name() {
            todo!()
        }
    };
}

stub!(test_add_get_installer);
stub!(test_add_remove_installer);
stub!(test_execute);
stub!(test_install);
stub!(test_update_with_equal_types);
stub!(test_update_with_not_equal_types);
stub!(test_uninstall);
stub!(test_install_binary);