Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RSG ¶
type RSG struct {
// contains filtered or unexported fields
}
RSG is a random syntax generator.
func (*RSG) Float64 ¶
Float64 returns a random float. It is sometimes +/-Inf, NaN, and attempts to be distributed among very small, large, and normal scale numbers.
func (*RSG) Generate ¶
Generate generates a unique random syntax from the root node. At most depth levels of token expansion are performed. An empty string is returned on error or if depth is exceeded. Generate is safe to call from mulitipule goroutines. If Generate is called more times than it can generate unique output, it will block forever.
func (*RSG) GenerateRandomArg ¶
GenerateRandomArg generates a random, valid, SQL function argument of the spcified type.
Click to show internal directories.
Click to hide internal directories.