Created
February 4, 2023 16:41
-
-
Save KunalSin9h/1e71579764c46c969305131bd60bd309 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Build in ways to check the code coverage in golang! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-cover
flagex.
ex.
GOCOVERDIR
env variable, point to coverage direx.
See the Code Coverage Result using html
go tool covdata textfmt -i=coverage -o profile.txt
go tool cover -html=profile.txt