kotest-assertions-core / io.kotest.matchers.reflection / kotlin.reflect.KFunction

Extensions for kotlin.reflect.KFunction

shouldBeAnnotatedWith

fun <T : Annotation> KFunction<*>.shouldBeAnnotatedWith(block: (T) -> Unit = {}): Unit

shouldBeInfix

fun KFunction<*>.shouldBeInfix(): Unit

shouldBeInline

fun KFunction<*>.shouldBeInline(): Unit

shouldHaveAnnotations

fun KFunction<*>.shouldHaveAnnotations(): Unit
infix fun KFunction<*>.shouldHaveAnnotations(count: Int): Unit

shouldHaveReturnType

fun <T> KFunction<*>.shouldHaveReturnType(): Unit

shouldNotBeAnnotatedWith

fun <T : Annotation> KFunction<*>.shouldNotBeAnnotatedWith(): Unit

shouldNotBeInfix

fun KFunction<*>.shouldNotBeInfix(): Unit

shouldNotBeInline

fun KFunction<*>.shouldNotBeInline(): Unit

shouldNotHaveAnnotations

fun KFunction<*>.shouldNotHaveAnnotations(): Unit
infix fun KFunction<*>.shouldNotHaveAnnotations(count: Int): Unit

shouldNotHaveReturnType

fun <T> KFunction<*>.shouldNotHaveReturnType(): Unit