diff options
| author | nsfisis <nsfisis@gmail.com> | 2026-06-21 04:31:45 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2026-06-21 04:31:45 +0900 |
| commit | 99e4497936fc90f79f6840eda2783683916a43c6 (patch) | |
| tree | 8130b5a7cd4f60414509758d44b0bc0083b5ee94 /crates | |
| parent | d02e79c0cddd986a0b2cef878f32bda39cc2f5e9 (diff) | |
| download | php-shirabe-99e4497936fc90f79f6840eda2783683916a43c6.tar.gz php-shirabe-99e4497936fc90f79f6840eda2783683916a43c6.tar.zst php-shirabe-99e4497936fc90f79f6840eda2783683916a43c6.zip | |
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) <noreply@anthropic.com>
Diffstat (limited to 'crates')
| -rw-r--r-- | crates/shirabe/tests/package/loader/mod.rs | 1 | ||||
| -rw-r--r-- | crates/shirabe/tests/package/loader/root_package_loader_test.rs | 34 | ||||
| -rw-r--r-- | crates/shirabe/tests/package/main.rs | 1 |
3 files changed, 36 insertions, 0 deletions
diff --git a/crates/shirabe/tests/package/loader/mod.rs b/crates/shirabe/tests/package/loader/mod.rs new file mode 100644 index 0000000..7890044 --- /dev/null +++ b/crates/shirabe/tests/package/loader/mod.rs @@ -0,0 +1 @@ +mod root_package_loader_test; 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!() +} diff --git a/crates/shirabe/tests/package/main.rs b/crates/shirabe/tests/package/main.rs index c5170c2..951983f 100644 --- a/crates/shirabe/tests/package/main.rs +++ b/crates/shirabe/tests/package/main.rs @@ -4,5 +4,6 @@ mod test_case; mod archiver; mod base_package_test; mod complete_package_test; +mod loader; mod root_alias_package_test; mod version; |
