2015-05-10 21:04:02 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
TARGETFILE="$1"
|
|
|
|
|
|
|
|
go list ./... | while read pkg; do
|
|
|
|
go test -covermode=count -coverprofile=$(base64 <<< $pkg).cov $pkg
|
|
|
|
done
|
|
|
|
|
|
|
|
echo "mode: count" > $TARGETFILE
|
2015-05-09 20:40:10 +00:00
|
|
|
tail -q -n +2 *.cov */*.cov */*/*.cov >> $TARGETFILE
|