zfs-localpv/vendor/github.com/json-iterator/go/test.sh
Pawan 8a4ed4e7b8 feat(zfs-localpv): vendor packages for zfs-localpv
Signed-off-by: Pawan <pawan@mayadata.io>
2019-09-18 08:44:08 +05:30

12 lines
285 B
Bash
Executable file

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