]> Cypherpunks repositories - gostls13.git/commitdiff
testing: update docs for fuzzcachedir
authorKatie Hockman <katie@golang.org>
Fri, 10 Dec 2021 19:03:20 +0000 (14:03 -0500)
committerKatie Hockman <katie@golang.org>
Mon, 13 Dec 2021 18:55:52 +0000 (18:55 +0000)
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>
src/testing/fuzz.go

index 18f2b2f319d9e094a7ec9e6e6962f910c2380669..4a5def1ab4136cefcb9be1584e1187a9595f25e1 100644 (file)
@@ -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 (