Package-level declarations

Types

Link copied to clipboard

Records the calls a TransmissionTestScope.fake command received.

Link copied to clipboard

Records the arguments a TransmissionTestScope.fake command received, in call order.

Link copied to clipboard
class TestSuite
Link copied to clipboard

Test scope interface for the legacy TestSuite API.

Link copied to clipboard

Comprehensive testing framework for Transmission components with a fluent DSL.

Link copied to clipboard

Sends messages to the transformer under test, fakes what it depends on, and awaits its output.

Functions

Link copied to clipboard
Link copied to clipboard

Finds the last occurrence of a specific data type in the list.

Finds the last occurrence of a specific effect type in the list.

Link copied to clipboard
fun Transformer.test(dispatcher: CoroutineDispatcher = StandardTestDispatcher()): TransmissionTest

Extension function to create a TransmissionTest for this transformer.

Extension function to create a TransmissionTest for this transformer with a custom dispatcher.

fun TestSuite.test(effect: Transmission.Effect, scope: suspend TransformerTestScope.(scope: TestScope) -> Unit)
fun TestSuite.test(signal: Transmission.Signal, scope: suspend TransformerTestScope.(scope: TestScope) -> Unit)

fun Transformer.test(dispatcher: TestDispatcher = StandardTestDispatcher(), timeout: Duration = 5.seconds, block: suspend TransmissionTestScope.() -> Unit): TestResult

Tests this transformer by sending messages and awaiting what it produces.

Link copied to clipboard

Waits for the transformer's current signal and effect processing to complete.