golang 计算测试覆盖率

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

go test -c -covermode=count -coverpkg ./...

你可能感兴趣的:(golang 计算测试覆盖率)