by anonfunction · 11y ago · 0 comments
# 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"No comments yet.