test: cover gaps in atomic write, auth, watch, sapling, parsers#440
Merged
tomasz-tomczyk merged 1 commit intomainfrom May 2, 2026
Merged
test: cover gaps in atomic write, auth, watch, sapling, parsers#440tomasz-tomczyk merged 1 commit intomainfrom
tomasz-tomczyk merged 1 commit intomainfrom
Conversation
Add targeted tests for previously-uncovered code paths identified via coverage audit: - atomic_write: failure cleanup leaves no .tmp files - server.clearAuthState: token state cleared on auth failure - sapling.buildDiffArgs: pure diff-arg construction - focus_cli.commentScopeOverrideFromFlag: scope override parser - main.parseFetchOutputDir: fetch output dir parser - comment_cli.processBulkLineComment: branch coverage 61% -> 100% - watch.RefreshDiffs/RefreshFileList/handleRoundCompleteGit: concurrent refresh under -race with fake VCS Project coverage 67.1% -> 68.9%. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #440 +/- ##
==========================================
+ Coverage 67.36% 68.06% +0.70%
==========================================
Files 35 35
Lines 9839 9839
==========================================
+ Hits 6628 6697 +69
+ Misses 2694 2630 -64
+ Partials 517 512 -5
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Review
Test plan
mise exec -- go test -race -count=1 ./...— passesmise exec -- go vet ./...— clean🤖 Generated with Claude Code