Codebase list golang-github-mattn-go-runewidth / ddea9d65-557c-40da-aae2-791c19be175d/v0.0.12 go.test.sh
ddea9d65-557c-40da-aae2-791c19be175d/v0.0.12

Tree @ddea9d65-557c-40da-aae2-791c19be175d/v0.0.12 (Download .tar.gz)

go.test.sh @ddea9d65-557c-40da-aae2-791c19be175d/v0.0.12raw · history · blame

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