skip to content
Alvin Lucillo

Go test cover

/ 1 min read

💻 Tech

After seeing the code coverage with go test -cover, you might want to know what parts of the code are not covered. This is done by generating the coverage profile: go test -coverprofile c.out — generate coverage profile go tool cover -html=c.out — view the coverage profile in html mode