1. 支持跳转
如果单测函数上方不显示run test | debug test,需要安装Code Debugger(因为以前的go Test Explorer不再被维护了)
 
2. 单测
- 指定单个用例测试
go test -v run TestXXX
- dlv 调试
 需要安装匹配的go版本和delve版本(如go1.18版本、delve1.20版本)
go install github.com/go-delve/delve/cmd/dlv@v1.20.2
dlv test
- 生成并查询覆盖率
go test -v -cover ./{dir}/... -coverprofile={cov-out-file-path}
go tool cover --html={cov-out-file-path} -o={html-path}
















![[超级详细系列]ubuntu22.04配置深度学习环境(显卡驱动+CUDA+cuDNN+Pytorch)--[3]安装cuDNN与Pytorch](https://img-blog.csdnimg.cn/direct/c3648c98351b49e99d2c2c1f470293e8.png)


