Assertion

data class Assertion(val message: String, val cause: Throwable? = null)(source)

Represents the result of an assertion check.

Constructors

Link copied to clipboard
constructor(message: String, cause: Throwable? = null)

Properties

Link copied to clipboard

The throwable that caused the assertion to fail, if any. This is included as the cause of the thrown AssertionError.

Link copied to clipboard

The failure message describing what went wrong. This message is used to construct the error message when the assertion fails.