go test 单元函数测试

首先安装单元测试包,go get github.com/smartystreets/goconvey/conveygit 源程序以下,定义了加减乘除4个函数github package test222 import ( "errors" ) func Add(a, b int) int { return a + b } func Subtract(a, b int) int
相关文章
相关标签/搜索