]> Cypherpunks repositories - gostls13.git/commit
testing: implement -cpu and -count for fuzz tests
authorRuss Cox <rsc@golang.org>
Mon, 17 Oct 2022 18:29:37 +0000 (14:29 -0400)
committerGopher Robot <gobot@golang.org>
Wed, 2 Nov 2022 13:14:08 +0000 (13:14 +0000)
commit30b240b102652a7cf6b7df0748b4bc69f496e0bc
treedd3f5d3a465918a0b9b9c7cee247c3299ca763cc
parent81efd7b347dd6d7f12fd49c6eee0274005734c71
testing: implement -cpu and -count for fuzz tests

Fuzz tests are meant to be run just like ordinary tests,
so copy the same loop cpu and count loops used in testing.go
(and benchmark.go) into fuzz.go.

Change-Id: Ic585df8ccc577869c877b1055e0493803dbeb828
Reviewed-on: https://go-review.googlesource.com/c/go/+/443377
Auto-Submit: Russ Cox <rsc@golang.org>
Reviewed-by: Bryan Mills <bcmills@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: Russ Cox <rsc@golang.org>
src/testing/fuzz.go