Skip to content

Latest commit

 

History

History
9 lines (5 loc) · 440 Bytes

File metadata and controls

9 lines (5 loc) · 440 Bytes

testing

测试,要求以 *_test.go 新建文件,并在文件中以 TestXxx 命名函数。然后再通过 go test [flags] [packages] 执行函数。

  • 注意部分 *_test.go 文件中测试依赖于函数顺序,因此在 go test 时不能开并行测试,也不能调换测试函数在文件中出现的先后顺序。

etcd_test

注意此部分的 test 会调用 etcd.Clear,会将 etcd 中存储的数据清空