From e7c7f3b33712573affdcc7a107218e7926b9a05b Mon Sep 17 00:00:00 2001 From: Tao Wen Date: Wed, 14 Feb 2018 14:06:32 +0800 Subject: [PATCH] fix coverage --- test.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test.sh b/test.sh index 466f114..f4e7c0b 100755 --- a/test.sh +++ b/test.sh @@ -4,7 +4,7 @@ set -e echo "" > coverage.txt for d in $(go list ./... | grep -v vendor); do - go test -coverprofile=profile.out $d + 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