github.com/shiroyuki/docker@v1.9.0/hack/make/cover (about) 1 #!/bin/bash 2 set -e 3 4 bundle_cover() { 5 coverprofiles=( "$DEST/../"*"/coverprofiles/"* ) 6 for p in "${coverprofiles[@]}"; do 7 echo 8 ( 9 set -x 10 go tool cover -func="$p" 11 ) 12 done 13 } 14 15 if [ "$HAVE_GO_TEST_COVER" ]; then 16 bundle_cover 2>&1 | tee "$DEST/report.log" 17 else 18 echo >&2 'warning: the current version of go does not support -cover' 19 echo >&2 ' skipping test coverage report' 20 fi