1
0
Fork 0
mirror of https://github.com/vbatts/go-mtree.git synced 2024-11-17 14:18:39 +00:00
go-mtree/vendor/github.com/mattn/go-isatty/go.test.sh
Vincent Batts f32ba81c5e
*: rework the test tools, so no dep is ignored
Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
2022-04-03 23:15:40 -04:00

12 lines
273 B
Bash

#!/usr/bin/env bash
set -e
echo "" > coverage.txt
for d in $(go list ./... | grep -v vendor); do
go test -race -coverprofile=profile.out -covermode=atomic "$d"
if [ -f profile.out ]; then
cat profile.out >> coverage.txt
rm profile.out
fi
done