From 46ff68a20235cb6ba05d00b001f334abc303eef8 Mon Sep 17 00:00:00 2001 From: nsfisis Date: Sun, 21 Jun 2026 04:35:15 +0900 Subject: 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) --- crates/shirabe/tests/repository/main.rs | 1 + .../tests/repository/path_repository_test.rs | 53 ++++++++++++++++++++++ 2 files changed, 54 insertions(+) (limited to 'crates') 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!() +} -- cgit v1.3.1