Files
external-snapshotter/vendor/github.com/json-iterator/go/test.sh
Patrick Ohly 211f83fe15 replace "dep" with "go mod"
A simple "go mod init && go mod tidy && go mod vendor" was enough and
mostly seems to have picked the same revisions of the dependencies as
before. Notable exceptions are klog and gogo/protobuf.
2019-10-28 12:46:41 +01:00

13 lines
285 B
Bash

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