Companion
Default implementation of AssertionScope that throws an AssertionError when an assertion fails.
This companion object serves as the default assertion scope for top-level assertion functions.
Functions
Link copied to clipboard
Executes the given assertion checker and consumes its result.
Link copied to clipboard
Consumes an assertion result, typically by throwing an AssertionError if the assertion fails.
Link copied to clipboard
Link copied to clipboard
Invokes the given assertion block with this AssertionScope as the context receiver.
Link copied to clipboard
Executes the given assertion block in a "soft" mode, collecting all assertion failures and reporting them together at the end.
Link copied to clipboard
inline fun AssertionScope.withClue(crossinline clue: () -> String, block: context(AssertionScope) () -> Unit)