Properties

Link copied to clipboard
open override val builder: FunctionsRuleBuilder

Filter or assertion criteria for builder.

Functions

Link copied to clipboard
open fun allOf(vararg blocks: FunctionsShould.() -> Unit): FunctionsRuleBuilder

Filter or assertion criteria for all of.

Link copied to clipboard
open fun anyOf(vararg blocks: FunctionsShould.() -> Unit): FunctionsRuleBuilder

Asserts that selected functions satisfy at least one of the specified assertion blocks.

Link copied to clipboard

Filter or assertion criteria for be abstract.

Link copied to clipboard

Asserts that functions are annotated with the annotation specified by type parameter T.

Asserts that functions are annotated with the specified annotation class.

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

Filter or assertion criteria for be infix.

Link copied to clipboard

Filter or assertion criteria for be inline.

Link copied to clipboard

Filter or assertion criteria for be internal.

Link copied to clipboard

Filter or assertion criteria for be member.

Link copied to clipboard

Filter or assertion criteria for be open.

Link copied to clipboard

Filter or assertion criteria for be operator.

Link copied to clipboard

Filter or assertion criteria for be override.

Link copied to clipboard

Filter or assertion criteria for be private.

Link copied to clipboard

Filter or assertion criteria for be protected.

Link copied to clipboard

Filter or assertion criteria for be public.

Link copied to clipboard

Filter or assertion criteria for be suspend.

Link copied to clipboard

Filter or assertion criteria for be top level.

Link copied to clipboard
open fun dependOnPackageOf(vararg classes: KClass<*>): FunctionsRuleBuilder

Asserts that selected functions depend on package containing classes.

Link copied to clipboard

Asserts that functions depend on package of T.

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

Asserts that selected functions depend on types or usages in packages matching patterns.

Link copied to clipboard

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

Link copied to clipboard

Asserts that functions have all of the specified annotations.

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

Asserts that selected functions have all of the specified modifiers.

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

Asserts that functions have the specified annotation class.

Link copied to clipboard

Asserts that functions have the annotation type parameter T.

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 functions have an annotation annotation with an argument argName equal to argValue.

Link copied to clipboard

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

Link copied to clipboard

Asserts that functions have any of the specified annotations.

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

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.

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

Asserts that selected functions have a parameter of raw type T.

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

Asserts that selected functions have any of the specified visibilities.

Link copied to clipboard
open infix fun haveModifier(modifier: Modifier): FunctionsRuleBuilder

Asserts that selected functions contain the specified modifier.

Link copied to clipboard
open fun haveName(vararg names: String): FunctionsRuleBuilder
open infix fun haveName(predicate: (String) -> Boolean): FunctionsRuleBuilder
open infix fun haveName(name: String): FunctionsRuleBuilder
open infix fun haveName(names: List<String>): FunctionsRuleBuilder

Filter or assertion criteria for have name.

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

Filter or assertion criteria for have name ending with.

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

Filter or assertion criteria for have name matching.

Link copied to clipboard

Filter or assertion criteria for have name starting with.

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.

Link copied to clipboard

Asserts that selected functions have the specified raw return type.

Link copied to clipboard
open infix fun haveVisibility(visibility: Visibility): FunctionsRuleBuilder

Asserts that selected functions have the specified visibility.

Link copied to clipboard
open fun noneOf(vararg blocks: FunctionsShould.() -> Unit): FunctionsRuleBuilder

Filter or assertion criteria for none of.

Link copied to clipboard

Filter or assertion criteria for not be abstract.

Link copied to clipboard

Filter or assertion criteria for not be extension.

Link copied to clipboard

Filter or assertion criteria for not be infix.

Link copied to clipboard

Filter or assertion criteria for not be inline.

Link copied to clipboard

Filter or assertion criteria for not be internal.

Link copied to clipboard

Filter or assertion criteria for not be open.

Link copied to clipboard

Filter or assertion criteria for not be operator.

Link copied to clipboard

Filter or assertion criteria for not be override.

Link copied to clipboard

