Codebase list golang-github-weppos-publicsuffix-go / d14285e3-62c9-4b8b-a7d2-5688f49529b9/upstream test.sh
d14285e3-62c9-4b8b-a7d2-5688f49529b9/upstream

Tree @d14285e3-62c9-4b8b-a7d2-5688f49529b9/upstream (Download .tar.gz)

test.sh @d14285e3-62c9-4b8b-a7d2-5688f49529b9/upstreamraw · history · blame

#!/usr/bin/env bash

set -e
echo "" > coverage.txt

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