cmd/cover: inconsistent treatment of comments #22545
Labels
compiler/runtime
Issues related to the Go compiler and/or runtime.
help wanted
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
Run coverage on the following program using these commands:
This is the rendered HTML output:
Observe that the first comment is grey, not green, even though it was covered. Is this a simple bookkeeping error, or is there a design reason why we shouldn't consider the entire span from
func f() {
up toif false
as covered, and render it green?(This is Google internal issue 68650370.)
The text was updated successfully, but these errors were encountered: