]> Cypherpunks repositories - gostls13.git/commit
cmd/go,testdeps: move import of internal/coverage/cfile to testmain
authorThan McIntosh <thanm@google.com>
Thu, 23 May 2024 13:07:31 +0000 (13:07 +0000)
committerThan McIntosh <thanm@google.com>
Thu, 23 May 2024 14:01:23 +0000 (14:01 +0000)
commit9b5d27faf93d326bb634946b720900e5c5da515c
tree2fe48f98354fe0661bfc9adf83b1b4b0604ab6ef
parentf109bdd1278d59fc6c506d1db50c52f0e969348e
cmd/go,testdeps: move import of internal/coverage/cfile to testmain

Instead of having testing/internal/testdeps import the
internal/coverage/cfile package directly, have the code in testmain
pass in pointers to cfile functions during setup in the case that
we're running a "go test -cover" binary. This reduces the size of
regular non-coverage test binaries back to what they were before CL
585820.

Updates #67401.
Fixes #67588.

Change-Id: Iaf1a613bc7d3c9df9943189065d0161ca9120d34
Reviewed-on: https://go-review.googlesource.com/c/go/+/587795
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Russ Cox <rsc@golang.org>
src/cmd/go/internal/load/test.go
src/testing/internal/testdeps/deps.go