Filter or assertion criteria for not be private.

Link copied to clipboard

Filter or assertion criteria for not be protected.

Link copied to clipboard

Filter or assertion criteria for not be public.

Link copied to clipboard

Filter or assertion criteria for not be suspend.

Link copied to clipboard

Fails when the selected function invokes fqName.

open fun notCall(kClass: KClass<*>): FunctionsRuleBuilder

Fails when the selected function invokes kClass.

Link copied to clipboard

Fails when the selected function invokes T.

Link copied to clipboard
open fun notDependOnPackageOf(vararg classes: KClass<*>): FunctionsRuleBuilder

Asserts that selected functions do not depend on package containing classes.

Link copied to clipboard

Asserts that functions do not depend on package of T.

Link copied to clipboard
open fun notDependOnPackages(vararg patterns: String): FunctionsRuleBuilder

Asserts that selected functions do not depend on types or usages in packages matching patterns.

Link copied to clipboard
open infix fun notHaveModifier(modifier: Modifier): FunctionsRuleBuilder

Filter or assertion criteria for not have modifier.

Link copied to clipboard
open fun notHaveName(vararg names: String): FunctionsRuleBuilder
open infix fun notHaveName(name: String): FunctionsRuleBuilder
open infix fun notHaveName(names: List<String>): FunctionsRuleBuilder

Filter or assertion criteria for not have name.

Link copied to clipboard

Filter or assertion criteria for not have name ending with.

Link copied to clipboard
open fun notHaveNameMatching(vararg patterns: String): FunctionsRuleBuilder

Filter or assertion criteria for not have name matching.

Link copied to clipboard

Filter or assertion criteria for not have name starting with.

Link copied to clipboard

Fails for every actual class/type use of fqName in the selected function; imports alone do not match.

Fails for every actual class/type use of kClass in the selected function; imports alone do not match.

Link copied to clipboard

Fails for every actual class/type use of T in the selected function.

Link copied to clipboard
open fun notResideInAModule(vararg modulePaths: String): FunctionsRuleBuilder
open infix fun notResideInAModule(modulePath: String): FunctionsRuleBuilder
open infix fun notResideInAModule(modulePaths: List<String>): FunctionsRuleBuilder

Filter or assertion criteria for not reside in a module.

Link copied to clipboard
open infix fun notResideInModule(modulePath: String): FunctionsRuleBuilder

Filter or assertion criteria for not reside in module.

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

Filter or assertion criteria for not reside in modules.

Link copied to clipboard
open fun onlyDependOnPackageOf(vararg classes: KClass<*>): FunctionsRuleBuilder

Asserts that selected functions only depend on package containing classes.

Link copied to clipboard

Asserts that functions only depend on package of T.

Link copied to clipboard

Asserts that selected functions only depend on types or usages in packages matching patterns.

Link copied to clipboard
open fun resideInAModule(vararg modulePaths: String): FunctionsRuleBuilder
open infix fun resideInAModule(modulePath: String): FunctionsRuleBuilder
open infix fun resideInAModule(modulePaths: List<String>): FunctionsRuleBuilder

Filter or assertion criteria for reside in a module.

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

Filter or assertion criteria for reside in a package.

Link copied to clipboard
open infix fun resideInModule(modulePath: String): FunctionsRuleBuilder

Filter or assertion criteria for reside in module.

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

Filter or assertion criteria for reside in modules.

Link copied to clipboard

Filter or assertion criteria for reside in package of.

Link copied to clipboard

Asserts that functions reside in the package of the type parameter T.

Asserts that functions reside in the package of the specified type.

Link copied to clipboard

Asserts that selected functions satisfy a custom boolean condition.

Asserts that selected functions satisfy a custom violation-collecting assertion.

open infix fun satisfy(description: String): FunctionsRuleBuilder

Asserts that selected functions satisfy custom description description.

Asserts that selected functions satisfy a custom boolean condition with description.

Asserts that selected functions satisfy a custom predicate within a SatisfyContext block identified by id and optional description.