Package-level declarations
Functions
Assert that attempting to read from the ReceiveChannel yields ClosedReceiveChannelException, indicating that it was closed without an exception.
Assert that attempting to read from the ReceiveChannel yields an exception, indicating that it was closed with an exception.
Assert that an event was received and return it. This function will suspend if no events have been received.
Returns the most recent item that has already been received. If channel was closed with no item being received previously, this function will throw an AssertionError. If channel was closed with an exception, this function will throw the underlying exception.
Assert that there are no unconsumed events which have already been received.
Assert that the next event received is Event.Complete. This function will not suspend. On JVM and Android, it will attempt to throw if invoked in a suspending context.
Assert that the next event received is Event.Error, and return the error. This function will not suspend. On JVM and Android, it will attempt to throw if invoked in a suspending context.
Terminal flow operator that collects events from given flow and allows the validate lambda to consume and assert properties on them in order. If any exception occurs during validation the exception is rethrown from this method.
Terminal flow operator that collects events from given flow and returns a ReceiveTurbine for consuming and asserting properties on them in order. If any exception occurs during validation the exception is rethrown from this method.
Run a validation block that catches and reports all unhandled exceptions in flows run by Turbine.
Sets a timeout for all Turbine instances within this context. If this timeout is not set, the default value is 3sec.