diff options
| author | nsfisis <nsfisis@gmail.com> | 2026-06-21 04:24:02 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2026-06-21 04:24:02 +0900 |
| commit | 1936ccd4ee01ac7ef043c525753e06ce328aa529 (patch) | |
| tree | d6d5130bd589aba5a44fa850096523e357b247a9 /crates/shirabe/tests/util/github_test.rs | |
| parent | 8e37fd201072439148ab2d179313478b79a38df7 (diff) | |
| download | php-shirabe-1936ccd4ee01ac7ef043c525753e06ce328aa529.tar.gz php-shirabe-1936ccd4ee01ac7ef043c525753e06ce328aa529.tar.zst php-shirabe-1936ccd4ee01ac7ef043c525753e06ce328aa529.zip | |
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) <noreply@anthropic.com>
Diffstat (limited to 'crates/shirabe/tests/util/github_test.rs')
| -rw-r--r-- | crates/shirabe/tests/util/github_test.rs | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/crates/shirabe/tests/util/github_test.rs b/crates/shirabe/tests/util/github_test.rs index 9a3271a..019b858 100644 --- a/crates/shirabe/tests/util/github_test.rs +++ b/crates/shirabe/tests/util/github_test.rs @@ -1 +1,17 @@ //! ref: composer/tests/Composer/Test/Util/GitHubTest.php + +// Both cases construct GitHub 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!() +} |
