feat: move MockLogger into a logtest sub-package (#5)
This commit was merged in pull request #5.
This commit is contained in:
@@ -23,11 +23,3 @@ func TestContextLogger(t *testing.T) {
|
||||
ctx := ContextWithLogger(context.Background(), custom)
|
||||
assert.Same(t, custom, LoggerFromContext(ctx))
|
||||
}
|
||||
|
||||
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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user