//生成覆盖率文件
go test -cover -coverprofile=result
//使用html格式打开
go tool -cover -html=result
Golang单元测试-覆盖率
最新推荐文章于 2024-05-26 15:02:26 发布
//生成覆盖率文件
go test -cover -coverprofile=result
//使用html格式打开
go tool -cover -html=result