dendrite/vendor/src/go.uber.org/zap/scripts/cover.sh
2017-09-28 15:03:21 +01:00

12 lines
227 B
Bash

#!/usr/bin/env bash
set -e
echo "" > cover.out
for d in $(go list $@); do
go test -race -coverprofile=profile.out $d
if [ -f profile.out ]; then
cat profile.out >> cover.out
rm profile.out
fi
done