findAllEffects
inline fun <reified T : Transmission.Effect> findAllEffects(predicate: (T) -> Boolean): List<T>(source)
Finds all effect transmissions of the specified type that match the predicate.
Return
List of all matching effect transmissions
Example:
val errorEffects = findAllEffects<ErrorEffect> { it.severity == ErrorSeverity.HIGH }
assertTrue(errorEffects.isNotEmpty())Content copied to clipboard
Parameters
predicate
Function to test each effect transmission
Type Parameters
T
The type of effect to search for