diff --git a/scripts/coverage.sh b/scripts/coverage.sh index f9e72dc..3e7bacf 100755 --- a/scripts/coverage.sh +++ b/scripts/coverage.sh @@ -27,6 +27,7 @@ sed -i '/docs.go/d' coverage.out sed -i '/main.go/d' coverage.out sed -i '/libs/d' coverage.out sed -i '/cmd\/migration/d' coverage.out +sed -i '/test\/mocks/d' coverage.out COVERAGE=$(go tool cover -func=coverage.out | grep total: | awk '{print $3}') COVERAGE=${COVERAGE%\%}