aboutsummaryrefslogtreecommitdiff
path: root/src/testing/benchmark.go
diff options
context:
space:
mode:
authorSean Liao <sean@liao.dev>2025-04-29 16:54:06 +0100
committerGopher Robot <gobot@golang.org>2025-04-30 08:21:07 -0700
commit8270b858ee8744e5b7584b49ae6ed93aa975c8bc (patch)
treeb93512ebbd0c93cdfedc993676273ca7cea0a1bc /src/testing/benchmark.go
parent1e756dc5f73dc19eb1cbf038807d18ef1cc54ebc (diff)
downloadgo-8270b858ee8744e5b7584b49ae6ed93aa975c8bc.tar.xz
testing: use more doc links
Change-Id: Ide372735165b7510fd8d7588451a37fa743e59c1 Reviewed-on: https://go-review.googlesource.com/c/go/+/668915 LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Commit-Queue: Alan Donovan <adonovan@google.com> Reviewed-by: Alan Donovan <adonovan@google.com> Auto-Submit: Alan Donovan <adonovan@google.com> Reviewed-by: Carlos Amedee <carlos@golang.org>
Diffstat (limited to 'src/testing/benchmark.go')
-rw-r--r--src/testing/benchmark.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/testing/benchmark.go b/src/testing/benchmark.go
index 43c7dc18f4..1a27aa23fc 100644
--- a/src/testing/benchmark.go
+++ b/src/testing/benchmark.go
@@ -82,9 +82,9 @@ type InternalBenchmark struct {
// timing and control the number of iterations.
//
// A benchmark ends when its Benchmark function returns or calls any of the methods
-// FailNow, Fatal, Fatalf, SkipNow, Skip, or Skipf. Those methods must be called
-// only from the goroutine running the Benchmark function.
-// The other reporting methods, such as the variations of Log and Error,
+// [B.FailNow], [B.Fatal], [B.Fatalf], [B.SkipNow], [B.Skip], or [B.Skipf].
+// Those methods must be called only from the goroutine running the Benchmark function.
+// The other reporting methods, such as the variations of [B.Log] and [B.Error],
// may be called simultaneously from multiple goroutines.
//
// Like in tests, benchmark logs are accumulated during execution