SubtypeScope

@API(status = API.Status.EXPERIMENTAL, since = "1.8.4")
class SubtypeScope<T>

Constructors

Link copied to clipboard
constructor()

Types

Link copied to clipboard
class CustomProvider<T>(val targetType: KClass<Any>, val arbitraryFactory: () -> Arbitrary<T>)

Properties

Functions

Link copied to clipboard
fun getProviderFor(targetType: KClass<*>): Arbitrary<T>?
Link copied to clipboard
inline fun <U : T> provide(noinline customProvider: () -> Arbitrary<U>)

Registers a custom provider for subtype U, instead of default one created by anyForSubtypeOf.