@@ -176,11 +176,11 @@ public class WorkflowTestRuntime<PropsT, OutputT, RenderingT> @TestOnly internal
176176@TestOnly
177177public fun <T , PropsT , OutputT , RenderingT >
178178 Workflow <PropsT , OutputT , RenderingT >.launchForTestingFromStartWith (
179- props : PropsT ,
180- testParams : WorkflowTestParams <Nothing > = WorkflowTestParams (),
181- context : CoroutineContext = EmptyCoroutineContext ,
182- block : WorkflowTestRuntime <PropsT , OutputT , RenderingT >.() -> T
183- ): T = asStatefulWorkflow().launchForTestingWith(props, testParams, context, block)
179+ props : PropsT ,
180+ testParams : WorkflowTestParams <Nothing > = WorkflowTestParams (),
181+ context : CoroutineContext = EmptyCoroutineContext ,
182+ block : WorkflowTestRuntime <PropsT , OutputT , RenderingT >.() -> T
183+ ): T = asStatefulWorkflow().launchForTestingWith(props, testParams, context, block)
184184
185185/* *
186186 * Creates a [WorkflowTestRuntime] to run this workflow for unit testing.
@@ -190,10 +190,10 @@ public fun <T, PropsT, OutputT, RenderingT>
190190@TestOnly
191191public fun <T , OutputT , RenderingT >
192192 Workflow <Unit , OutputT , RenderingT >.launchForTestingFromStartWith (
193- testParams : WorkflowTestParams <Nothing > = WorkflowTestParams (),
194- context : CoroutineContext = EmptyCoroutineContext ,
195- block : WorkflowTestRuntime <Unit , OutputT , RenderingT >.() -> T
196- ): T = launchForTestingFromStartWith(Unit , testParams, context, block)
193+ testParams : WorkflowTestParams <Nothing > = WorkflowTestParams (),
194+ context : CoroutineContext = EmptyCoroutineContext ,
195+ block : WorkflowTestRuntime <Unit , OutputT , RenderingT >.() -> T
196+ ): T = launchForTestingFromStartWith(Unit , testParams, context, block)
197197
198198/* *
199199 * Creates a [WorkflowTestRuntime] to run this workflow for unit testing.
@@ -205,11 +205,11 @@ public fun <T, OutputT, RenderingT>
205205@TestOnly
206206public fun <T , PropsT , StateT , OutputT , RenderingT >
207207 StatefulWorkflow <PropsT , StateT , OutputT , RenderingT >.launchForTestingFromStateWith (
208- props : PropsT ,
209- initialState : StateT ,
210- context : CoroutineContext = EmptyCoroutineContext ,
211- block : WorkflowTestRuntime <PropsT , OutputT , RenderingT >.() -> T
212- ): T = launchForTestingWith(
208+ props : PropsT ,
209+ initialState : StateT ,
210+ context : CoroutineContext = EmptyCoroutineContext ,
211+ block : WorkflowTestRuntime <PropsT , OutputT , RenderingT >.() -> T
212+ ): T = launchForTestingWith(
213213 props,
214214 WorkflowTestParams (StartFromState (initialState)),
215215 context,
@@ -226,10 +226,10 @@ public fun <T, PropsT, StateT, OutputT, RenderingT>
226226@TestOnly
227227public fun <StateT , OutputT , RenderingT >
228228 StatefulWorkflow <Unit , StateT , OutputT , RenderingT >.launchForTestingFromStateWith (
229- initialState : StateT ,
230- context : CoroutineContext = EmptyCoroutineContext ,
231- block : WorkflowTestRuntime <Unit , OutputT , RenderingT >.() -> Unit
232- ): Unit = launchForTestingFromStateWith(Unit , initialState, context, block)
229+ initialState : StateT ,
230+ context : CoroutineContext = EmptyCoroutineContext ,
231+ block : WorkflowTestRuntime <Unit , OutputT , RenderingT >.() -> Unit
232+ ): Unit = launchForTestingFromStateWith(Unit , initialState, context, block)
233233
234234/* *
235235 * Creates a [WorkflowTestRuntime] to run this workflow for unit testing.
@@ -239,11 +239,11 @@ public fun <StateT, OutputT, RenderingT>
239239@TestOnly
240240public fun <T , PropsT , StateT , OutputT , RenderingT >
241241 StatefulWorkflow <PropsT , StateT , OutputT , RenderingT >.launchForTestingWith (
242- props : PropsT ,
243- testParams : WorkflowTestParams <StateT > = WorkflowTestParams (),
244- context : CoroutineContext = EmptyCoroutineContext ,
245- block : WorkflowTestRuntime <PropsT , OutputT , RenderingT >.() -> T
246- ): T {
242+ props : PropsT ,
243+ testParams : WorkflowTestParams <StateT > = WorkflowTestParams (),
244+ context : CoroutineContext = EmptyCoroutineContext ,
245+ block : WorkflowTestRuntime <PropsT , OutputT , RenderingT >.() -> T
246+ ): T {
247247 val propsFlow = MutableStateFlow (props)
248248
249249 // Any exceptions that are thrown from a launch will be reported to the coroutine's uncaught
0 commit comments