go/src/testing
Jorropo 865cf5c5f6 testing: improve the documentation around b.N
Fixes #67137

- Make it clear the benchmark function is called multiple times.
- Demonstrate range over int.

Change-Id: I7e993d938b0351012cdd4aed8528951e0ad406ae
Reviewed-on: https://go-review.googlesource.com/c/go/+/582835
Auto-Submit: Alan Donovan <adonovan@google.com>
Reviewed-by: Alan Donovan <adonovan@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Damien Neil <dneil@google.com>
2024-05-02 18:41:57 +00:00
..
fstest testing/fstest: return structured errors in TestFS 2024-04-05 17:45:39 +00:00
internal/testdeps
iotest
quick
slogtest
allocs.go
allocs_test.go
benchmark.go testing: use QueryPerformanceCounter on Windows 2024-04-26 22:55:25 +00:00
benchmark_test.go
cover.go
example.go
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 testing: use subprocesses in TestTBHelper and TestTBHelperParallel 2023-11-21 17:24:47 +00:00
helperfuncs_test.go testing: use subprocesses in TestTBHelper and TestTBHelperParallel 2023-11-21 17:24:47 +00:00
match.go
match_test.go
newcover.go
panic_test.go Revert "testing: simplify concurrency and cleanup logic" 2023-11-27 16:49:24 +00:00
run_example.go
run_example_wasm.go
sub_test.go testing: add regression tests for reentrant calls to T.Run 2023-12-01 21:27:08 +00:00
testing.go testing: improve the documentation around b.N 2024-05-02 18:41:57 +00:00
testing_other.go testing: use time.Since in highPrecisionTime 2024-04-27 19:42:36 +00:00
testing_test.go Revert "testing: add TB.SetGOMAXPROCS function" 2024-03-22 13:07:36 +00:00
testing_windows.go testing: use QueryPerformanceCounter on Windows 2024-04-26 22:55:25 +00:00
testing_windows_test.go testing: use QueryPerformanceCounter on Windows 2024-04-26 22:55:25 +00:00