1#!/usr/bin/env bash 2 3set -e 4echo "" > cover.out 5 6for d in $(go list $@); do 7 go test -race -coverprofile=profile.out $d 8 if [ -f profile.out ]; then 9 cat profile.out >> cover.out 10 rm profile.out 11 fi 12done 13