单元测试
文件名 以 _test.go 结尾,方法以 TestxxFun 开头
func TestSplit(t *testing.T) {
t.Log("test fun")
if ok := reflect.DeepEqual("a","b");ok {
fmt.Println("== == ==")
}
}
go test -run mul
go test -v
go test -cover //覆盖率 coverprofile -c.out
go tool cover -html = c.out
894

被折叠的 条评论
为什么被折叠?



