HLE: add synthetic unit tests for storage.rs and host.rs #942
Labels
No labels
accessibility
area: build
area: formats
area: gpu
area: loader
area: runtime
area: shader
bug
documentation
duplicate
enhancement
good first issue
gpu: amd
gpu: intel
gpu: nvidia
help wanted
host: wine
invalid
out of scope
question
request
run report
triage: confirmed
triage: has patch
triage: merge candidate
triage: needs info
triage: needs rebase
triage: needs work
triage: proposed close
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/Marvisak--VIctory#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?
@geiyiliyabumo on GitHub · 2026-11-24 14:24 UTC · original
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.
@Marvisak on GitHub · 2026-11-25 06:51 UTC · original · edited 2026-11-25 09:56 UTC
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
@StExpeditus on GitHub · 2026-11-25 09:09 UTC · original
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.@StExpeditus on GitHub · 2026-11-25 09:10 UTC · original
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.