kotest-assertions-core / io.kotest.matchers.reflection

Package io.kotest.matchers.reflection

Extensions for External Classes

kotlin.reflect.KCallable

kotlin.reflect.KClass

kotlin.reflect.KFunction

kotlin.reflect.KProperty

kotlin.reflect.KType

Functions

acceptParametersOfType

fun acceptParametersOfType(parameters: List<KClass<*>>): Matcher<KCallable<*>>

beAbstract

fun beAbstract(): Matcher<KCallable<*>>

beAnnotatedWith

fun <T : Annotation> beAnnotatedWith(): Matcher<KFunction<*>>

beClassAnnotatedWith

fun <T : Annotation> beClassAnnotatedWith(): Matcher<KClass<*>>

beCompanion

fun beCompanion(): Matcher<KClass<*>>

beConst

fun beConst(): Matcher<KProperty<*>>

beData

fun beData(): Matcher<KClass<*>>

beFinal

fun beFinal(): Matcher<KCallable<*>>

beInfix

fun beInfix(): Matcher<KFunction<*>>

beInline

fun beInline(): Matcher<KFunction<*>>

beLateInit

fun beLateInit(): Matcher<KProperty<*>>

beOfType

fun <T> beOfType(): Matcher<KType>

beOpen

fun beOpen(): Matcher<KCallable<*>>

beSealed

fun beSealed(): Matcher<KClass<*>>

beSubtypeOf

fun <T> beSubtypeOf(): Matcher<KClass<*>>

beSuperTypeOf

fun <T> beSuperTypeOf(): Matcher<KClass<*>>

beSuspendable

fun beSuspendable(): Matcher<KCallable<*>>

haveCallableVisibility

fun haveCallableVisibility(expected: KVisibility): Matcher<KCallable<*>>

haveClassAnnontations

fun haveClassAnnontations(count: Int = -1): Matcher<KClass<*>>

haveClassVisibility

fun haveClassVisibility(expected: KVisibility): Matcher<KClass<*>>

haveFunction

fun haveFunction(name: String): Matcher<KClass<*>>

haveFunctionAnnotations

fun haveFunctionAnnotations(count: Int = -1): Matcher<KFunction<*>>

haveMemberProperty

fun haveMemberProperty(name: String): Matcher<KClass<*>>

haveParametersWithName

fun haveParametersWithName(parameters: List<String>): Matcher<KCallable<*>>

havePrimaryConstructor

fun havePrimaryConstructor(): Matcher<KClass<*>>