by Mithaldu · 11y ago · 0 comments
Otherwise, nice to see someone take quality serious. :)
# Generate coverage data
go test -coverprofile=coverage.out
# View coverage by function
go tool cover -func="coverage.out"
# View coverage line by line
go tool cover -html="coverage.out"