feat: move MockLogger into a logtest sub-package (#5)
This commit was merged in pull request #5.
This commit is contained in:
@@ -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)
|
||||
}
|
||||
Reference in New Issue
Block a user