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

Functions

Link copied to clipboard
fun getProviderFor(targetType: KClass<*>): Arbitrary<out 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.