TestLogicBLock

class TestLogicBLock<S : BlockState, E : BlockEvent> : LogicBlock<S, E>

Utility class used to test UiBlocks in isolation

Constructors

TestLogicBLock
Link copied to clipboard
fun TestLogicBLock()

Functions

assertNoEvents
Link copied to clipboard
fun assertNoEvents()
assertOnEvent
Link copied to clipboard
fun assertOnEvent(event: BlockEvent)
assertState
Link copied to clipboard
fun assertState(state: BlockState)
clear
Link copied to clipboard
fun clear()
currentState
Link copied to clipboard
fun currentState(): S?
equals
Link copied to clipboard
open operator fun equals(other: Any?): Boolean
getTag
Link copied to clipboard
open fun <T : Any> getTag(p0: String): T
hashCode
Link copied to clipboard
open fun hashCode(): Int
launchInBlock
Link copied to clipboard
fun <T> Flow<T>.launchInBlock(): Job
inline fun launchInBlock(crossinline codeBlock: suspend () -> Unit): Job
observeEvents
Link copied to clipboard
fun observeEvents(): Flow<E>
observeState
Link copied to clipboard
fun observeState(): Flow<S>
onCleared
Link copied to clipboard
open fun onCleared()
onUiEvent
Link copied to clipboard
open override fun onUiEvent(event: E)
processEvent
Link copied to clipboard
fun processEvent(event: E)
pushState
Link copied to clipboard
fun pushState(state: S)
setTagIfAbsent
Link copied to clipboard
open fun <T : Any> setTagIfAbsent(p0: String, p1: T): T
toString
Link copied to clipboard
open fun toString(): String

Properties

coroutineScope
Link copied to clipboard
val coroutineScope: CoroutineScope