Golang测试学习:理念和工具

It(“returns correct abs value for -1”, func {go test的 -cover模式会生成代码覆盖率配置文件,可以使用go tool cover -html = coverage.out将转为html格式。

网站地图