Repository navigation
chore(sp): tidy cli#2184 follow-ups - #2188
Conversation
Drop the split account-id literal and unused Account field from the SP region test, rename TestExtractRDSFamily to TestExtractFamily with SP cases, reword the extractFamily comment, and drop the Region guard in stampSavingsPlanRegions (EffectiveRegion already returns a non-empty Region unchanged; deletion probe: full suite passes without it). Closes #2187 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Warning Review limit reached
This review includes 4 billable files and costs up to $1.00.
Reviews can continue after your included limit without a manual trigger. An admin must approve usage-based billing. Or wait 27 minutes for your next included review. View limit details
Comment |
|
Independent review (claude-opus-5-5) of 16c1593: APPROVE I checked each claim against the diff against base 68f6b77. The diff is 4 files, +8/-10, and contains nothing beyond the claims below.
Local verification at the head:
Non-blocking findings: none. CI on 16c1593 is green: all required checks pass, and gosec and Trivy are skipped. |
Closes #2187. Follow-ups from the cli#2184 review.
cmd/savings_plan_region_test.go: removes the split account literal ("1234" + "56789012") and theAccountfield it fed; nothing in those tests needs it.cmd/multi_service_csv_test.go:TestExtractRDSFamily->TestExtractFamily; adds SP cases (EC2 Instance SP familym5, Compute SP empty, typed-nil details empty).cmd/multi_service_csv.go:extractFamilycomment no longer says "family-NU" for every row.cmd/multi_service_helpers.go: drops&& recs[i].Region == ""instampSavingsPlanRegions. Deletion probe:EffectiveRegionreturns a non-emptyrec.Regionunchanged, so the guard was redundant; fullgo test ./...passes without it.Verified locally:
go vet ./... && go test ./...(1364 passed) andbash scripts/test-git-secrets-allowlist.sh(44 PASS, 0 FAIL). Independent of cli#2185 and cli#2186.🤖 Generated with Claude Code