Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RandomBytesSource ¶
type RandomBytesSource struct {
// contains filtered or unexported fields
}
RandomBytesSource is a random string input
func (*RandomBytesSource) Next ¶
func (a *RandomBytesSource) Next() Value
Next returns a random byte slice
type RandomChoiceSource ¶
type RandomChoiceSource struct {
// contains filtered or unexported fields
}
RandomChoiceSource is a input that chooses a random value from a set
func (*RandomChoiceSource) Next ¶
func (p *RandomChoiceSource) Next() Value
Next returns the next random value from the set
type RandomStringSource ¶
type RandomStringSource struct {
// contains filtered or unexported fields
}
RandomStringSource is a random string input
func (*RandomStringSource) Next ¶
func (a *RandomStringSource) Next() Value
Next returns a random string
type SetSource ¶
type SetSource struct {
// contains filtered or unexported fields
}
SetSource is a input that returns a random set of values
type Source ¶
type Source interface { // Reset resets the input Reset() // Next returns the Next input value Next() Value }
Source is an interface for input sources
func RandomChoice ¶
RandomChoice returns a input that chooses a random value from a set
type Value ¶
type Value interface { // Interface returns the value as an interface{} Interface() interface{} // Bytes returns the value as a []byte Bytes() []byte // String returns the value as a string String() string // Slice returns the value as a slice of values Slice() []Value // Int returns the value as an int Int() int // Int32 returns the value as an int32 Int32() int32 // Int64 returns the value as an int64 Int64() int64 // Uint returns the value as a uint Uint() uint // Uint32 returns the value as a uint32 Uint32() uint32 // Uint64 returns the value as a uint64 Uint64() uint64 // Float32 returns the value as a float32 Float32() float32 // Float64 returns the value as a float64 Float64() float64 }
Value is a parameter value
Click to show internal directories.
Click to hide internal directories.