aboutsummaryrefslogtreecommitdiffhomepage
path: root/crates/shirabe/tests/package/loader/array_loader_test.rs
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2026-06-25 13:43:49 +0900
committernsfisis <nsfisis@gmail.com>2026-06-25 23:47:47 +0900
commit4573629d9fc7321171cd8b134e68869950b02045 (patch)
tree1c1786537f71c6c61bca5fb0bba90fe1e722eac0 /crates/shirabe/tests/package/loader/array_loader_test.rs
parent8d6b521e0034d1bcba594921ebc4f74e87e5ef46 (diff)
downloadphp-shirabe-4573629d9fc7321171cd8b134e68869950b02045.tar.gz
php-shirabe-4573629d9fc7321171cd8b134e68869950b02045.tar.zst
php-shirabe-4573629d9fc7321171cd8b134e68869950b02045.zip
feat(semver): hand-port constraint AND-split to drop look-around regex
The PCRE delimiter `(?<!^|as|[=>< ,]) *(?<!-)[, ](?!-) *(?!,|as|$)` used to split AND-constraints relies on look-around, which the regex crate cannot compile (parse_constraints panicked). Reproduce its semantics in a hand-written `split_and_constraints` scanner shared by VersionParser and RootPackageLoader. Also model `method_exists` for the class-name form (shirabe runs no dumped Composer ClassLoader) and un-ignore the InstalledVersions tests, serialized via `#[serial]` since they share global static state. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Diffstat (limited to 'crates/shirabe/tests/package/loader/array_loader_test.rs')
0 files changed, 0 insertions, 0 deletions