且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

Go cli 找不到我的测试

更新时间:2023-11-19 23:13:46

测试函数必须以 Test 开头.尝试将您的函数重命名为 TestTest.那应该解决它.完整信息在这里:https://golang.org/pkg/testing

Test functions must begin with Test. Try renaming your function to TestTest. That should fix it. Full info here: https://golang.org/pkg/testing