Files

12 lines
228 B
Go
Raw Permalink Normal View History

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)
}