khenaidoo | ab1f7bd | 2019-11-14 14:00:27 -0500 | [diff] [blame] | 1 | #!/usr/bin/env bash |
2 | |||||
3 | set -e | ||||
4 | echo "" > coverage.txt | ||||
5 | |||||
6 | for d in $(go list github.com/modern-go/reflect2-tests/... | grep -v vendor); do | ||||
7 | go test -coverprofile=profile.out -coverpkg=github.com/modern-go/reflect2 $d | ||||
8 | if [ -f profile.out ]; then | ||||
9 | cat profile.out >> coverage.txt | ||||
10 | rm profile.out | ||||
11 | fi | ||||
12 | done |