fake

inline fun <T> fake(seed: Long? = null, noinline configure: FakeSpec<T>.() -> Unit = {}): T

Generates fake data for T using the global Fiktion configuration.


inline fun <T> Fiktion.fake(seed: Long? = null, noinline configure: FakeSpec<T>.() -> Unit = {}): T

Generates fake data for T using this Fiktion instance.


fun <T> fake(type: KType, seed: Long? = null, configure: FakeSpec<T>.() -> Unit = {}): T

Deprecated (with error)

Use the reified fake<T>() overload.

Generates fake data for T using the global Fiktion configuration and explicit type.

This low-level overload is intended for callers that already carry a KType. The caller must keep type and T consistent.


fun <T> Fiktion.fake(type: KType, seed: Long? = null, configure: FakeSpec<T>.() -> Unit = {}): T

Deprecated (with error)

Use the reified Fiktion.fake<T>() overload.

Generates fake data for T using this Fiktion instance and explicit type.

This low-level overload is intended for callers that already carry a KType. The caller must keep type and T consistent.