FunctionsShouldSignatureAssertions

Signature and type assertions for function rules.

Inheritors

Properties

Link copied to clipboard

Filter or assertion criteria for builder.

Functions

Link copied to clipboard

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

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

Filter or assertion criteria for have annotation of.

Link copied to clipboard
open fun haveAnnotationWithArgument(annotationName: String, argName: String? = null, argValue: String): FunctionsRuleBuilder

Filter or assertion criteria for have annotation with argument.

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 parameter of one of the specified types.

open fun haveAnyParameterType(first: KClass<*>, vararg additional: KClass<*>): FunctionsRuleBuilder

Asserts that selected functions have a parameter of any specified raw type.

Link copied to clipboard

Filter or assertion criteria for have no parameters.

Link copied to clipboard

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

open fun haveParameterTypes(first: KClass<*>, vararg additional: KClass<*>): FunctionsRuleBuilder

Asserts that selected functions take exactly these raw parameter types in order.

Link copied to clipboard
open fun haveReturnType(vararg typeFqNames: String): FunctionsRuleBuilder
open infix fun haveReturnType(typeFqNames: List<String>): FunctionsRuleBuilder

Filter or assertion criteria for have return type.

open infix fun haveReturnType(typeFqName: String): FunctionsRuleBuilder

Asserts that selected functions have the specified return type fully qualified name typeFqName.

open infix fun haveReturnType(type: KClass<*>): FunctionsRuleBuilder

Asserts that selected functions have the specified raw return type.