💻 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