diff options
| author | Andrew Z Allen <me@andrewzallen.com> | 2019-04-18 00:30:03 -0600 |
|---|---|---|
| committer | Brad Fitzpatrick <bradfitz@golang.org> | 2019-04-18 18:18:04 +0000 |
| commit | e900964e0f2709fe9ac5d4c8f760c3398ec0bbbd (patch) | |
| tree | 4ab1d0b37e73aa2b18cbfeb72c651576cecf2799 /src/testing/quick/quick.go | |
| parent | 24a6478be345bce2c551c7f5f287ee1ad6edcbd6 (diff) | |
| download | go-e900964e0f2709fe9ac5d4c8f760c3398ec0bbbd.tar.xz | |
testing/quick: clarify that Config.MaxCount is from a flag
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>
Diffstat (limited to 'src/testing/quick/quick.go')
| -rw-r--r-- | src/testing/quick/quick.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/testing/quick/quick.go b/src/testing/quick/quick.go index 0457fc7571..2cfb6c85db 100644 --- a/src/testing/quick/quick.go +++ b/src/testing/quick/quick.go @@ -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. |
