Skip to content

Commit

Permalink
添加测试
Browse files Browse the repository at this point in the history
  • Loading branch information
zhuxiujia committed Jan 21, 2019
1 parent 22b0e72 commit 3d5127c
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions LogStandard_test.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
package GoMybatis

import (
"log"
"testing"
)

func TestLogStandard_Println(t *testing.T) {
var stand = LogStandard{}
//没有设置func,使用系统log打印
stand.Println([]byte("hello"))

//设置func,使用func打印
stand.PrintlnFunc = func(v []byte) {
log.Println(string(v), "println on PrintlnFunc()")
}

stand.Println([]byte("hello"))
}

0 comments on commit 3d5127c

Please sign in to comment.