feat: move MockLogger into a logtest sub-package (#5)
logging / test (push) Has been skipped
logging / vulnerabilities (push) Has been skipped
Release / release (push) Successful in 56s
logging / coverage-baseline (push) Successful in 2m49s
pre-commit / pre-commit (push) Successful in 5m29s

This commit was merged in pull request #5.
This commit is contained in:
2026-06-19 16:43:26 +00:00
parent e067a72887
commit a705fc33c4
4 changed files with 23 additions and 16 deletions
+11
View File
@@ -0,0 +1,11 @@
package logtest
import "testing"
func TestMockLogger(t *testing.T) {
m := NewMockLogger()
m.Logger().Info("hello", "k", "v")
m.Check(t, []string{`level=INFO msg=hello k=v`})
empty := NewMockLogger()
empty.Check(t, nil)
}