diff options
| author | nsfisis <nsfisis@gmail.com> | 2026-06-21 01:14:02 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2026-06-21 01:14:02 +0900 |
| commit | e050356c9ba8e1a2c20d2fc842924e189f3cc89e (patch) | |
| tree | 3a0a6829379c1469b6922a924be831e3e1d15448 /crates/shirabe/tests/dependency_resolver/main.rs | |
| parent | f8e4e41956d0a2c59249a02be6e532939266fb9e (diff) | |
| download | php-shirabe-e050356c9ba8e1a2c20d2fc842924e189f3cc89e.tar.gz php-shirabe-e050356c9ba8e1a2c20d2fc842924e189f3cc89e.tar.zst php-shirabe-e050356c9ba8e1a2c20d2fc842924e189f3cc89e.zip | |
test(dependency-resolver): port PoolTest with shared TestCase helpers
Add tests/common/test_case.rs (get_package, get_version_constraint) ported from
the PHP TestCase, included into the dependency_resolver binary via #[path].
PoolTest's testPool/testPackageById/testWhatProvidesWhenPackageCannotBeFound
pass; testWhatProvidesPackageWithConstraint is #[ignore] (constraint matching
reaches a todo!() in the php-shim).
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Diffstat (limited to 'crates/shirabe/tests/dependency_resolver/main.rs')
| -rw-r--r-- | crates/shirabe/tests/dependency_resolver/main.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/crates/shirabe/tests/dependency_resolver/main.rs b/crates/shirabe/tests/dependency_resolver/main.rs index f6624a1..e9b2259 100644 --- a/crates/shirabe/tests/dependency_resolver/main.rs +++ b/crates/shirabe/tests/dependency_resolver/main.rs @@ -1,2 +1,6 @@ +#[path = "../common/test_case.rs"] +mod test_case; + +mod pool_test; mod request_test; mod rule_set_iterator_test; |
