Package tech.antibytes.kmock.verification

Types

Asserter
Link copied to clipboard
common
class Asserter(coverAllInvocations: Boolean) : AsserterBase
Container which collects and holds actual references of proxy calls in a freezing manner.
NonFreezingAsserter
Link copied to clipboard
common
class NonFreezingAsserter(coverAllInvocations: Boolean) : AsserterBase
Container which collects and holds actual references of proxy calls in a non freezing manner.
NonFreezingVerifier
Link copied to clipboard
common
typealias NonFreezingVerifier = NonFreezingAsserter

Alias to NonFreezingAsserter.

Verifier
Link copied to clipboard
common
typealias Verifier = Asserter

Alias to Asserter.

Functions

and
Link copied to clipboard
common
Alias of intersect
assertOrder
Link copied to clipboard
common
fun KMockContract.Asserter.assertOrder(action: KMockContract.ChainedAssertion.() -> Any)
Asserts a chain of Expectations.
assertProxy
Link copied to clipboard
common
fun assertProxy(action: KMockContract.CloseableAssertionContext.() -> Unit)
Asserts Expectations of proxies.
asyncAssertOrder
Link copied to clipboard
common
suspend fun KMockContract.Asserter.asyncAssertOrder(action: suspend KMockContract.ChainedAssertion.() -> Any)
Asserts a chain of Expectations in a coroutine Context.
asyncAssertProxy
Link copied to clipboard
common
suspend fun asyncAssertProxy(action: suspend KMockContract.CloseableAssertionContext.() -> Unit)
Asserts Expectations of proxies in Coroutine Context.
asyncVerify
Link copied to clipboard
common
suspend fun asyncVerify(exactly: Int? = null, atLeast: Int = 1, atMost: Int? = null, action: suspend KMockContract.VerificationContext.() -> KMockContract.Expectation)
Verifies the last produced VerificationHandle in a Coroutine Context.
asyncVerifyOrder
Link copied to clipboard
common
suspend fun KMockContract.Asserter.asyncVerifyOrder(action: suspend KMockContract.ChainedAssertion.() -> Any)
Verifies a chain of Expectations in a Coroutine Context.
asyncVerifyStrictOrder
Link copied to clipboard
common
suspend fun KMockContract.Asserter.asyncVerifyStrictOrder(action: suspend KMockContract.ChainedAssertion.() -> Any)
Verifies a chain of Expectations in a Coroutine Context.
diff
Link copied to clipboard
common
Operator to determine the symmetrical difference of 2 VerificationHandles call indices.
intersection
Link copied to clipboard
common
Operator to determine the intersection of 2 VerificationHandles call indices.
or
Link copied to clipboard
common
Alias of union
union
Link copied to clipboard
common
Operator to determine the union of 2 VerificationHandles call indices.
verify
Link copied to clipboard
common
fun verify(exactly: Int? = null, atLeast: Int = 1, atMost: Int? = null, action: KMockContract.VerificationContext.() -> KMockContract.Expectation)
Verifies the last produced VerificationHandle.
verifyOrder
Link copied to clipboard
common
fun KMockContract.Asserter.verifyOrder(action: KMockContract.ChainedAssertion.() -> Any)
Verifies a chain of Expectations.
verifyStrictOrder
Link copied to clipboard
common
fun KMockContract.Asserter.verifyStrictOrder(action: KMockContract.ChainedAssertion.() -> Any)
Verifies a chain of Expectations.
xor
Link copied to clipboard
common
Alias of diff