分析覆盖率
go test -race -covermode atomic -coverprofile=covprofile ./...
转换成html
go tool cover -html=covprofile -o coverage.html
关于golang测试用例覆盖率
最新推荐文章于 2024-07-25 20:26:28 发布
分析覆盖率
go test -race -covermode atomic -coverprofile=covprofile ./...
转换成html
go tool cover -html=covprofile -o coverage.html