blob: 012162b077c97e96bcb25c4be1a0716a29a35fd6 [file] [log] [blame]
Naveen Sampath04696f72022-06-13 15:19:14 +05301#!/usr/bin/env bash
2
3set -e
4echo "" > coverage.txt
5
6for d in $(go list ./... | grep -v vendor); do
7 go test -race -coverprofile=profile.out -covermode=atomic "$d"
8 if [ -f profile.out ]; then
9 cat profile.out >> coverage.txt
10 rm profile.out
11 fi
12done