http urls monitor.

test.sh 285B

12345678910111213
  1. #!/usr/bin/env bash
  2. set -e
  3. echo "" > coverage.txt
  4. for d in $(go list ./... | grep -v vendor); do
  5. go test -coverprofile=profile.out -coverpkg=github.com/json-iterator/go $d
  6. if [ -f profile.out ]; then
  7. cat profile.out >> coverage.txt
  8. rm profile.out
  9. fi
  10. done