]> Cypherpunks repositories - gostls13.git/commit
testing: improve the documentation around b.N
authorJorropo <jorropo.pgm@gmail.com>
Thu, 2 May 2024 16:38:35 +0000 (18:38 +0200)
committerGopher Robot <gobot@golang.org>
Thu, 2 May 2024 18:41:57 +0000 (18:41 +0000)
commit865cf5c5f626d2546b3023217f0a0fb2e5ad9304
tree9cc43cd56dc66481bfdec7fc3a4c89a716e7f0db
parent660a071906a3f010a947457521b7671041b5f737
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>
src/testing/testing.go