CorrelatedPropertyGenerator
fun <R, RR> CorrelatedPropertyGenerator(prop: KProperty1<T, R>, invoke: (R) -> Generator<RR>)
Content copied to clipboard
This constructor enables users to nest a CorrelatedPropertyGenerator. Doing so results in a correlation chain by which all required values are generated ahead of the correlated Generator.
Parameters
prop
KProperty1 with which to correlate this Generator
invoke
Function parameter providing access to the nested Generator
fun <R, RR> CorrelatedPropertyGenerator(prop: KProperty1<T, R>, invoke: (R, Random) -> RR)
Content copied to clipboard
This constructor enables direct correlation with a desired Generator
Parameters
prop
KProperty1 with which to correlate this Generator
invoke
Function parameter used to provide the correlated value for use in the underlying Generator