Package-level declarations

Functions

Link copied to clipboard
suspend fun Assert<Flow<*>>.contains(element: Any?)

Asserts the flow contains the expected element, using in. Succeeds as soon as that element is received.

Link copied to clipboard
suspend fun Assert<Flow<*>>.containsAll(vararg elements: Any?)

Asserts the flow emits at least the expected elements, in any order. The flow may also emit additional elements. Succeeds as soon as all expected elements are received.

Link copied to clipboard
suspend fun Assert<Flow<*>>.containsAtLeast(vararg elements: Any?)

Asserts the flow emits at least the expected elements, in any order. The flow may also emit additional elements. Succeeds as soon as all expected elements are received.

Link copied to clipboard
suspend fun Assert<Flow<*>>.containsExactly(vararg elements: Any?)

Asserts the flow contains exactly the expected elements. They must be in the same order and there must not be any extra elements.

Link copied to clipboard
suspend fun Assert<Flow<*>>.containsNone(vararg elements: Any?)

Asserts the collection does not contain any of the expected elements. Fails as soon as one of the expected elements is received.

Link copied to clipboard
suspend fun Assert<Flow<*>>.containsOnly(vararg elements: Any?)

Asserts the flow contains only the expected elements, in any order.

Link copied to clipboard
suspend fun Assert<Flow<*>>.count(): Assert<Int>
Link copied to clipboard
suspend fun Assert<Flow<*>>.doesNotContain(element: Any?)

Asserts the flow does not contain any of the expected elements. Fails as soon as that element is received.

Link copied to clipboard
suspend fun Assert<Flow<*>>.hasCount(count: Int)
Link copied to clipboard
suspend fun Assert<Flow<*>>.isEmpty()

Asserts the flow is empty. Fails as soon as the flow delivers an element.

Link copied to clipboard
suspend fun Assert<Flow<*>>.isNotEmpty()

Asserts the flow is not empty.

Link copied to clipboard
suspend fun <T, P> Assert<T>.suspendCall(name: String, extract: suspend (T) -> P): Assert<P>

Returns an assert that asserts on the result of the given suspend call.