diff options
| author | nsfisis <nsfisis@gmail.com> | 2026-06-21 03:16:34 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2026-06-21 03:17:45 +0900 |
| commit | 903d37a254f931e79ecded26f30a3b517c6d27da (patch) | |
| tree | 4cd32e55466dd463e10aef35e8fad239dd08938a /crates/shirabe/tests/platform/version_test.rs | |
| parent | d9eb06c836e1faa759225a9653181b1dcd38a52d (diff) | |
| download | php-shirabe-903d37a254f931e79ecded26f30a3b517c6d27da.tar.gz php-shirabe-903d37a254f931e79ecded26f30a3b517c6d27da.tar.zst php-shirabe-903d37a254f931e79ecded26f30a3b517c6d27da.zip | |
test(repository): port InstalledRepositoryTest
testAddRepository maps the expected LogicException to #[should_panic]
since InstalledRepository::add_repository guards with assert!.
testFindPackagesWithReplacersAndProviders is #[ignore] because that
assert omits InstalledRepositoryInterface, so adding an
InstalledArrayRepository panics before the lookup runs.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Diffstat (limited to 'crates/shirabe/tests/platform/version_test.rs')
| -rw-r--r-- | crates/shirabe/tests/platform/version_test.rs | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/crates/shirabe/tests/platform/version_test.rs b/crates/shirabe/tests/platform/version_test.rs index aada5f9..c2511d5 100644 --- a/crates/shirabe/tests/platform/version_test.rs +++ b/crates/shirabe/tests/platform/version_test.rs @@ -35,7 +35,12 @@ fn provide_openssl_versions() -> Vec<(&'static str, &'static str, bool, Option<& ("1.2.3zh-fips", "1.2.3.34", true, None), ("1.2.3zh-fips-dev", "1.2.3.34-dev", true, None), // Additional cases - ("1.2.3zh-fips-rc3", "1.2.3.34-rc3", true, Some("1.2.3.34-RC3")), + ( + "1.2.3zh-fips-rc3", + "1.2.3.34-rc3", + true, + Some("1.2.3.34-RC3"), + ), ("1.2.3zh-alpha10-fips", "1.2.3.34-alpha10", true, None), ("1.1.1l (Schannel)", "1.1.1.12", false, None), // Check that alphabetical patch levels overflow correctly |
