From 7cabf7cc1b5714391131605dc84cbcee1982ffa0 Mon Sep 17 00:00:00 2001 From: Abhinav Gupta Date: Wed, 3 May 2017 14:52:54 -0700 Subject: [PATCH] coverage: Don't consider vendored library Our coverage script should not count the vendored mapstructure library when calculating total coverage. --- scripts/cover.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/cover.sh b/scripts/cover.sh index da52de7..6184381 100755 --- a/scripts/cover.sh +++ b/scripts/cover.sh @@ -37,4 +37,6 @@ for pkg in "$@"; do -v "$pkg" done -gocovmerge "$COVER"/*.out > cover.out +gocovmerge "$COVER"/*.out \ + | grep -v /internal/mapstructure \ + > cover.out