]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/go: update new test for removal of nocoverageredesign
authorIan Lance Taylor <iant@golang.org>
Mon, 3 Feb 2025 21:45:27 +0000 (13:45 -0800)
committerGopher Robot <gobot@golang.org>
Mon, 3 Feb 2025 21:59:54 +0000 (13:59 -0800)
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>

src/cmd/go/testdata/script/cover_coverprofile_nocoverpkg.txt

index 85b3136bf994f6084139bc46012bf25db07b8077..f077734045c9c7f71b4740cf463e69775ad6d292 100644 (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