File: go.test.sh

package info (click to toggle)
golang-github-mattn-go-isatty 0.0.20-1~bpo12%2B1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm-backports
  • size: 128 kB
  • sloc: sh: 9; makefile: 2
file content (12 lines) | stat: -rwxr-xr-x 273 bytes parent folder | download | duplicates (17)
1
2
3
4
5
6
7
8
9
10
11
12
#!/usr/bin/env bash

set -e
echo "" > coverage.txt

for d in $(go list ./... | grep -v vendor); do
    go test -race -coverprofile=profile.out -covermode=atomic "$d"
    if [ -f profile.out ]; then
        cat profile.out >> coverage.txt
        rm profile.out
    fi
done