SubtypeScope

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

Constructors

Link copied to clipboard
constructor()

Types

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

Properties

Link copied to clipboard
val customProviders: <Error class: unknown class>

Functions

Link copied to clipboard
fun getProviderFor(targetType: KClass<*>): <Error class: unknown class>?
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.