aboutsummaryrefslogtreecommitdiff
path: root/src/testing
diff options
context:
space:
mode:
authorKatie Hockman <katie@golang.org>2021-12-10 14:03:20 -0500
committerKatie Hockman <katie@golang.org>2021-12-13 18:55:52 +0000
commitf909f813a0c12fde089a6c5e18fdcb9e71759cf7 (patch)
tree43b2b316670fe04f10ce8be56f562e08467b1405 /src/testing
parent2580d0e08d5e9f979b943758d3c49877fb2324cb (diff)
downloadgo-f909f813a0c12fde089a6c5e18fdcb9e71759cf7.tar.xz
testing: update docs for fuzzcachedir
Although most of the code seems to be already implemented to support this for general use, it didn't make it in for Go 1.18, so for now we should at least document that it's only for use by the go command. Change-Id: Id559e72d590aedeaaa50bcf880bca1a385d858dd Reviewed-on: https://go-review.googlesource.com/c/go/+/370954 Trust: Katie Hockman <katie@golang.org> Run-TryBot: Katie Hockman <katie@golang.org> TryBot-Result: Gopher Robot <gobot@golang.org> Reviewed-by: Bryan Mills <bcmills@google.com>
Diffstat (limited to 'src/testing')
-rw-r--r--src/testing/fuzz.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/testing/fuzz.go b/src/testing/fuzz.go
index 18f2b2f319..4a5def1ab4 100644
--- a/src/testing/fuzz.go
+++ b/src/testing/fuzz.go
@@ -22,8 +22,9 @@ func initFuzzFlags() {
matchFuzz = flag.String("test.fuzz", "", "run the fuzz test matching `regexp`")
flag.Var(&fuzzDuration, "test.fuzztime", "time to spend fuzzing; default is to run indefinitely")
flag.Var(&minimizeDuration, "test.fuzzminimizetime", "time to spend minimizing a value after finding a failing input")
- fuzzCacheDir = flag.String("test.fuzzcachedir", "", "directory where interesting fuzzing inputs are stored")
- isFuzzWorker = flag.Bool("test.fuzzworker", false, "coordinate with the parent process to fuzz random values")
+
+ fuzzCacheDir = flag.String("test.fuzzcachedir", "", "directory where interesting fuzzing inputs are stored (for use only by cmd/go)")
+ isFuzzWorker = flag.Bool("test.fuzzworker", false, "coordinate with the parent process to fuzz random values (for use only by cmd/go)")
}
var (