Newer
Older
minecraft-ui / vendor / go.uber.org / zap / scripts / cover.sh
Simon Lindgren on 10 Mar 2018 227 bytes first commit
#!/usr/bin/env bash

set -e
echo "" > cover.out

for d in $(go list $@); do
    go test -race -coverprofile=profile.out $d
    if [ -f profile.out ]; then
        cat profile.out >> cover.out
        rm profile.out
    fi
done