View code coverage in HTML format
suggest changeRun go test
as normal, yet with the coverprofile
flag. Then use go tool
to view the results as HTML.
go test -coverprofile=c.out
go tool cover -html=c.out
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents