Golang单元测试-覆盖率
//生成覆盖率文件
go test -cover -coverprofile=result
//使用html格式打开
go tool -cover -html=result
本文来自博客园,作者:弩哥++,转载请注明原文链接:https://www.cnblogs.com/bangbangzoutianya/p/17330681.html
//生成覆盖率文件
go test -cover -coverprofile=result
//使用html格式打开
go tool -cover -html=result
本文来自博客园,作者:弩哥++,转载请注明原文链接:https://www.cnblogs.com/bangbangzoutianya/p/17330681.html