1
0
Fork 0
mirror of https://github.com/restic/restic.git synced 2024-12-25 09:18:55 +00:00
restic/coverage_all.sh

11 lines
210 B
Bash
Raw Normal View History

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