https://github.com/tendermint/tendermint
Raw File
Tip revision: 43746b379b73e541459f5d7f5be28c7c853b38be authored by William Banfield on 21 June 2022, 16:40:14 UTC
p2p: remove unused error from TryDialNext
Tip revision: 43746b3
test_cover.sh
#! /bin/bash

PKGS=$(go list github.com/tendermint/tendermint/...)

set -e

echo "mode: atomic" > coverage.txt
for pkg in ${PKGS[@]}; do
	go test -timeout 5m -race -coverprofile=profile.out "$pkg"
	if [ -f profile.out ]; then
		tail -n +2 profile.out >> coverage.txt;
		rm profile.out
	fi
done
back to top