摘要: 引用 import "testing" 一些原则 文件名必须是 _test.go 结尾的,这样在执行 go test 的时候才会执行到相应的代码 必须 import testing 这个包 所有的测试用例函数必须是 Test 开头 测试用例会按照源代码中写的顺序依次执行 测试函数 TestXxx() 阅读全文
posted @ 2019-02-25 00:25 wangha 阅读(3533) 评论(0) 推荐(0) 编辑