CorrelatedPropertyGenerator

fun <R, RR> CorrelatedPropertyGenerator(prop: KProperty1<T, R>, invoke: (R) -> Generator<RR>)

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)

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