ERROR:go run: cannot run *_test.go files
比如执行:go run aaa_test.go报如上错误。
*_test.go是golang特有的约定,为测试文件。
该测试功能还是很强大的,对于调试、测试都非常有帮助。
可以深入了解一下 go test相关。
比如执行:go run aaa_test.go报如上错误。
*_test.go是golang特有的约定,为测试文件。
该测试功能还是很强大的,对于调试、测试都非常有帮助。
可以深入了解一下 go test相关。
本文标题:报错:go run: cannot run *_test.go
本文链接:https://www.haomeiwen.com/subject/hlwvnqtx.html
网友评论