go/src/testing
Ian Lance Taylor 7f38067acb testing: add Testing function
The Testing function reports whether the program is a test created
by "go test".

Fixes #52600

Change-Id: Ie0fff7c7dfdfdf997c18b4b6112632600b327cc8
Reviewed-on: https://go-review.googlesource.com/c/go/+/475496
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Bryan Mills <bcmills@google.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
Auto-Submit: Ian Lance Taylor <iant@google.com>
2023-03-13 21:58:46 +00:00
..
fstest all: remove trailing blank doc comment lines 2022-04-01 18:18:07 +00:00
internal/testdeps all: gofmt -w -r 'interface{} -> any' src 2021-12-13 18:45:54 +00:00
iotest testing: use strings.Builder 2022-09-07 07:03:10 +00:00
quick all: gofmt main repo 2022-04-11 16:34:30 +00:00
allocs.go
allocs_test.go all: gofmt -w -r 'interface{} -> any' src 2021-12-13 18:45:54 +00:00
benchmark.go testing: Document RunParallel ns/op behavior 2022-11-07 10:44:33 +00:00
benchmark_test.go testing: add an example showcasing B.RunParallel with B.ReportMetric 2022-10-07 17:49:17 +00:00
cover.go cmd/go: support new hybrid coverage instrumentation 2022-09-28 11:50:58 +00:00
example.go testing: fix many test2json inaccuracies 2022-10-26 19:50:36 +00:00
export_test.go
flag_test.go testing: add Get method for -test.v option 2022-11-03 23:43:04 +00:00
fuzz.go all: fix typos in go file comments 2023-01-09 15:34:31 +00:00
helper_test.go cmd/go, testing: add go test -skip flag 2022-09-16 14:48:54 +00:00
helperfuncs_test.go cmd/compile: mark closures made for generic function expressions as wrappers 2022-05-26 21:06:31 +00:00
match.go cmd/go, testing: add go test -skip flag 2022-09-16 14:48:54 +00:00
match_test.go cmd/go, testing: add go test -skip flag 2022-09-16 14:48:54 +00:00
newcover.go runtime/coverage: improve unit tests 2022-09-29 14:13:26 +00:00
panic_test.go testing: in TestRacyOutput, ensure that the Run calls complete before cleanup 2022-11-16 17:22:19 +00:00
run_example.go testing: fix many test2json inaccuracies 2022-10-26 19:50:36 +00:00
run_example_js.go testing: fix many test2json inaccuracies 2022-10-26 19:50:36 +00:00
sub_test.go testing: in TestRacyOutput, ensure that the Run calls complete before cleanup 2022-11-16 17:22:19 +00:00
testing.go testing: add Testing function 2023-03-13 21:58:46 +00:00
testing_other.go testing: include ERROR_SHARING_VIOLATION in Windows cleanup retries 2022-03-03 02:39:01 +00:00
testing_test.go testing: add Testing function 2023-03-13 21:58:46 +00:00
testing_windows.go testing: include ERROR_SHARING_VIOLATION in Windows cleanup retries 2022-03-03 02:39:01 +00:00