http urls monitor.

coverage.sh 335B

1234567891011121314
  1. #!/usr/bin/env bash
  2. set -e
  3. echo "mode: count" > coverage.out
  4. for d in $(go list ./... | grep -E 'gin$|binding$|render$' | grep -v 'examples'); do
  5. go test -v -covermode=count -coverprofile=profile.out $d
  6. if [ -f profile.out ]; then
  7. cat profile.out | grep -v "mode:" >> coverage.out
  8. rm profile.out
  9. fi
  10. done