aboutsummaryrefslogtreecommitdiff
path: root/src/testing/testing.go
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@golang.org>2025-01-28 11:27:22 -0800
committerGopher Robot <gobot@golang.org>2025-02-03 12:10:28 -0800
commit41298239cf8b0de14fd3ac43e4af65fad6ab5cc4 (patch)
treefdd567699bf6d234cd7b4d90c88cf72147747106 /src/testing/testing.go
parent26c59d3153a7662875e1dd7c02c6ae36b9bc269b (diff)
downloadgo-41298239cf8b0de14fd3ac43e4af65fad6ab5cc4.tar.xz
all: remove coverageredesign experiment
The coverageredesign experiment was turned on by default by CL 436236 in September, 2022. We've documented it and people are using it. This CL removes the ability to turn off the experiment. This removes some old code that is no longer being executed. For #51430 Change-Id: I88d4998c8b5ea98eef8145d7ca6ebd96f64fbc2b Cq-Include-Trybots: luci.golang.try:gotip-linux-amd64-longtest,gotip-darwin-amd64-longtest,gotip-linux-arm64-longtest,gotip-windows-amd64-longtest Reviewed-on: https://go-review.googlesource.com/c/go/+/644997 LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Reviewed-by: Ian Lance Taylor <iant@google.com> Auto-Submit: Ian Lance Taylor <iant@google.com> Reviewed-by: Than McIntosh <thanm@golang.org> Reviewed-by: Cherry Mui <cherryyz@google.com> Commit-Queue: Ian Lance Taylor <iant@google.com>
Diffstat (limited to 'src/testing/testing.go')
-rw-r--r--src/testing/testing.go8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/testing/testing.go b/src/testing/testing.go
index 3833bfc84b..2bfa4b6db0 100644
--- a/src/testing/testing.go
+++ b/src/testing/testing.go
@@ -403,7 +403,6 @@ import (
"errors"
"flag"
"fmt"
- "internal/goexperiment"
"internal/race"
"io"
"math/rand"
@@ -700,10 +699,7 @@ func Testing() bool {
// values are "set", "count", or "atomic". The return value will be
// empty if test coverage is not enabled.
func CoverMode() string {
- if goexperiment.CoverageRedesign {
- return cover2.mode
- }
- return cover.Mode
+ return cover.mode
}
// Verbose reports whether the -test.v flag is set.
@@ -2021,7 +2017,7 @@ type testDeps interface {
// It is not meant to be called directly and is not subject to the Go 1 compatibility document.
// It may change signature from release to release.
func MainStart(deps testDeps, tests []InternalTest, benchmarks []InternalBenchmark, fuzzTargets []InternalFuzzTarget, examples []InternalExample) *M {
- registerCover2(deps.InitRuntimeCoverage())
+ registerCover(deps.InitRuntimeCoverage())
Init()
return &M{
deps: deps,