以 HTML 格式檢視程式碼覆蓋率
正常執行 go test,然後使用 coverprofile 標誌。然後使用 go tool 以 HTML 格式檢視結果。
go test -coverprofile=c.out
go tool cover -html=c.out
正常執行 go test,然後使用 coverprofile 標誌。然後使用 go tool 以 HTML 格式檢視結果。
go test -coverprofile=c.out
go tool cover -html=c.out