app: factor inspect lib_exports' import grouping into a pure function and pin it with unit tests #470
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 LakshanSivakumar/Native-Victory-macOS. Originally posted by AnastasisKon on 2026-11-27T21:39:30Z.
What
apps/victory/src/inspect.rs'slib_exports(behindvictory inspect --lib) groups a library file's imports by DLL inline while printing, so the grouping rules — DLL names lowercased, DLLs in name order, each DLL's exports in file order, ordinals rendered as#N— are untested.What this changes
One change: extract the grouping into a pure
imports_by_dll(&[LibImport]) -> BTreeMap<String, Vec<String>>and pin it with unit tests (lowercased keys, BTreeMap order, file order kept within a DLL, ordinal rendering, empty input). No behavior change to the printed output.How it was tested
cargo test -p victory(new tests inapps/victory/src/inspect.rs)cargo clippy --workspace --all-targets --locked --target x86_64-pc-windows-gnullvm -- -D warningscargo xtask policyImported from LakshanSivakumar/Native-Victory-macOS. Originally posted by AnastasisKon on 2026-11-27T21:39:35Z.
/claim
Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by github-actions[bot] on 2026-11-27T21:39:46Z.
Claimed by @AnastasisKon. Open a draft pull request with
Refs #470in its description within 24 hours, or the claim expires.Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by AnastasisKon on 2026-11-27T21:42:58Z.
Draft PR up: #471 (branch vibe/inspect-lib-exports-tests-1705ac), CI running; local gates pass (cargo test -p victory, windows clippy, xtask policy).
Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by AnastasisKon on 2026-11-28T12:37:17Z.
/release - done: PR #471 factors inspect's lib_exports import grouping into a pure function and pins it with unit tests. Carried in my fork's
main(69146296).Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by AnastasisKon on 2026-11-28T12:42:26Z.
/release - done: PR #471 factors inspect's lib_exports import grouping into a pure function and pins it with unit tests. Carried in my fork's
main(69146296).Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by github-actions[bot] on 2026-11-28T12:42:36Z.
Released. This issue is free to claim.