github.com/zxysilent/utils@v0.3.1/cover.sh (about) 1 #!/bin/bash 2 3 # 覆盖率测试 4 5 go test -v -coverprofile cover.out . 6 go tool cover -html=cover.out -o cover.html 7 8 echo "cover end"