]> Cypherpunks repositories - gostls13.git/commitdiff
testing/quick: clarify that Config.MaxCount is from a flag
authorAndrew Z Allen <me@andrewzallen.com>
Thu, 18 Apr 2019 06:30:03 +0000 (00:30 -0600)
committerBrad Fitzpatrick <bradfitz@golang.org>
Thu, 18 Apr 2019 18:18:04 +0000 (18:18 +0000)
Document that the default quickcheck configuration is to run 100 times
and that there is a flag that configures it called "quickchecks".

Change-Id: I46fdab9d572e132ccc23ef907f9cc6b2d06b37c4
Reviewed-on: https://go-review.googlesource.com/c/go/+/172698
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/testing/quick/quick.go

index 0457fc7571b9cec554b7ae6c9e84d96d1b38c709..2cfb6c85db53d191f305a9694363ba284e45bc10 100644 (file)
@@ -180,7 +180,8 @@ type Config struct {
        MaxCount int
        // MaxCountScale is a non-negative scale factor applied to the
        // default maximum.
-       // If zero, the default is unchanged.
+       // If zero, the default is configured by the -quickchecks flag
+       // which defaults to 100.
        MaxCountScale float64
        // Rand specifies a source of random numbers.
        // If nil, a default pseudo-random source will be used.