1
0
mirror of https://github.com/golang/go synced 2024-11-15 09:20:58 -07:00
go/src/testing
Than McIntosh 9b5d27faf9 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>
2024-05-23 14:01:23 +00:00
..
fstest all: change from sort functions to slices functions where feasible 2024-05-23 01:00:11 +00:00
internal/testdeps cmd/go,testdeps: move import of internal/coverage/cfile to testmain 2024-05-23 14:01:23 +00:00
iotest
quick
slogtest
allocs_test.go
allocs.go
benchmark_test.go all: change from sort functions to slices functions where feasible 2024-05-23 01:00:11 +00:00
benchmark.go all: change from sort functions to slices functions where feasible 2024-05-23 01:00:11 +00:00
cover.go
example.go all: change from sort functions to slices functions where feasible 2024-05-23 01:00:11 +00:00
export_test.go
flag_test.go
fuzz.go
helper_test.go
helperfuncs_test.go
match_test.go
match.go
newcover.go internal/coverage/cfile: remove //go:linkname into testing 2024-05-22 09:58:07 +00:00
panic_test.go
run_example_wasm.go
run_example.go
sub_test.go
testing_other.go
testing_test.go
testing_windows_test.go
testing_windows.go
testing.go all: change from sort functions to slices functions where feasible 2024-05-23 01:00:11 +00:00