Skip to content

test: cover the version and completion paths Codecov flagged - #23

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

boeboe merged 1 commit into
mainfrom
test/patch-coverage

Conversation

@boeboe

@boeboe boeboe commented Nov 7, 2026

Copy link
Copy Markdown
Contributor

Follow-up to #22. Codecov flagged 8 uncovered patch lines:

  • completion.go (3 missing, 3 partial): the walker's early return for a flag that already has a completion, and the two early returns of completePointNames (no --model flag; a --model value that is not a model ID).
  • internal/buildinfo/buildinfo.go (2 missing): Set.

How they are covered now:

  • TestRegisterKeepsOwnCompletion registers a completion on a command's flag, runs registerCompletions and checks the command's own completion is kept.
  • TestCompletePointNamesWithoutUsableModel calls completePointNames on a command without --model and on one whose --model is not a number; both offer nothing and no file names.
  • TestSetReplacesLinkTimeValues calls Set and checks Get reports the values.

Tests only, no production code changed; no RELEASE.md entry. make check and make e2e pass locally.

🤖 Generated with Claude Code

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 42c85b8 into main Nov 7, 2026
23 checks passed
@boeboe
boeboe deleted the test/patch-coverage branch November 7, 2026 22:49
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