有setup, teardown的方法.
用go test里面一个函数, 自己建立和清理状态, 很麻烦啊.
我想要标准一点的做法.
testify suite 包就有啊
https://github.com/onsi/ginkgo
BeforeEach and AfterEach blocks for setup and teardown.
http://labix.org/gocheck
有setup, teardown的方法.
用go test里面一个函数, 自己建立和清理状态, 很麻烦啊.
我想要标准一点的做法.
testify suite 包就有啊
https://github.com/onsi/ginkgo
BeforeEach and AfterEach blocks for setup and teardown.
http://labix.org/gocheck