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

Extensions for kotlin.reflect.KCallable

shouldAcceptParameters

fun KCallable<*>.shouldAcceptParameters(parameters: List<KClass<*>>, block: (List<KParameter>) -> Unit): Unit
infix fun KCallable<*>.shouldAcceptParameters(parameters: List<KClass<*>>): Unit

shouldBeAbstract

fun KCallable<*>.shouldBeAbstract(): Unit

shouldBeFinal

fun KCallable<*>.shouldBeFinal(): Unit

shouldBeOpen

fun KCallable<*>.shouldBeOpen(): Unit

shouldBeSuspendable

fun KCallable<*>.shouldBeSuspendable(): Unit

shouldHaveParametersWithName

fun KCallable<*>.shouldHaveParametersWithName(parameters: List<String>, block: (List<KParameter>) -> Unit): Unit
infix fun KCallable<*>.shouldHaveParametersWithName(parameters: List<String>): Unit

shouldHaveVisibility

infix fun KCallable<*>.shouldHaveVisibility(visibility: KVisibility): Unit

shouldNotAcceptParameters

infix fun KCallable<*>.shouldNotAcceptParameters(parameters: List<KClass<*>>): Unit

shouldNotBeAbstract

fun KCallable<*>.shouldNotBeAbstract(): Unit

shouldNotBeFinal

fun KCallable<*>.shouldNotBeFinal(): Unit

shouldNotBeOpen

fun KCallable<*>.shouldNotBeOpen(): Unit

shouldNotBeSuspendable

fun KCallable<*>.shouldNotBeSuspendable(): Unit

shouldNotHaveParametersWithName

infix fun KCallable<*>.shouldNotHaveParametersWithName(parameters: List<String>): Unit

shouldNotHaveVisibility

infix fun KCallable<*>.shouldNotHaveVisibility(visibility: KVisibility): Unit