Skip to content

Commit 6452f7f

Browse files
rjrjrgithub-actions[bot]
authored andcommitted
Apply changes from ktLintFormat
Signed-off-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
1 parent 6a63cd8 commit 6452f7f

File tree

3 files changed

+27
-28
lines changed

3 files changed

+27
-28
lines changed

workflow-testing/src/main/java/com/squareup/workflow1/testing/RenderTester.kt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -72,10 +72,10 @@ public fun <PropsT, OutputT, RenderingT> SessionWorkflow<PropsT, *, OutputT, Ren
7272
*/
7373
public fun <PropsT, StateT, OutputT, RenderingT>
7474
StatefulWorkflow<PropsT, StateT, OutputT, RenderingT>.testRender(
75-
props: PropsT,
76-
initialState: StateT,
77-
runtimeConfig: RuntimeConfig? = null
78-
): RenderTester<PropsT, StateT, OutputT, RenderingT> =
75+
props: PropsT,
76+
initialState: StateT,
77+
runtimeConfig: RuntimeConfig? = null
78+
): RenderTester<PropsT, StateT, OutputT, RenderingT> =
7979
RealRenderTester(
8080
workflow = this,
8181
props = props,

workflow-testing/src/main/java/com/squareup/workflow1/testing/WorkflowTestRuntime.kt

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -176,11 +176,11 @@ public class WorkflowTestRuntime<PropsT, OutputT, RenderingT> @TestOnly internal
176176
@TestOnly
177177
public 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
191191
public 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
206206
public 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
227227
public 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
240240
public 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

workflow-testing/src/test/java/com/squareup/workflow1/StatefulWorkflowSafeEventHandlerTest.kt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,4 +265,3 @@ class StatefulWorkflowSafeEventHandlerTest {
265265
assertEquals("name expected: Able got: Baker", failedCast)
266266
}
267267
}
268-

0 commit comments

Comments
 (0)