Skip to content

Commit f67f3e4

Browse files
committed
Exclude some packages in coverage
1 parent aefc880 commit f67f3e4

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

cover.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,10 @@ set -e
99

1010
# create coverage output
1111
echo 'mode: atomic' > $OUT
12-
for PKG in $(go list ./...|grep -v -E 'vendor'); do
12+
for PKG in $(go list ./...| grep -v -E 'vendor'| grep -v -E 'cmd/olric-load'|
13+
grep -v -E 'cmd/olric-stats'| grep -v -E 'cmd/olricd'|grep -v -E 'hasher'|
14+
grep -v -E 'internal/bufpool'|grep -v -E 'cmd/discovery'|grep -v -E 'internal/flog'|
15+
grep -v -E 'serializer'|grep -v -E 'stats'); do
1316
go test -covermode=atomic -coverprofile=$TMP $PKG
1417
tail -n +2 $TMP >> $OUT
1518
done

0 commit comments

Comments
 (0)