androidx.appstate.transform.testing

Interfaces

TransformTestScope

A test scope used in tests that allows controlling and testing transforms.

Cmn

Top-level functions summary

Unit
transformTest(context: CoroutineContext, block: suspend TransformTestScope.() -> Unit)

Runs block as a test of androidx.appstate.transform.transform.

Cmn
android

Top-level functions

transformTest

fun transformTest(
    context: CoroutineContext = EmptyCoroutineContext,
    block: suspend TransformTestScope.() -> Unit
): Unit

Runs block as a test of androidx.appstate.transform.transform.

Parameters
context: CoroutineContext = EmptyCoroutineContext

context for the test coroutine

block: suspend TransformTestScope.() -> Unit

the test code, run with a TransformTestScope receiver

Returns
Unit

the TestResult of the test