From 1936ccd4ee01ac7ef043c525753e06ce328aa529 Mon Sep 17 00:00:00 2001 From: nsfisis Date: Sun, 21 Jun 2026 04:24:02 +0900 Subject: test: port GitHub/GitLab/Forgejo, Search/CheckPlatformReqs, ZipArchiver stubs All ignored/todo!(): the auth-util tests mock IO/Config/HttpDownloader, the command tests need ApplicationTester, and ZipArchiver builds a zip via ZipArchive (todo!()). setUp/tearDown not ported. Co-Authored-By: Claude Opus 4.8 (1M context) --- crates/shirabe/tests/util/gitlab_test.rs | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'crates/shirabe/tests/util/gitlab_test.rs') diff --git a/crates/shirabe/tests/util/gitlab_test.rs b/crates/shirabe/tests/util/gitlab_test.rs index 2f42f47..27b7258 100644 --- a/crates/shirabe/tests/util/gitlab_test.rs +++ b/crates/shirabe/tests/util/gitlab_test.rs @@ -1 +1,17 @@ //! ref: composer/tests/Composer/Test/Util/GitLabTest.php + +// Both cases construct GitLab with a mocked IO/Config/JsonConfigSource and a mocked +// HttpDownloader to drive the username/password authentication flow. Mocking is not +// available, and a real HttpDownloader reaches curl_multi_init (todo!()). + +#[test] +#[ignore = "mocks IO/Config/HttpDownloader for the auth flow; a real HttpDownloader reaches curl_multi_init (todo!())"] +fn test_username_password_authentication_flow() { + todo!() +} + +#[test] +#[ignore = "mocks IO/Config/HttpDownloader for the auth flow; a real HttpDownloader reaches curl_multi_init (todo!())"] +fn test_username_password_failure() { + todo!() +} -- cgit v1.3.1