Skip to content

test: drop the unreachable error branch in buildinfo JSON - #21

Merged
boeboe merged 1 commit into
mainfrom
test/buildinfo-coverage
Nov 7, 2026
Merged

boeboe merged 1 commit into
mainfrom
test/buildinfo-coverage

Conversation

@boeboe

@boeboe boeboe commented Nov 7, 2026

Copy link
Copy Markdown
Contributor

Follow-up to the version alignment PR. Codecov flagged 2 uncovered patch lines in internal/buildinfo/buildinfo.go: the panic after json.Marshal in Info.JSON, which cannot run (Info holds only strings and a slice of string structs). The branch is removed; output is unchanged. make check passes locally.

🤖 Generated with Claude Code

json.Marshal cannot fail for Info, so the panic branch was dead code that
Codecov reported as an uncovered patch line.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@codecov

codecov Bot commented Nov 7, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@boeboe
boeboe merged commit 5bcdc08 into main Nov 7, 2026
25 checks passed
@boeboe
boeboe deleted the test/buildinfo-coverage branch November 7, 2026 22:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant