Add tests for summarizeFixes ordering and truncation
Context
While tweaking text output, I realized summarizeFixes has no direct tests. I’m worried someone will reorder or truncate differently without noticing.
Problem
The ordering (removed, changed signatures, interface changes) and the max cap are untested, so regressions would slip through.
Expected behavior
summarizeFixes should keep the current ordering and respect the max limit regardless of input mix.
Scope / non-goals
- Only add tests (or minimal refactor for testability). No functional changes intended.
Acceptance criteria
Hints
internal/report/text.go — summarizeFixes; add cases in text_test.go.
Add tests for
summarizeFixesordering and truncationContext
While tweaking text output, I realized
summarizeFixeshas no direct tests. I’m worried someone will reorder or truncate differently without noticing.Problem
The ordering (removed, changed signatures, interface changes) and the
maxcap are untested, so regressions would slip through.Expected behavior
summarizeFixesshould keep the current ordering and respect themaxlimit regardless of input mix.Scope / non-goals
Acceptance criteria
maxwithout altering item text.Hints
internal/report/text.go—summarizeFixes; add cases intext_test.go.