From: Katie Hockman Date: Fri, 10 Dec 2021 19:03:20 +0000 (-0500) Subject: testing: update docs for fuzzcachedir X-Git-Tag: go1.18beta1~10 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=f909f813a0c12fde089a6c5e18fdcb9e71759cf7;p=gostls13.git 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 Run-TryBot: Katie Hockman TryBot-Result: Gopher Robot Reviewed-by: Bryan Mills --- 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 (