HLE: add synthetic unit tests for storage.rs and host.rs #942
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from Marvisak/VIctory. Originally posted by geiyiliyabumo on 2026-11-24T14:24:23Z.
Summary
Adds 10 deterministic synthetic unit tests for
crates/victory-hle/src/modules/storage.rs(1 -> 7 tests, plusDefaultderive onSpaceInfo) andcrates/victory-hle/src/host.rs(0 -> 3 tests).Because external PR creation is currently restricted (
collaborators_only), the CI-green branch is ready on my fork for cherry-pick / review:geiyiliyabumo/VIctory@test/hle-storage-and-hostgeiyiliyabumo/VIctory@62abb60(based onmainffe310e)Tests Added (Synthetic Only)
crates/victory-hle/src/modules/storage.rs(7 tests total): drive-root serving,IID/IID_2026query, path calls before/after storage setup, drive root + NUL buffer handling, recursiveused_bytes, quota/free space reporting, and async space-prompt bounds.crates/victory-hle/src/host.rs(3 tests total): case-insensitive DLL name/prefix matching, default allow-list policy, and allowed DLL host function resolution.Verification (Windows 11 x64 MSVC)
rustfmt --edition 2024 --check: PASScargo xtask policy: PASS (154 files ok)cargo clippy -p victory-hle --all-targets --locked -- -D warnings(default +--features diagnostics): PASS (0 warnings)cargo test -p victory-hle --locked -- storage::(7/7modules::storage::testsPASS) &-- host::(3/3host::testsPASS)AI-assisted; synthetic tests only, no game files.
Imported from Marvisak/VIctory. Originally posted by Marvisak on 2026-11-25T06:51:39Z.
Automated triage for the maintainers.
This requests test coverage and comes with a branch. On current
main,crates/victory-hle/src/modules/storage.rsandcrates/victory-hle/src/host.rsstill have one unit test each, so these tests would add coverage.Correction to the earlier version of this comment: open PR #1193 carries this branch. The comments above report that it passes as-is (105
victory-hletests) but sits on the oldffe310ebase and is far behindmain. It needs a rebase before review. The maintainers decide from there.Generated by Claude Code
Imported from Marvisak/VIctory. Originally posted by StExpeditus on 2026-11-25T09:09:49Z.
Validated the fork branch on Windows 11 Pro 26200 (Intel Core i5-14600K, Rust 1.98.1 MSVC), commit
62abb60:cargo test -p victory-hle --locked --no-fail-fast-> 105 passed, 0 failed, 0 ignored. Synthetic tests only, no game files.Imported from Marvisak/VIctory. Originally posted by StExpeditus on 2026-11-25T09:10:09Z.
Addendum: this branch's base is well behind current main - the
victory-hledelta against main is 28 files, 563 insertions, 4,300 deletions (e.g.tests/fidelityfx.rsmoved since). The 105 passed above are the branch as-is on its old base; it needs a rebase before a clean cherry-pick. The other three validated issues from this author (#1029, #1028, #945) apply with only small delta.