diff options
| author | nsfisis <nsfisis@gmail.com> | 2026-06-21 13:11:49 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2026-06-21 13:11:49 +0900 |
| commit | f0f5f084c883dc4f5b6e61603e82cd1c2092fd9d (patch) | |
| tree | a8b91efea7f17e61a8d0d9a82604d3ed964010a7 /crates/shirabe/tests/repository/vcs/gitlab_driver_test.rs | |
| parent | b1571202200e4dc630202928f5ff78959273c7ec (diff) | |
| download | php-shirabe-f0f5f084c883dc4f5b6e61603e82cd1c2092fd9d.tar.gz php-shirabe-f0f5f084c883dc4f5b6e61603e82cd1c2092fd9d.tar.zst php-shirabe-f0f5f084c883dc4f5b6e61603e82cd1c2092fd9d.zip | |
test(tests): expand stub macros into plain test functions
The per-file stub!/encode_stub!/etc. macros generated #[ignore]d test
functions but obscured the individual test bodies. Expanding them inline
removes the macro indirection so future ports can fill in each function
directly.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Diffstat (limited to 'crates/shirabe/tests/repository/vcs/gitlab_driver_test.rs')
| -rw-r--r-- | crates/shirabe/tests/repository/vcs/gitlab_driver_test.rs | 124 |
1 files changed, 99 insertions, 25 deletions
diff --git a/crates/shirabe/tests/repository/vcs/gitlab_driver_test.rs b/crates/shirabe/tests/repository/vcs/gitlab_driver_test.rs index a9432c4..1e13ada 100644 --- a/crates/shirabe/tests/repository/vcs/gitlab_driver_test.rs +++ b/crates/shirabe/tests/repository/vcs/gitlab_driver_test.rs @@ -4,30 +4,104 @@ // HttpDownloader reaches curl_multi_init, todo!()), or — for testSupports — rely on the // gitlab-domains configured in setUp plus the openssl extension, which are not modeled. -macro_rules! gitlab_stub { - ($name:ident) => { - #[test] - #[ignore = "GitLabDriver tests mock HttpDownloader/IO (curl_multi_init todo!()) or need setUp gitlab-domains config"] - fn $name() { - todo!() - } - }; +#[test] +#[ignore = "GitLabDriver tests mock HttpDownloader/IO (curl_multi_init todo!()) or need setUp gitlab-domains config"] +fn test_initialize() { + todo!() } -gitlab_stub!(test_initialize); -gitlab_stub!(test_initialize_public_project); -gitlab_stub!(test_initialize_public_project_as_anonymous); -gitlab_stub!(test_initialize_with_port_number); -gitlab_stub!(test_invalid_support_data); -gitlab_stub!(test_get_dist); -gitlab_stub!(test_get_source); -gitlab_stub!(test_get_source_given_public_project); -gitlab_stub!(test_get_tags); -gitlab_stub!(test_get_paginated_refs); -gitlab_stub!(test_get_branches); -gitlab_stub!(test_supports); -gitlab_stub!(test_gitlab_sub_directory); -gitlab_stub!(test_gitlab_sub_group); -gitlab_stub!(test_gitlab_sub_directory_sub_group); -gitlab_stub!(test_forwards_options); -gitlab_stub!(test_protocol_override_repository_url_generation); +#[test] +#[ignore = "GitLabDriver tests mock HttpDownloader/IO (curl_multi_init todo!()) or need setUp gitlab-domains config"] +fn test_initialize_public_project() { + todo!() +} + +#[test] +#[ignore = "GitLabDriver tests mock HttpDownloader/IO (curl_multi_init todo!()) or need setUp gitlab-domains config"] +fn test_initialize_public_project_as_anonymous() { + todo!() +} + +#[test] +#[ignore = "GitLabDriver tests mock HttpDownloader/IO (curl_multi_init todo!()) or need setUp gitlab-domains config"] +fn test_initialize_with_port_number() { + todo!() +} + +#[test] +#[ignore = "GitLabDriver tests mock HttpDownloader/IO (curl_multi_init todo!()) or need setUp gitlab-domains config"] +fn test_invalid_support_data() { + todo!() +} + +#[test] +#[ignore = "GitLabDriver tests mock HttpDownloader/IO (curl_multi_init todo!()) or need setUp gitlab-domains config"] +fn test_get_dist() { + todo!() +} + +#[test] +#[ignore = "GitLabDriver tests mock HttpDownloader/IO (curl_multi_init todo!()) or need setUp gitlab-domains config"] +fn test_get_source() { + todo!() +} + +#[test] +#[ignore = "GitLabDriver tests mock HttpDownloader/IO (curl_multi_init todo!()) or need setUp gitlab-domains config"] +fn test_get_source_given_public_project() { + todo!() +} + +#[test] +#[ignore = "GitLabDriver tests mock HttpDownloader/IO (curl_multi_init todo!()) or need setUp gitlab-domains config"] +fn test_get_tags() { + todo!() +} + +#[test] +#[ignore = "GitLabDriver tests mock HttpDownloader/IO (curl_multi_init todo!()) or need setUp gitlab-domains config"] +fn test_get_paginated_refs() { + todo!() +} + +#[test] +#[ignore = "GitLabDriver tests mock HttpDownloader/IO (curl_multi_init todo!()) or need setUp gitlab-domains config"] +fn test_get_branches() { + todo!() +} + +#[test] +#[ignore = "GitLabDriver tests mock HttpDownloader/IO (curl_multi_init todo!()) or need setUp gitlab-domains config"] +fn test_supports() { + todo!() +} + +#[test] +#[ignore = "GitLabDriver tests mock HttpDownloader/IO (curl_multi_init todo!()) or need setUp gitlab-domains config"] +fn test_gitlab_sub_directory() { + todo!() +} + +#[test] +#[ignore = "GitLabDriver tests mock HttpDownloader/IO (curl_multi_init todo!()) or need setUp gitlab-domains config"] +fn test_gitlab_sub_group() { + todo!() +} + +#[test] +#[ignore = "GitLabDriver tests mock HttpDownloader/IO (curl_multi_init todo!()) or need setUp gitlab-domains config"] +fn test_gitlab_sub_directory_sub_group() { + todo!() +} + +#[test] +#[ignore = "GitLabDriver tests mock HttpDownloader/IO (curl_multi_init todo!()) or need setUp gitlab-domains config"] +fn test_forwards_options() { + todo!() +} + +#[test] +#[ignore = "GitLabDriver tests mock HttpDownloader/IO (curl_multi_init todo!()) or need setUp gitlab-domains config"] +fn test_protocol_override_repository_url_generation() { + todo!() +} |
