lvyuping 发表于 2017-6-8 17:26:07

windows下执行go单元测试命令错误

执行go test -v是正常的
执行go tool cover -func=cover.out,提示cover: can't find "main.go": cannot find package "_\\D_
of:
      C:\Go\src\_\D_\test-go\src (from $GOROOT)
      D:\test-go\src\_\D_\test-go\src (from $GOPATH)

请问怎么解决?

jingzizx 发表于 2017-6-8 23:17:14

没做过,帮顶

梦想家 发表于 2017-6-9 14:43:14

:L帮顶吧
页: [1]
查看完整版本: windows下执行go单元测试命令错误