aboutsummaryrefslogtreecommitdiffhomepage
path: root/crates/shirabe/tests/repository
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2026-06-21 04:35:15 +0900
committernsfisis <nsfisis@gmail.com>2026-06-21 04:35:15 +0900
commit46ff68a20235cb6ba05d00b001f334abc303eef8 (patch)
tree1868d197f7c27324ed7fb0faf024147fb8c33107 /crates/shirabe/tests/repository
parent99e4497936fc90f79f6840eda2783683916a43c6 (diff)
downloadphp-shirabe-46ff68a20235cb6ba05d00b001f334abc303eef8.tar.gz
php-shirabe-46ff68a20235cb6ba05d00b001f334abc303eef8.tar.zst
php-shirabe-46ff68a20235cb6ba05d00b001f334abc303eef8.zip
test(repository): port PathRepositoryTest as stubs
PathRepository does not implement RepositoryInterface and exposes no public getPackages/count/hasPackage (delegation to its inner ArrayRepository is not ported), so the cases cannot be driven; the unversioned ones also need the VersionGuesser. All stubbed. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Diffstat (limited to 'crates/shirabe/tests/repository')
-rw-r--r--crates/shirabe/tests/repository/main.rs1
-rw-r--r--crates/shirabe/tests/repository/path_repository_test.rs53
2 files changed, 54 insertions, 0 deletions
diff --git a/crates/shirabe/tests/repository/main.rs b/crates/shirabe/tests/repository/main.rs
index 4cbaf2e..54687d8 100644
--- a/crates/shirabe/tests/repository/main.rs
+++ b/crates/shirabe/tests/repository/main.rs
@@ -6,6 +6,7 @@ mod artifact_repository_test;
mod composite_repository_test;
mod filter_repository_test;
mod installed_repository_test;
+mod path_repository_test;
mod repository_factory_test;
mod repository_manager_test;
mod repository_utils_test;
diff --git a/crates/shirabe/tests/repository/path_repository_test.rs b/crates/shirabe/tests/repository/path_repository_test.rs
index 93ef6bf..c2e8e72 100644
--- a/crates/shirabe/tests/repository/path_repository_test.rs
+++ b/crates/shirabe/tests/repository/path_repository_test.rs
@@ -1 +1,54 @@
//! ref: composer/tests/Composer/Test/Repository/PathRepositoryTest.php
+
+// PathRepository does not implement RepositoryInterface and exposes no public
+// getPackages/count/hasPackage; the delegation to its inner ArrayRepository is not yet
+// ported, so there is no way to drive these tests. The unversioned cases additionally
+// require the VersionGuesser (git).
+
+#[test]
+#[ignore = "PathRepository exposes no public getPackages/count/hasPackage (RepositoryInterface delegation not ported)"]
+fn test_load_package_from_file_system_with_incorrect_path() {
+ todo!()
+}
+
+#[test]
+#[ignore = "PathRepository exposes no public getPackages/count/hasPackage (RepositoryInterface delegation not ported)"]
+fn test_load_package_from_file_system_with_version() {
+ todo!()
+}
+
+#[test]
+#[ignore = "PathRepository exposes no public getPackages/count/hasPackage (RepositoryInterface delegation not ported)"]
+fn test_load_package_from_file_system_without_version() {
+ todo!()
+}
+
+#[test]
+#[ignore = "PathRepository exposes no public getPackages/count/hasPackage (RepositoryInterface delegation not ported)"]
+fn test_load_package_from_file_system_with_wildcard() {
+ todo!()
+}
+
+#[test]
+#[ignore = "PathRepository exposes no public getPackages/count/hasPackage (RepositoryInterface delegation not ported)"]
+fn test_load_package_with_explicit_versions() {
+ todo!()
+}
+
+#[test]
+#[ignore = "PathRepository exposes no public getPackages/count/hasPackage (RepositoryInterface delegation not ported)"]
+fn test_url_remains_relative() {
+ todo!()
+}
+
+#[test]
+#[ignore = "PathRepository exposes no public getPackages/count/hasPackage (RepositoryInterface delegation not ported)"]
+fn test_reference_none() {
+ todo!()
+}
+
+#[test]
+#[ignore = "PathRepository exposes no public getPackages/count/hasPackage (RepositoryInterface delegation not ported)"]
+fn test_reference_config() {
+ todo!()
+}