blob: 480218042507410314d50269e2f828bb8ab45057 (
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/Util/GitTest.php
// These mock IO/Config/ProcessExecutor to drive Git::runCommand and mirror syncing; mocking
// is not available here.
#[allow(dead_code)]
fn set_up() {
// Builds mocked IO/Config/ProcessExecutor/Filesystem and a real Git; mocking is not available.
todo!()
}
macro_rules! stub {
($name:ident) => {
#[test]
#[ignore = "mocks IO/Config/ProcessExecutor to drive Git; mocking is not available"]
fn $name() {
todo!()
}
};
}
stub!(test_run_command_public_git_hub_repository_not_initial_clone);
stub!(test_run_command_private_git_hub_repository_not_initial_clone_not_interactive_without_authentication);
stub!(test_run_command_private_git_hub_repository_not_initial_clone_not_interactive_with_authentication);
stub!(test_run_command_private_bitbucket_repository_not_initial_clone_not_interactive_with_authentication);
stub!(test_run_command_private_bitbucket_repository_not_initial_clone_interactive_with_oauth);
stub!(test_sync_mirror_sanitizes_url_after_initial_clone);
stub!(test_sync_mirror_sanitizes_url_even_after_failed_update);
|