FunctionDeclarationShouldContext
Context receiver for writing declarative assertions on a FunctionDeclarationContext element. Provides easy access to all element properties and custom helper assertions.
Properties
The complete list of function declaration contexts in this test run scope.
The target FunctionDeclarationContext being verified.
Mutable collection where assertion failure messages are appended.
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.