Skip to content

Move the logger mock to a loggertest package - #56

Merged
firecow merged 2 commits into
mainfrom
move-logger-mock-to-loggertest
Oct 21, 2026
Merged

firecow merged 2 commits into
mainfrom
move-logger-mock-to-loggertest

Conversation

@firecow

@firecow firecow commented Oct 21, 2026 •

Copy link
Copy Markdown
Member

logger/mock.go was a non-test file importing testify/mock, so every binary using the logger package linked testify, objx and yaml; the mock now lives in logger/loggertest, which only test files import, and coverage is measured across packages so its callers count. Tests using logger.Mock or logger.NewMock switch to loggertest.Mock and loggertest.NewMock.

@firecow firecow self-assigned this Oct 21, 2026
@sonarqubecloud

Copy link
Copy Markdown

@firecow
firecow merged commit d497fed into main Oct 21, 2026
9 checks passed
@firecow
firecow deleted the move-logger-mock-to-loggertest branch October 21, 2026 08:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants