mikrotik-exporter/vendor/go.uber.org/zap/scripts/cover.sh
2017-08-30 22:05:59 -04:00

13 lines
227 B
Bash
Executable File

#!/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