FunctionDeclarationShouldContext
Context receiver for writing declarative assertions on a FunctionDeclarationContext element. Provides easy access to all element properties and custom helper assertions.
Properties
Filter or assertion criteria for all functions.
Filter or assertion criteria for annotations.
Filter or assertion criteria for declaration.
Filter or assertion criteria for element.
Filter or assertion criteria for is extension.
Filter or assertion criteria for module path.
Filter or assertion criteria for package name.
Filter or assertion criteria for parameters.
Filter or assertion criteria for return type.
Filter or assertion criteria for violations.
Filter or assertion criteria for visibility.
Functions
Appends a custom violation failure message to the assertion run.
Asserts that at least one of the function's parameters matches the given predicate block. Appends the message suffix to the violation report on failure.
Asserts that this function is decorated with all of the specified annotations.
Asserts that this function is decorated with the specified annotation.
Asserts that this function is decorated with at least one of the specified annotations.
Checks if this function is decorated with all of the specified annotations.
Checks if this function is decorated with the specified annotation.
Checks if this function is decorated with any of the specified annotations.
Asserts that none of the function's parameters match the given predicate block. Appends the message suffix to the violation report on failure.