diff options
author | Unknwon <u@gogs.io> | 2018-06-09 17:20:38 +0800 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2018-06-09 17:20:38 +0800 |
commit | 694208865b103e6eb96f8e7e1b394037de9a89ba (patch) | |
tree | 737f55cc961965cba088d78559bbf5707630dce6 /vendor/github.com/json-iterator/go/test.sh | |
parent | a75c4352453f3dfde38f2cd4930a020427951539 (diff) |
vendor: add github.com/json-iterator/go
Diffstat (limited to 'vendor/github.com/json-iterator/go/test.sh')
-rwxr-xr-x | vendor/github.com/json-iterator/go/test.sh | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/vendor/github.com/json-iterator/go/test.sh b/vendor/github.com/json-iterator/go/test.sh new file mode 100755 index 00000000..f4e7c0b2 --- /dev/null +++ b/vendor/github.com/json-iterator/go/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/json-iterator/go $d + if [ -f profile.out ]; then + cat profile.out >> coverage.txt + rm profile.out + fi +done |