strikt-core / strikt.api / Assertion

Assertion

interface Assertion

Allows assertion implementations to determine a result.

Types

Builder

Used to construct assertions.

interface Builder<T>

Functions

fail

Mark this result as failed.

abstract fun fail(description: String? = null, cause: Throwable? = null): Unit

pass

Mark this result as passed.

abstract fun pass(description: String? = null): Unit

Inheritors

AtomicAssertion

An assertion of a single condition on a subject.

interface AtomicAssertion : Assertion

CompoundAssertion

An assertion composed of multiple conditions whose overall result is determined by some aggregation of those conditions' results.

interface CompoundAssertion : Assertion