Skip to content

test(extras): cover RECEIVE_URL branch flagged by #9 patch-coverage gate#15

Merged
mastermanas805 merged 1 commit into
masterfrom
fix/extras-receive-url-coverage
May 23, 2026
Merged

test(extras): cover RECEIVE_URL branch flagged by #9 patch-coverage gate#15
mastermanas805 merged 1 commit into
masterfrom
fix/extras-receive-url-coverage

Conversation

@mastermanas805
Copy link
Copy Markdown
Member

Follow-up to #9 (golangci-lint Tier-2 gate, merged).

The lint fix in #9 added _, _ = to the fmt.Fprintf(w, "RECEIVE_URL...") line in runResourceDetail (cmd/extras.go:195). The repo's 100%-patch-coverage gate then flagged that exact line as uncovered: the human-output success test sent a payload with no receive_url, and the JSON test returns early via the encoder before reaching it.

This adds receive_url to the human-output success fixture so the branch executes. Test-only; no production code change.

  • go build/vet/test ./... -short green
  • golangci-lint run 0 issues
  • line 194-196 block now shows count 1 in the coverage profile

🤖 Generated with Claude Code

The golangci-lint patch (#9) touched cmd/extras.go:195 (the
`detail.ReceiveURL != ""` Fprintf branch), which the 100%-patch-coverage
gate then flagged as uncovered — the human-output success test sent a
payload without `receive_url`, and the JSON test takes the early
encode-return path before reaching that line.

Add `receive_url` to the human-output success fixture so the branch
executes. No production code change.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@mastermanas805 mastermanas805 merged commit f396d0e into master May 23, 2026
8 of 9 checks passed
@mastermanas805 mastermanas805 deleted the fix/extras-receive-url-coverage branch May 23, 2026 04:05
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