allEffects

inline fun <reified T : Transmission.Effect> allEffects(): List<T>(source)

Returns all effect transmissions of the specified type.

This is useful for asserting on multiple effect emissions of the same type.

Return

List of all effect transmissions of type T

Example:

val allLogEvents = allEffects<LoggingEffect>()
assertTrue(allLogEvents.any { it.level == LogLevel.ERROR })

Type Parameters

T

The type of effect to retrieve