generates a boolean
generates a boolean
generates a char
generates a char
generates a type key for the union constituent
generates a type key for the union constituent
the type of the Union object to traverse
the union
the constituent type key
generates a date-time
generates a date-time
generates a double
generates a double
generates a float
generates a float
generates an int
generates an int
returns the size of the list to be generated.
returns the size of the list to be generated. a negative return value will result in an empty list.
the type of the list elements
generates a long
generates a long
returns the size of the option to be generated.
returns the size of the option to be generated. a return value of 0
will
generate a None
, and a return value of 1
(or anything other than 0
)
will generate a Some
.
the type of the optional value
returns the size of the set to be generated.
returns the size of the set to be generated. a negative return value will result in an empty set.
the type of the set elements
generates a string
generates a string
the custom generators to use in the recursive generation
the custom generators to use in the recursive generation
the emblematic types to use in the recursive generation
the emblematic types to use in the recursive generation
generates data for the specified type A
generates data for the specified type A
the type of data to generate
the generated data
emblem.exceptions.CouldNotGenerateException
when we encounter a type in the recursive traversal
that we don't know how to generate for
recursively generates a data structure by type.
you can generate arbritrary data to your liking by implementing the protected vals and defs in this interface. as of yet, i haven't been able to generate the scaladoc for those protected methods. sorry about that.
TestDataGenerator for an example usage