Go语言基础单元测试示例

这个要熟悉原理,要能写。。 但现在。。。。。 注意,没有main函数,以_test.go结尾,命令go test -v package main import ( "testing" "net/http" ) const checkMark = " OK! " const ballotX = " ERROR! " func TestDownload(t *testing.T) { u
相关文章
相关标签/搜索