FunctionsShould

Functions

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

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

Link copied to clipboard

Asserts that selected functions have all of the specified modifiers.

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

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

Link copied to clipboard

Asserts that selected functions have at least one of the specified modifiers.

Link copied to clipboard

Asserts that selected functions have at least one parameter of one of the specified types.

Link copied to clipboard

Asserts that selected functions have any of the specified visibilities.

Link copied to clipboard

Asserts that selected functions contain the specified modifier.

Link copied to clipboard
Link copied to clipboard

Asserts that selected functions take exactly these parameter types in order (simple or fully qualified).

Link copied to clipboard
fun haveReturnType(vararg typeFqNames: String): FunctionsRuleBuilder
Link copied to clipboard

Asserts that selected functions have the specified visibility.

Link copied to clipboard
fun resideInAPackage(vararg packagePatterns: String): FunctionsRuleBuilder
infix fun resideInAPackage(packagePattern: String): FunctionsRuleBuilder
infix fun resideInAPackage(packagePatterns: List<String>): FunctionsRuleBuilder