Created
July 3, 2022 05:31
-
-
Save elchead/9e6de16d8ca20f304ae43a89ea3bfdc0 to your computer and use it in GitHub Desktop.
Go test coverage
This file contains hidden or 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
| # go get golang.org/x/tools/cmd/cover | |
| # in Go 1.19 go build -cover ? | |
| go test -coverprofile=coverage.out ./... ; go tool cover -html=coverage.out |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment