From 99e4497936fc90f79f6840eda2783683916a43c6 Mon Sep 17 00:00:00 2001 From: nsfisis Date: Sun, 21 Jun 2026 04:31:45 +0900 Subject: test(package): port RootPackageLoaderTest as stubs All ignored: load() parses require constraints via a look-around regex and the cases mock RepositoryManager / ProcessExecutor / VersionGuesser. Wires up the package/loader test submodule. Co-Authored-By: Claude Opus 4.8 (1M context) --- .../package/loader/root_package_loader_test.rs | 34 ++++++++++++++++++++++ 1 file changed, 34 insertions(+) (limited to 'crates/shirabe/tests/package/loader/root_package_loader_test.rs') diff --git a/crates/shirabe/tests/package/loader/root_package_loader_test.rs b/crates/shirabe/tests/package/loader/root_package_loader_test.rs index 6aee231..82d60ba 100644 --- a/crates/shirabe/tests/package/loader/root_package_loader_test.rs +++ b/crates/shirabe/tests/package/loader/root_package_loader_test.rs @@ -1 +1,35 @@ //! ref: composer/tests/Composer/Test/Package/Loader/RootPackageLoaderTest.php + +// These build a RootPackageLoader with a mocked RepositoryManager and either a mocked +// ProcessExecutor / VersionGuesser or require constraints whose parsing goes through a +// look-around regex the regex crate cannot compile. + +#[test] +#[ignore = "RootPackageLoader::load parses require constraints via a look-around regex; mocks RepositoryManager"] +fn test_stability_flags_parsing() { + todo!() +} + +#[test] +#[ignore = "mocks RepositoryManager and a ProcessExecutor returning a non-zero git result"] +fn test_no_version_is_visible_in_pretty_version() { + todo!() +} + +#[test] +#[ignore = "mocks RepositoryManager and a VersionGuesser returning a fixed guessed version"] +fn test_pretty_version_for_root_package_in_version_branch() { + todo!() +} + +#[test] +#[ignore = "mocks RepositoryManager and a ProcessExecutor feeding git branch output"] +fn test_feature_branch_pretty_version() { + todo!() +} + +#[test] +#[ignore = "mocks RepositoryManager and a ProcessExecutor feeding git branch output"] +fn test_non_feature_branch_pretty_version() { + todo!() +} -- cgit v1.3.1