Add unit tests for console.rs #631
No reviewers
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!631
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/631/head"
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?
@shayanCSknu on GitHub · 2026-11-24 05:57 UTC · original
shayanCSknu:patch-1→main· +27 −0 · 1 files · 1 commits · closed without mergingcrates/victory-gpu/src/console.rshad no tests. This adds three:title_memory()matches the published figures (Series X: 10 GiB + 3.5 GiB; Series S: 7,776 MiB)name()returns the right console namesset()/current()are not tested on purpose: they change a process-wide setting that other tests in the crate read, and tests run in parallel.Checked locally:
cargo test -p victory-gpu console::passes,cargo clippyis clean,cargo xtask policypasses.Written with help from Claude (AI).
@geiyiliyabumo on GitHub · 2026-11-24 12:23 UTC · original
Independent verification & code review on Windows 11 x64 MSVC (merged onto
mainffe310e):Checks Run
cargo xtask policy: PASS (154 files ok)cargo clippy -p victory-gpu --all-targets --locked -- -D warnings(default +--features diagnostics): PASS (0 warnings)cargo test -p victory-gpu --locked -- console::: PASS (3/3tests)Review
Looks clean and ready to merge — all three unit tests verify
Console::default(),title_memory(), andname()accurately without mutating the process-wideset()/current()state, keeping parallel crate tests isolated.AI-assisted; synthetic tests only, no game files.
@Marvisak on GitHub · 2026-11-25 00:26 UTC · original
Automated triage for the maintainers. Closing because it does not change behaviour the project needs (formatting, guards for cases that cannot occur, or notes and translations that cannot be kept current).
Three tests that restate console.rs's constants (default, memory split, names) back to themselves; no behaviour is covered and the Series S figure is marked as a shortcut to be changed.
If this is mistaken, reply here with what was missed (or push a change and say so) and it will be looked at again. Thank you for the contribution.
Pull request closed