Files
cloudpods/vendor/github.com/json-iterator/go/test.sh
Yousong Zhou 3966355d5e vendor: using go modules
This change was made with the following commands

        go mod init
        go mod tidy
        go mod vendor -v

Revision of github.com/op/go-logging changed because
github.com/anacrolix/torrent requires the current version in its go.mod

        # github.com/op/go-logging
        yunion.io/x/onecloud/cmd/torrent
        github.com/anacrolix/torrent
        github.com/elgatito/upnp
        github.com/op/go-logging

Content of google.golang.org/grpc changed and it's indeed the case after
checking with the upstream repo.  It's very likely that the old content
is wrong.

Some packages like golang.org/x/sys/unix are added because they are
indeeded needed

Some packages are removed as a whole because they are needed anymore
2019-06-24 07:28:24 +00: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