github.com/hxx258456/ccgo@v0.0.5-0.20230213014102-48b35f46f66f/go-grpc-middleware/scripts/test_all.sh (about)

     1  #!/usr/bin/env bash
     2  
     3  set -e
     4  echo "" > coverage.txt
     5  
     6  for d in $(go list ./... | grep -v vendor); do
     7      echo -e "TESTS FOR: for \033[0;35m${d}\033[0m"
     8      go test -race -v -coverprofile=profile.coverage.out -covermode=atomic $d
     9      if [ -f profile.coverage.out ]; then
    10          cat profile.coverage.out >> coverage.txt
    11          rm profile.coverage.out
    12      fi
    13      echo ""
    14  done