BaseExpectImpl

abstract class BaseExpectImpl<T>(val maybeSubject: Option<T>) : ExpectInternal<T> (source)

Constructors

Link copied to clipboard
constructor(maybeSubject: Option<T>)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Do not use yet, this is experimental

Link copied to clipboard
open override val maybeSubject: Option<T>

Either Some wrapping the subject of an Assertion or None in case a previous subject transformation could not be carried out.

Functions

Link copied to clipboard
abstract fun append(assertion: Assertion): Expect<T>

Appends the given assertion to this container and returns an Expect which includes it.

Link copied to clipboard
open override fun appendAsGroup(assertionCreator: Expect<T>.() -> Unit): Expect<T>

Appends the Assertions the given assertionCreator creates to this container and returns an Expect which includes them.

Link copied to clipboard
open fun createAndAppend(description: Translatable, expected: Any?, test: (T) -> Boolean): Expect<T>
open fun createAndAppend(description: String, expected: Any?, test: (T) -> Boolean): Expect<T>

Creates a DescriptiveAssertion based on the given description, expected and test and appends it to the container.

Link copied to clipboard
open override fun <I : Any> getImpl(kClass: KClass<I>, defaultFactory: () -> I): I

Do not use yet, this is experimental and might change or be removed without prior notice.

Link copied to clipboard
inline fun <I : Any> withImplFactory(noinline implFactory: (oldFactory: () -> I) -> () -> I)