cmd/go: update new test for removal of nocoverageredesign

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>
This commit is contained in:
Ian Lance Taylor 2025-02-03 13:45:27 -08:00 committed by Gopher Robot
parent 64eed8ef1d
commit d96fd2e758

View file

@ -13,13 +13,7 @@ go test -vet=off -count=1 -coverprofile=cov.p ./...
# 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