app: factor inspect lib_exports' import grouping into a pure function and pin it with unit tests #474
Labels
No labels
accessibility
bug
claimed
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
tester report
urgent
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/LakshanSivakumar--Native-Victory-macOS#474
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?
@AnastasisKon on GitHub · 2026-11-27 21:39 UTC · original
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 policy@AnastasisKon on GitHub · 2026-11-27 21:39 UTC · original
/claim
@github-actions[bot] on GitHub · 2026-11-27 21:39 UTC · original
Claimed by @AnastasisKon. Open a draft pull request with
Refs #470in its description within 24 hours, or the claim expires.@AnastasisKon on GitHub · 2026-11-27 21:42 UTC · original
Draft PR up: #475 (branch vibe/inspect-lib-exports-tests-1705ac), CI running; local gates pass (cargo test -p victory, windows clippy, xtask policy).
github-bot referenced this issue2026-11-27 22:11:31 +00:00
@AnastasisKon on GitHub · 2026-11-28 12:37 UTC · original
/release - done: PR #475 factors inspect's lib_exports import grouping into a pure function and pins it with unit tests. Carried in my fork's
main(69146296).@AnastasisKon on GitHub · 2026-11-28 12:42 UTC · original
/release - done: PR #475 factors inspect's lib_exports import grouping into a pure function and pins it with unit tests. Carried in my fork's
main(69146296).@github-actions[bot] on GitHub · 2026-11-28 12:42 UTC · original
Released. This issue is free to claim.