strikt-core / strikt.api / CompoundAssertion

CompoundAssertion

interface CompoundAssertion : Assertion

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

Properties

allFailed

true if all composed assertions failed, otherwise false.

abstract val allFailed: Boolean

allPassed

true if all composed assertions passed, otherwise false.

abstract val allPassed: Boolean

anyFailed

true if at least one composed assertion failed, otherwise false.

abstract val anyFailed: Boolean

anyPassed

true if at least one composed assertion passed, otherwise false.

abstract val anyPassed: Boolean

failedCount

the number of composed assertions that failed.

abstract val failedCount: Int

passedCount

the number of composed assertions that passed.

abstract val passedCount: Int