You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
chore: remove dead Analyze/PruneTree APIs, migrate tests to live paths (#22)
Two internal APIs were unused in production and exercised only by their own
tests:
- changes.Analyze (non-paged) + its private helpers sortRiskEntries /
computeRiskScores / computeRiskCandidates. Production uses AnalyzePage. The
8 test call-sites now go through a small analyzeAll helper backed by
AnalyzePage (full window), so the risk-score / namespace / ordering coverage
moves onto the live path instead of a dead parallel implementation.
- ragindex.PruneTree + pruneNode + their TestPruneTree_* tests — never used in
production.
The pagination-ordering test was rewritten to pin concrete expected node IDs
(descending risk) rather than compare against AnalyzePage itself, keeping it a
real, non-tautological check (per review). ragindex.LoadIndex is kept — it
verifies live wikiindex builder output in tests.
No behavior change; -150 lines. Independently reviewed.
Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
0 commit comments