FunctionAssertionScope

Assertion scope DSL for configuring rule expectations on Kotlin functions.

Properties

Link copied to clipboard

Filter or assertion criteria for assertions.

Functions

Link copied to clipboard

Filter or assertion criteria for be abstract.

Link copied to clipboard

Filter or assertion criteria for be documented with k doc.

Link copied to clipboard

Filter or assertion criteria for be extension.

Link copied to clipboard
fun beInline()

Filter or assertion criteria for be inline.

Link copied to clipboard

Filter or assertion criteria for be internal.

Link copied to clipboard
fun beOpen()

Filter or assertion criteria for be open.

Link copied to clipboard
fun bePrivate()

Filter or assertion criteria for be private.

Link copied to clipboard

Filter or assertion criteria for be protected.

Link copied to clipboard
fun bePublic()

Filter or assertion criteria for be public.

Link copied to clipboard
fun beSuspend()

Filter or assertion criteria for be suspend.

Link copied to clipboard
fun haveAllAnnotationsOf(vararg names: String)

Asserts that member functions are annotated with all of the specified annotations.

Link copied to clipboard
fun haveAllModifiers(vararg modifiers: Modifier)
fun haveAllModifiers(modifiers: List<Modifier>)

Asserts that member functions have all of the specified modifiers.

Link copied to clipboard
fun haveAnnotationOf(vararg annotationNames: String)
fun haveAnnotationOf(annotationName: String)
fun haveAnnotationOf(annotationNames: List<String>)

Filter or assertion criteria for have annotation of.

Link copied to clipboard

Asserts that functions in this assertion scope have the specified annotation class.

Link copied to clipboard

Asserts that functions in this assertion scope have the annotation specified by T.

Link copied to clipboard
fun haveAnyAnnotationOf(vararg names: String)

Asserts that member functions are annotated with any of the specified annotations.

Link copied to clipboard
fun haveAnyModifier(vararg modifiers: Modifier)
fun haveAnyModifier(modifiers: List<Modifier>)

Asserts that member functions have any of the specified modifiers.

Link copied to clipboard
fun haveAnyVisibility(vararg visibilities: Visibility)
fun haveAnyVisibility(visibilities: List<Visibility>)

Asserts that member functions have any of the specified visibilities.

Link copied to clipboard
fun haveModifier(modifier: Modifier)

Filter or assertion criteria for have modifier.

Link copied to clipboard
fun haveNameEndingWith(vararg suffixes: String)

Filter or assertion criteria for have name ending with.

Link copied to clipboard
fun haveNameMatching(vararg patterns: String)
fun haveNameMatching(pattern: String)
fun haveNameMatching(patterns: List<String>)

Filter or assertion criteria for have name matching.

Link copied to clipboard
fun haveNameStartingWith(vararg prefixes: String)

Filter or assertion criteria for have name starting with.

Link copied to clipboard
fun haveReturnType(vararg typeFqNames: String)
fun haveReturnType(typeFqName: String)
fun haveReturnType(typeFqNames: List<String>)

Filter or assertion criteria for have return type.

Link copied to clipboard

Asserts that functions in this assertion scope have the specified return type.

Link copied to clipboard

Asserts that functions in this assertion scope have the return type specified by T.