vendor/github.com/mattn/go-isatty/go.test.sh
author Mikael Berthe <mikael@lilotux.net>
Tue, 23 Aug 2022 22:33:28 +0200
changeset 259 db4911b0c721
parent 251 1c52a0eeb952
permissions -rw-r--r--
Version 2.3.2

#!/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