The new test was committed after the removal was tested.
For #51430
For #65570
For #70244
Change-Id: I5f94c36a68ea96ba76d018dc06a5a233ad684aa5
Cq-Include-Trybots: luci.golang.try:gotip-linux-amd64-longtest
Reviewed-on: https://go-review.googlesource.com/c/go/+/646355
Reviewed-by: Ian Lance Taylor <iant@google.com>
TryBot-Bypass: Ian Lance Taylor <iant@google.com>
Reviewed-by: Robert Griesemer <gri@google.com>
Auto-Submit: Ian Lance Taylor <iant@google.com>
# Generate a function profile.
go tool cover -func=cov.p
-# Prior to GOEXPERIMENT=coverageredesign we should see no output at all for
-# pkg1 (since it has no tests).
-[!GOEXPERIMENT:coverageredesign] ! stdout 'pkg1'
-
-# With GOEXPERIMENT=coverageredesign enabled we should see zero percent
-# coverage for pkg1's DoSomething, not 100% (as in the bug).
-[GOEXPERIMENT:coverageredesign] stdout 'cov/pkg1/file.go:3:\s+DoSomething\s+0.0%'
+stdout 'cov/pkg1/file.go:3:\s+DoSomething\s+0.0%'
-- go.mod --
module cov