Documentation
¶
Overview ¶
Package fuzz provides blackbox testing helpers for the testing/quick package or your own implementation.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func QuickGenerator ¶
QuickGenerator type is an adaptor to allow the use of Generator as testing/quick's Generator. It panics if the underlying Generator emits an error.
func QuickValues ¶
The QuickValues type is an adaptor to allow the use of Generator as testing/quick's Config.Values. It panics if an error occurs in the stack.
func UnbindField ¶
func UnbindField(name string) option
UnbindField removes a generator from a named field.
func UseZeroValueFallthrough ¶
func UseZeroValueFallthrough(on bool) option
UseZeroValueFallthrough instructs the session to use the zero-value for all unbound fields; otherwise, a random value is chosen.
Types ¶
type Fuzz ¶
type Fuzz struct {
// contains filtered or unexported fields
}
Fuzz describes a context in which a given struct's fields are to be annotated.
func (*Fuzz) MustOption ¶
func (f *Fuzz) MustOption(opts ...option) option