Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cmd/cover: increase coverage precision to at-least 2 decimal places #38175

Closed
staticmukesh opened this issue Mar 31, 2020 · 1 comment
Closed
Labels
compiler/runtime Issues related to the Go compiler and/or runtime. NeedsDecision Feedback is required from experts, contributors, and/or the community before a change can be made.
Milestone

Comments

@staticmukesh
Copy link
Contributor

What version of Go are you using (go version)?

$ go version
go version go1.14.1 darwin/amd64

Does this issue reproduce with the latest release?

yes

What operating system and processor architecture are you using (go env)?

macOS Mojave darwin/amd64

What did you do?

$ go test -v -coverprofile=coverfunc.out ./...
$ go tool cover -func=coverfunc.out
hello.go:84:         Handle                          92.1%
total:              (statements)                     92.1%

What did you expect to see?

I want to see total coverage to be 92.12% instead of 92.1%. We want to track coverage to have higher precision, atleast 2 decimal places.

@gopherbot
Copy link

Change https://golang.org/cl/226538 mentions this issue: cover: change coverage precision to .2f

@ALTree ALTree added the NeedsDecision Feedback is required from experts, contributors, and/or the community before a change can be made. label Mar 31, 2020
@ALTree ALTree changed the title cover: increase coverage precision to at-least 2 decimal places cmd/cover: increase coverage precision to at-least 2 decimal places Mar 31, 2020
@gopherbot gopherbot added the compiler/runtime Issues related to the Go compiler and/or runtime. label Jul 13, 2022
@seankhliao seankhliao added this to the Unplanned milestone Aug 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
compiler/runtime Issues related to the Go compiler and/or runtime. NeedsDecision Feedback is required from experts, contributors, and/or the community before a change can be made.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants