Repository navigation
test: raise backend coverage to 88.5%, floor 87 - #677
Merged
Merged
Conversation
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…ervices Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…bove Ratchet COVERAGE_MIN and codecov targets from 84 to 85 (local full-layer measurement about 87%, CI reads about 1 point lower). Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…apper Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…y and Slack/Discord mention builders
…kinds and CLI results Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…bove Measured full-layer coverage is 87.5%; the floor is ratcheted from 85 to 87 (ci.yml x2, scripts/coverage.sh x2, codecov.yml x2). 90% is not reachable without mocking live-network or Docker code (RDP/VNC, passkey, SAML, email sender, Slack/Discord socket modes, cmd mains). The remaining gap is a long tail of small error branches (auth, pkg/cli, jobtypes, checks, db/postgres). Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
… and plugin-finger startup Co-Authored-By: Claude Opus 5.5 <[email protected]>
…enticator Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ed no longer panics DispatchEvent built its Handler without cfg, and handleLinkShared reads cfg.BaseURLHost(), so every link_shared delivery (the bot requests links:read) dereferenced a nil config. Also covers member_joined_channel auto-configuration, Socket Mode event kinds, users.lookupByEmail and the incident auto-publish job. Co-Authored-By: Claude Opus 5.5 <[email protected]>
… counters Co-Authored-By: Claude Opus 5.5 <[email protected]>
…formatters Co-Authored-By: Claude Opus 5.5 <[email protected]>
…without credentials Co-Authored-By: Claude Opus 5.5 <[email protected]>
A misspelled or missing column fails the UPDATE even when no row matches, so each Update* method is called once with every value field set and once with every set-to-NULL switch taken. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…uery failing Adds testsupport.SweepFresh, the FaultHook sweep for operations that skip themselves once their data exists, so each replay gets a fresh database. Co-Authored-By: Claude Opus 5.5 <[email protected]>
… a fake server Co-Authored-By: Claude Opus 5.5 <[email protected]>
…edirect Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
isExcludedDir checks every path component and "tmp" is excluded, so t.TempDir() under Linux's /tmp made addWatches skip the whole root and the debounce loop drop every event. macOS temp dirs live under /var/folders, which is why the tests passed locally. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #677 +/- ##
==========================================
+ Coverage 88.16% 89.70% +1.53%
==========================================
Files 1289 1291 +2
Lines 131553 131644 +91
==========================================
+ Hits 115982 118088 +2106
+ Misses 15562 13547 -2015
Partials 9 9
🚀 New features to boost your workflow:
|
fclairamb
enabled auto-merge (squash)
October 25, 2026 16:10
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
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.
Raises backend test coverage (spec
2026-10-23-03-coverage-90). Moved here from #672, where it did not belong.What changed
*_cover_test.gofiles: pkg/cli, auth (passkey, OAuth), discord, slack, mcp, jobtypes, models, checkerdef, cmd/devloop, db contract (update_every_field).testsupport/errmap.goandtestsupport/fault.go(SweepFresh) to drive error paths.scripts/coverage.sh,codecov.yml). Local measure: 88.5%, CI reads about 1 point lower.wiki/testing/test-layers.md,wiki/testing/coverage.md.slack/events.gobuilt itsHandlerwithoutcfg, solink_sharedpanicked on a nil config (TestLinkSharedUnfurlsOwnLinks).Open
The spec asked for 90%. It stopped at 88.5% after 3 attempts. The spec is still in
specs/todos/until that is decided.🤖 Generated with Claude Code