Companion

object Companion

Properties

Link copied to clipboard

Provides default values for internal components.

Link copied to clipboard

It is used in dev.mokkery.MockMode.autofill mode (more specifically in dev.mokkery.answering.Answer.Autofill). Initially it only fallbacks to forInternals so it provides values from it. Refer to CompositeAutofillProvider to read about customization possibilities.

Functions

Link copied to clipboard
inline fun <T> ofNotNull(crossinline block: (KClass<*>) -> T?): AutofillProvider<T>

Creates AutofillProvider that returns result of block as Value.Provided if it is not null. Otherwise, returns Value.Absent.