标签:str sse add result hub 示例 assert path http
(1.)项目地址
https://github.com/smartystreets/goconvery
(2.)安装
go get -u github.com/smartystreets/goconvery/convery
(3.)启动UI界面
$GOPATH/bin/goconvery
(4.)使用示例
import(
"testing"
. "github.com/smartystreets/goconvery/convery"
)
func TestAdd(t *testing.T) {
Convery("Params",t,func(){
a := 2
b := 4
Convery("add two number",func(){
c := a+b
Convery ("result assert",func(){
So (c%2,ShouldEqual,0)
})
})
})
}
标签:str sse add result hub 示例 assert path http
原文地址:https://www.cnblogs.com/tomtellyou/p/14672010.html