覆盖率

覆盖率#

显示覆盖率:

$ go test ./... -cover

测试覆盖报告:

$ go test -coverprofile=c.out ./iter/...
$ go tool cover -html=c.out