Properties
Link copied to clipboard
val <Element, CollectionType : Collection<Element>> FakeSpec<CollectionType>.element: RuleTarget<Element>
Targets elements generated for the current collection root.
Functions
Link copied to clipboard
infix fun <Value> PropertyPath<Root, Value>.generatesBy(generator: Generator<Value>): GenerationSpec<Value>
Generates this nested property path by invoking generator.
infix inline fun <Value> KProperty1<Root, Value>.generatesBy(noinline generator: Generator<Value>): GenerationSpec<Value>
Generates this property by invoking generator.
Link copied to clipboard
operator fun <Value> PropertyPath<Root, Value>.invoke(configure: FakeSpec<Value>.() -> Unit): GenerationSpec<Value>
Applies nested per-call configuration to this property path.
inline operator fun <Value> KProperty1<Root, Value>.invoke(noinline configure: FakeSpec<Value>.() -> Unit): GenerationSpec<Value>
operator fun <Value> KProperty1<Root, Value>.invoke(configure: FakeSpec<Value>.() -> Unit, value: KType): GenerationSpec<Value>
Applies nested per-call configuration to this property.
Link copied to clipboard
Targets properties generated while building Root whose name is name, inferring the value type from the generator.
Targets properties generated while building Root whose name matches regex, inferring the value type from the generator.
Targets properties generated while building the current root whose value type is Value and name is name.
Link copied to clipboard
fun <Value> property(path: PropertyPath<Root, Value>, configure: RuleTarget<Value>.() -> Unit): RuleTarget<Value>
inline fun <Value> property(property: KProperty1<Root, Value>, noinline configure: RuleTarget<Value>.() -> Unit): RuleTarget<Value>
Link copied to clipboard
Configures the root value generated by this call.
infix inline fun <Value, ConfigValue : Any> KProperty1<Root, Value>.using(value: FiktionConfigSetting<in Value, ConfigValue>)
inline fun <Value, ConfigValue : Any> KProperty1<Root, Value>.using(key: FiktionConfig<in Value, ConfigValue>, value: ConfigValue)
Configures built-in or add-on generator behavior for this property.