handleAssertion

Sets a custom handler for processing assertion results.

Parameters

block

A lambda which takes an AssertionResult as input and processes it. This allows customization of how assertion results are handled, such as logging or throwing custom exceptions.