Skip to content

Commit

Permalink
code coverage test
Browse files Browse the repository at this point in the history
  • Loading branch information
stremovsky committed Aug 18, 2024
1 parent f9667a7 commit 383286f
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions go-code-coverage.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/bin/bash

cd src
go test -coverprofile=/tmp/coverage.out
echo
echo "Test summary"
go tool cover -func=/tmp/coverage.out
echo
go tool cover -html=/tmp/coverage.out

0 comments on commit 383286f

Please sign in to comment.