Skip to content

Commit

Permalink
testing/quick: clarify that Config.MaxCount is from a flag
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
achew22 authored and bradfitz committed Apr 18, 2019
1 parent 24a6478 commit e900964
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/testing/quick/quick.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit e900964

Please sign in to comment.