Skip to content

Commit 8f9c5e8

Browse files
authored
apply suggestions to coverage PR (#2853)
1 parent be74282 commit 8f9c5e8

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

scripts/report_coverage.sh

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,7 @@ go tool covdata merge -i=$PWD/coverage/e2e,$PWD/coverage/ut -o $PWD/coverage/mer
1212

1313
go tool covdata textfmt -i $PWD/coverage/merged/ -o profile.txt
1414

15-
cat profile.txt\
16-
| grep -v github.com/ava-labs/avalanche-cli/internal/mocks\
17-
| grep -v github.com/ava-labs/avalanche-cli/sdk/mocks > profile.tmp
15+
cat profile.txt | grep -v mocks > profile.tmp
1816
mv profile.tmp profile.txt
1917

2018
go tool cover -func profile.txt > coverage.txt
@@ -64,3 +62,4 @@ echo Total functions: $total_functions
6462
echo Covered functions: $covered_functions
6563
echo Coverage: $coverage
6664

65+
go tool cover -html profile.txt -o coverage.html

0 commit comments

Comments
 (0)