Documentation ¶
Index ¶
- func GenBool(rng *rand.Rand) bool
- func GenUint64(rng *rand.Rand) uint64
- func GenUint64Range(rng *rand.Rand, min, max uint64) uint64
- func GenUintRange(rng *rand.Rand, min, max uint) uint
- func MakeGenUint64Range(min, max uint64) func(rng *rand.Rand) uint64
- func MakeGenUintRange(min, max uint) func(rng *rand.Rand) uint
- type Generator
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Generator ¶
type Generator struct {
// contains filtered or unexported fields
}
func NewGenerator ¶
func NewGenerator(testFn interface{}, fns ...interface{}) *Generator
NewGenerator creates a new generator. Each function must implement `func(*rand.Rand) T`, with T being the custom type to be generated. The generators Gen methods selects the function to execute on matching return type.
Click to show internal directories.
Click to hide internal directories.