aboutsummaryrefslogtreecommitdiffhomepage
path: root/crates
diff options
context:
space:
mode:
Diffstat (limited to 'crates')
-rw-r--r--crates/shirabe/tests/command/check_platform_reqs_command_test.rs18
-rw-r--r--crates/shirabe/tests/command/main.rs2
-rw-r--r--crates/shirabe/tests/command/search_command_test.rs18
-rw-r--r--crates/shirabe/tests/package/archiver/mod.rs1
-rw-r--r--crates/shirabe/tests/package/archiver/zip_archiver_test.rs20
-rw-r--r--crates/shirabe/tests/util/forgejo_test.rs16
-rw-r--r--crates/shirabe/tests/util/github_test.rs16
-rw-r--r--crates/shirabe/tests/util/gitlab_test.rs16
-rw-r--r--crates/shirabe/tests/util/main.rs3
9 files changed, 110 insertions, 0 deletions
diff --git a/crates/shirabe/tests/command/check_platform_reqs_command_test.rs b/crates/shirabe/tests/command/check_platform_reqs_command_test.rs
index f54b78e..a3a6ae5 100644
--- a/crates/shirabe/tests/command/check_platform_reqs_command_test.rs
+++ b/crates/shirabe/tests/command/check_platform_reqs_command_test.rs
@@ -1 +1,19 @@
//! ref: composer/tests/Composer/Test/Command/CheckPlatformReqsCommandTest.php
+
+#[test]
+#[ignore = "requires the ApplicationTester/initTempComposer harness, which is not yet ported"]
+fn test_platform_reqs_are_satisfied() {
+ todo!()
+}
+
+#[test]
+#[ignore = "requires the ApplicationTester/initTempComposer harness, which is not yet ported"]
+fn test_exception_thrown_if_no_lockfile_found() {
+ todo!()
+}
+
+#[test]
+#[ignore = "requires the ApplicationTester/initTempComposer harness, which is not yet ported"]
+fn test_failed_platform_requirement() {
+ todo!()
+}
diff --git a/crates/shirabe/tests/command/main.rs b/crates/shirabe/tests/command/main.rs
index 195f570..9183b33 100644
--- a/crates/shirabe/tests/command/main.rs
+++ b/crates/shirabe/tests/command/main.rs
@@ -1,9 +1,11 @@
mod about_command_test;
mod audit_command_test;
+mod check_platform_reqs_command_test;
mod clear_cache_command_test;
mod diagnose_command_test;
mod exec_command_test;
mod home_command_test;
mod reinstall_command_test;
+mod search_command_test;
mod self_update_command_test;
mod status_command_test;
diff --git a/crates/shirabe/tests/command/search_command_test.rs b/crates/shirabe/tests/command/search_command_test.rs
index a6fdb1c..d5b6a76 100644
--- a/crates/shirabe/tests/command/search_command_test.rs
+++ b/crates/shirabe/tests/command/search_command_test.rs
@@ -1 +1,19 @@
//! ref: composer/tests/Composer/Test/Command/SearchCommandTest.php
+
+#[test]
+#[ignore = "requires the ApplicationTester/initTempComposer harness, which is not yet ported"]
+fn test_search() {
+ todo!()
+}
+
+#[test]
+#[ignore = "requires the ApplicationTester/initTempComposer harness, which is not yet ported"]
+fn test_invalid_format() {
+ todo!()
+}
+
+#[test]
+#[ignore = "requires the ApplicationTester/initTempComposer harness, which is not yet ported"]
+fn test_invalid_flags() {
+ todo!()
+}
diff --git a/crates/shirabe/tests/package/archiver/mod.rs b/crates/shirabe/tests/package/archiver/mod.rs
index 0dd410b..c1c93c4 100644
--- a/crates/shirabe/tests/package/archiver/mod.rs
+++ b/crates/shirabe/tests/package/archiver/mod.rs
@@ -1,2 +1,3 @@
mod git_exclude_filter_test;
mod phar_archiver_test;
+mod zip_archiver_test;
diff --git a/crates/shirabe/tests/package/archiver/zip_archiver_test.rs b/crates/shirabe/tests/package/archiver/zip_archiver_test.rs
index b24679b..1c884d8 100644
--- a/crates/shirabe/tests/package/archiver/zip_archiver_test.rs
+++ b/crates/shirabe/tests/package/archiver/zip_archiver_test.rs
@@ -1 +1,21 @@
//! ref: composer/tests/Composer/Test/Package/Archiver/ZipArchiverTest.php
+
+// ZipArchiver::archive builds a zip via ZipArchive, which is todo!() in the php-shim.
+
+#[test]
+#[ignore = "ZipArchiver::archive builds a zip via ZipArchive, which is todo!() in the php-shim"]
+fn test_simple_files() {
+ todo!()
+}
+
+#[test]
+#[ignore = "ZipArchiver::archive builds a zip via ZipArchive, which is todo!() in the php-shim"]
+fn test_gitignore_exclude_negation() {
+ todo!()
+}
+
+#[test]
+#[ignore = "ZipArchiver::archive builds a zip via ZipArchive, which is todo!() in the php-shim"]
+fn test_folder_with_backslashes() {
+ todo!()
+}
diff --git a/crates/shirabe/tests/util/forgejo_test.rs b/crates/shirabe/tests/util/forgejo_test.rs
index 9965d36..2cae2ac 100644
--- a/crates/shirabe/tests/util/forgejo_test.rs
+++ b/crates/shirabe/tests/util/forgejo_test.rs
@@ -1 +1,17 @@
//! ref: composer/tests/Composer/Test/Util/ForgejoTest.php
+
+// Both cases construct Forgejo 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!()
+}
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!()
+}
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!()
+}
diff --git a/crates/shirabe/tests/util/main.rs b/crates/shirabe/tests/util/main.rs
index 1955f8d..cacd1a2 100644
--- a/crates/shirabe/tests/util/main.rs
+++ b/crates/shirabe/tests/util/main.rs
@@ -1,6 +1,9 @@
mod config_validator_test;
mod error_handler_test;
+mod forgejo_test;
mod forgejo_url_test;
+mod github_test;
+mod gitlab_test;
mod http;
mod http_downloader_test;
mod ini_helper_test;