blob: 3d2b9768ce6113106bb4d18ce6179a9ce4a79c80 [file] [log] [blame]
Zack Williamse940c7a2019-08-21 14:25:39 -07001#!/usr/bin/env bash
2
3set -e
4echo "" > coverage.txt
5
6for d in $(go list github.com/modern-go/reflect2-tests/... | grep -v vendor); do
7 go test -coverprofile=profile.out -coverpkg=github.com/modern-go/reflect2 $d
8 if [ -f profile.out ]; then
9 cat profile.out >> coverage.txt
10 rm profile.out
11 fi
12done