github.com/stellar/go-xdr@v0.0.0-20231122183749-b53fb00bcac2/gotest.sh (about)

     1  #!/bin/bash
     2  # The script does automatic checking on a Go package and its sub-packages, including:
     3  # 1. goimports     (https://golang.org/x/tools/cmd/goimports)
     4  # 2. golint        (https://github.com/golang/lint)
     5  # 3. go vet        (https://golang.org/cmd/vet)
     6  # 4. test coverage (https://blog.golang.org/cover)
     7  
     8  set -ex
     9  
    10  test -z "$(goimports -l -w .)"
    11  test -z "$(golint ./...     )"
    12  go vet ./...
    13  go test -covermode=atomic -race ./...