feat: move MockLogger into a logtest sub-package #5
Reference in New Issue
Block a user
Delete Branch "move-mocklogger-to-logtest"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
019ecc67 — logtest sub-package
NewMockLogger/MockLoggermove from the mainloggingpackage to a new same-modulelogging/logtestsub-package (mirroring the existingmiddleware/convention), so the productionloggingpackage's import graph is testify-free (go list -deps .→ 0).testifystays in the module'sgo.modbecauselogtestand the library's own_test.gofiles use it — consumers only compile it if they importlogtest.Breaking import change
logging.NewMockLogger→logtest.NewMockLogger. All call sites in the ~12 backend services are in_test.gofiles; they'll be swept (import swap + go.mod bump to this release) in follow-up PRs.feat:(no!) so the shared Release.yml cuts a minor v0.2.0 (v0.x breaking → minor), not v1.0.0.Review
Go Backend Expert: clean, no Critical/High/Medium. Verified verbatim move, all packages test green under -race, root production graph testify-free, gofumpt/vet clean, go.mod unchanged (testify retained as a test dep). Same-module sub-package confirmed correct over a nested module.
🤖 Generated with Claude Code
Coverage Report
Total coverage: 93%