This commit is contained in:
jiazhizhong
2022-03-10 17:09:03 +08:00
commit 1279635d7f
97 changed files with 10632 additions and 0 deletions

22
pkg/test/logger.go Normal file
View File

@@ -0,0 +1,22 @@
package test
type Logger interface {
Output(maxdepth int, s string) error
}
type tbLog interface {
Log(...interface{})
}
type testLogger struct {
tbLog
}
func (tl *testLogger) Output(maxdepth int, s string) error {
tl.Log(s)
return nil
}
func NewTestLogger(tbl tbLog) Logger {
return &testLogger{tbl}
}