consumeAssertion

abstract fun consumeAssertion(assertionResult: AssertionScope.Assertion)(source)

Consumes an assertion result, typically by throwing an AssertionError if the assertion fails.

Implementations of this interface define how assertion failures are handled. The default companion object implementation throws an AssertionError with the assertion message and cause.

Parameters

assertionResult

The assertion to consume, containing the failure message and optional cause.