FiktionRuleBuilder
Shared rule registration surface exposed by Fiktion builders.
Inheritors
Functions
Link copied to clipboard
inline fun <CollectionType : Collection<*>> configureCollection(noinline convert: (List<Any?>) -> CollectionType)
Configures how generated elements are materialized as collection type CollectionType.
Configures how generated elements are materialized as collection type type.
Link copied to clipboard
Generates value for this nested property path.
Generates this nested property path using Fiktion's automatic generation.
infix inline fun <Owner, Value> KProperty1<Owner, Value>.generates(value: Value): GenerationSpec<Value>
Generates value for this property.
infix inline fun <Owner, Value> KProperty1<Owner, Value>.generates(auto: Auto): GenerationSpec<Value>
Generates this property using Fiktion's automatic generation.
Link copied to clipboard
infix fun <Root, Value> PropertyPath<Root, Value>.generatesBy(generator: Generator<Value>): GenerationSpec<Value>
Generates this nested property path by invoking generator.
infix inline fun <Owner, Value> KProperty1<Owner, Value>.generatesBy(noinline generator: Generator<Value>): GenerationSpec<Value>
Generates this property by invoking generator.
Link copied to clipboard
Targets values generated for path.
Targets values generated for property.
fun <Root, Value> property(path: PropertyPath<Root, Value>, configure: RuleTarget<Value>.() -> Unit): RuleTarget<Value>
Groups declarations for values generated for path.
inline fun <Owner, Value> property(property: KProperty1<Owner, Value>, noinline configure: RuleTarget<Value>.() -> Unit): RuleTarget<Value>
Groups declarations for values generated for property.
fun <Owner, Value> property(property: KProperty1<Owner, Value>, owner: KType, value: KType): RuleTarget<Value>