# androidx.appstate.transform.testing

Common/AllAndroid/JVM

## Interfaces

|---|---|---|
| `https://developer.android.com/reference/kotlin/androidx/appstate/transform/testing/TransformTestScope` | A test scope used in tests that allows controlling and testing transforms. | Cmn |

## Top-level functions summary

|---|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/appstate/transform/testing/package-summary#transformTest(kotlin.coroutines.CoroutineContext,kotlin.coroutines.SuspendFunction1)(context: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.coroutines/-coroutine-context/index.html, block: suspend https://developer.android.com/reference/kotlin/androidx/appstate/transform/testing/TransformTestScope.() -> https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html)` Runs `https://developer.android.com/reference/kotlin/androidx/appstate/transform/testing/package-summary#transformTest(kotlin.coroutines.CoroutineContext,kotlin.coroutines.SuspendFunction1)` as a test of `https://developer.android.com/reference/kotlin/androidx/appstate/transform/package-summary#transform(kotlin.Any,kotlinx.coroutines.CoroutineScope,kotlinx.coroutines.CoroutineDispatcher,kotlin.Function1)`. | Cmn android |

## Top-level functions

### transformTest

Cmn android Artifact: [androidx.appstate.transform:transform-testing](https://developer.android.com/jetpack/androidx/releases/appstate-transform) [View Source](https://cs.android.com/search?q=file:androidx/appstate/transform/testing/TransformTest.+function:transformTest) Added in [1.0.0-alpha02](https://developer.android.com/jetpack/androidx/releases/appstate-transform#1.0.0-alpha02)

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

Runs `https://developer.android.com/reference/kotlin/androidx/appstate/transform/testing/package-summary#transformTest(kotlin.coroutines.CoroutineContext,kotlin.coroutines.SuspendFunction1)` as a test of `https://developer.android.com/reference/kotlin/androidx/appstate/transform/package-summary#transform(kotlin.Any,kotlinx.coroutines.CoroutineScope,kotlinx.coroutines.CoroutineDispatcher,kotlin.Function1)`.

| Parameters |
|---|---|
| `context: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.coroutines/-coroutine-context/index.html = EmptyCoroutineContext` | context for the test coroutine |
| `block: suspend https://developer.android.com/reference/kotlin/androidx/appstate/transform/testing/TransformTestScope.() -> https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | the test code, run with a `https://developer.android.com/reference/kotlin/androidx/appstate/transform/testing/TransformTestScope` receiver |

| Returns |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | the `https://kotlinlang.org/api/kotlinx.coroutines/kotlinx-coroutines-test/kotlinx.coroutines.test/-test-result/index.html` of the test |