aboutsummaryrefslogtreecommitdiff
path: root/src/testing
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2024-05-15 19:03:42 -0400
committerRuss Cox <rsc@golang.org>2024-05-22 09:58:07 +0000
commitcd41d7178587428f99330800ecb0cc1dd2608693 (patch)
tree15bb43e057d5fdf2963ede9b4c8b217b52fe7c19 /src/testing
parentdf4e49366c25118e20fac51f834d3cf4864b163b (diff)
downloadgo-cd41d7178587428f99330800ecb0cc1dd2608693.tar.xz
internal/coverage/cfile: remove //go:linkname into testing
This is just looking at a command-line flag. Look directly. For #67401. Change-Id: I7a1c3fc2d9cc85e5ffc5731444bf6db87abf6901 Reviewed-on: https://go-review.googlesource.com/c/go/+/585916 Reviewed-by: Than McIntosh <thanm@google.com> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Reviewed-by: Alan Donovan <adonovan@google.com> Reviewed-by: Cherry Mui <cherryyz@google.com>
Diffstat (limited to 'src/testing')
-rw-r--r--src/testing/newcover.go10
1 files changed, 0 insertions, 10 deletions
diff --git a/src/testing/newcover.go b/src/testing/newcover.go
index a7dbcfc65a..ad2f622640 100644
--- a/src/testing/newcover.go
+++ b/src/testing/newcover.go
@@ -46,16 +46,6 @@ func coverReport2() {
}
}
-// testGoCoverDir is used in runtime/coverage tests.
-//go:linkname testGoCoverDir
-
-// testGoCoverDir returns the value passed to the -test.gocoverdir
-// flag by the Go command, if goexperiment.CoverageRedesign is
-// in effect.
-func testGoCoverDir() string {
- return *gocoverdir
-}
-
// coverage2 returns a rough "coverage percentage so far"
// number to support the testing.Coverage() function.
func coverage2() float64 {