diff options
author | Unknwon <u@gogs.io> | 2018-06-09 17:34:38 +0800 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2018-06-09 17:34:38 +0800 |
commit | 5e158b51db1022318e95d1998d2fc9fc50f061f1 (patch) | |
tree | 817eea5ca0944c4d07bbf22a8b5e20a0b163aaa6 /vendor/github.com/modern-go/concurrent/test.sh | |
parent | fbecc18e2e4d4eb863a990a57218305f190ae6db (diff) |
vendor: add new dependencies
Diffstat (limited to 'vendor/github.com/modern-go/concurrent/test.sh')
-rwxr-xr-x | vendor/github.com/modern-go/concurrent/test.sh | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/vendor/github.com/modern-go/concurrent/test.sh b/vendor/github.com/modern-go/concurrent/test.sh new file mode 100755 index 00000000..d1e6b2ec --- /dev/null +++ b/vendor/github.com/modern-go/concurrent/test.sh @@ -0,0 +1,12 @@ +#!/usr/bin/env bash + +set -e +echo "" > coverage.txt + +for d in $(go list ./... | grep -v vendor); do + go test -coverprofile=profile.out -coverpkg=github.com/modern-go/concurrent $d + if [ -f profile.out ]; then + cat profile.out >> coverage.txt + rm profile.out + fi +done |