github.com/mdaxf/iac@v0.0.0-20240519030858-58a061660378/vendor_skip/github.com/modern-go/concurrent/test.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      go test -coverprofile=profile.out -coverpkg=github.com/modern-go/concurrent $d
     8      if [ -f profile.out ]; then
     9          cat profile.out >> coverage.txt
    10          rm profile.out
    11      fi
    12  done