golang 计算测试覆盖率

2020-07-14  本文已影响0人  金果儿

进入要计算覆盖率的package目录内

go test -c -covermode=count -coverpkg ./...
上一篇 下一篇

猜你喜欢

热点阅读