1
0
mirror of https://github.com/golang/go synced 2024-11-25 21:37: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 testing: use QueryPerformanceCounter on Windows 2024-04-26 22:55:25 +00:00
flag_test.go
fuzz.go testing: use QueryPerformanceCounter on Windows 2024-04-26 22:55:25 +00:00
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 Revert "testing: simplify concurrency and cleanup logic" 2023-11-27 16:49:24 +00:00
run_example_wasm.go
run_example.go
sub_test.go testing: add regression tests for reentrant calls to T.Run 2023-12-01 21:27:08 +00:00
testing_other.go testing: use time.Since in highPrecisionTime 2024-04-27 19:42:36 +00:00
testing_test.go runtime: properly frame panic values in tracebacks 2024-05-08 19:10:41 +00:00
testing_windows_test.go testing: use QueryPerformanceCounter on Windows 2024-04-26 22:55:25 +00:00
testing_windows.go testing: use QueryPerformanceCounter on Windows 2024-04-26 22:55:25 +00:00
testing.go all: change from sort functions to slices functions where feasible 2024-05-23 01:00:11 +00:00