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