app: pin inspect's dll_flags rendering with unit tests #506

Open
opened 2026-11-27 22:22:59 +00:00 by github-bot · 4 comments
Owner

@⁠AnastasisKon on GitHub · 2026-11-27 22:22 UTC · original

What

apps/victory/src/inspect.rs's dll_flags(v: u16) renders a PE's DllCharacteristics as the parenthesised names victory inspect prints. It is pure and untested; a flags-table edit could silently drop or reorder a name.

What this changes

Test-only: unit tests pin that no flags render empty, each known flag renders its name, several flags render in the table's fixed order (not bit order), and unknown bits are ignored.

How it was tested

  • cargo test -p victory (new tests in apps/victory/src/inspect.rs)
  • cargo clippy --workspace --all-targets --locked --target x86_64-pc-windows-gnullvm -- -D warnings
  • cargo xtask policy
  • Game run: not needed (test-only).
**@⁠AnastasisKon** on GitHub · 2026-11-27 22:22 UTC · [original](https://github.com/LakshanSivakumar/Native-Victory-macOS/issues/502) ## What `apps/victory/src/inspect.rs`'s `dll_flags(v: u16)` renders a PE's `DllCharacteristics` as the parenthesised names `victory inspect` prints. It is pure and untested; a flags-table edit could silently drop or reorder a name. ## What this changes Test-only: unit tests pin that no flags render empty, each known flag renders its name, several flags render in the table's fixed order (not bit order), and unknown bits are ignored. ## How it was tested - `cargo test -p victory` (new tests in `apps/victory/src/inspect.rs`) - `cargo clippy --workspace --all-targets --locked --target x86_64-pc-windows-gnullvm -- -D warnings` - `cargo xtask policy` - Game run: not needed (test-only).
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-27 22:22:59 +00:00
Author
Owner

@⁠AnastasisKon on GitHub · 2026-11-27 22:22 UTC · original

/claim

**@⁠AnastasisKon** on GitHub · 2026-11-27 22:22 UTC · [original](https://github.com/LakshanSivakumar/Native-Victory-macOS/issues/502#issuecomment-7229273818) /claim
Author
Owner

@⁠github-actions[bot] on GitHub · 2026-11-27 22:22 UTC · original

Claimed by @⁠AnastasisKon. Open a draft pull request with Refs #502 in its description within 24 hours, or the claim expires.

**@⁠github-actions[bot]** on GitHub · 2026-11-27 22:22 UTC · [original](https://github.com/LakshanSivakumar/Native-Victory-macOS/issues/502#issuecomment-7229276482) Claimed by @⁠AnastasisKon. Open a draft pull request with `Refs #502` in its description within 24 hours, or the claim expires.
github-bot 2026-11-28 12:55:41 +00:00
  • reopened this issue
  • removed the
    claimed
    label
Author
Owner

@⁠AnastasisKon on GitHub · 2026-11-28 12:47 UTC · original

/release - done: PR #507 is merged upstream (2026-11-28T01:57Z). Same reason as #508: the work is on upstream main, the claim is just stale.

**@⁠AnastasisKon** on GitHub · 2026-11-28 12:47 UTC · [original](https://github.com/LakshanSivakumar/Native-Victory-macOS/issues/502#issuecomment-7239470645) /release - done: PR #507 is merged upstream (2026-11-28T01:57Z). Same reason as #508: the work is on upstream `main`, the claim is just stale.
Author
Owner

@⁠github-actions[bot] on GitHub · 2026-11-28 12:47 UTC · original

Released. This issue is free to claim.

**@⁠github-actions[bot]** on GitHub · 2026-11-28 12:47 UTC · [original](https://github.com/LakshanSivakumar/Native-Victory-macOS/issues/502#issuecomment-7239472230) Released. This issue is free to claim.
This discussion has been locked. Commenting is limited to contributors.
No description provided.