Skip to content

Commit 7568824

Browse files
Apply changes from ktLintFormat
Signed-off-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
1 parent 49ed4f4 commit 7568824

File tree

1 file changed

+36
-22
lines changed

1 file changed

+36
-22
lines changed

workflow-runtime/src/commonTest/kotlin/com/squareup/workflow1/internal/WorkStealingDispatcherTest.kt

Lines changed: 36 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,15 @@ class WorkStealingDispatcherTest {
3737
// region Unit tests calling WorkStealingDispatcher methods directly
3838

3939
@OptIn(InternalCoroutinesApi::class)
40-
@Test fun supportsDelay_whenDelegateDoes() {
40+
@Test
41+
fun supportsDelay_whenDelegateDoes() {
4142
val dispatcher = WorkStealingDispatcher(StandardTestDispatcher())
4243
assertTrue(dispatcher is Delay)
4344
}
4445

4546
@OptIn(InternalCoroutinesApi::class)
46-
@Test fun doesNotSupportDelay_whenDelegateDoesNot() {
47+
@Test
48+
fun doesNotSupportDelay_whenDelegateDoesNot() {
4749
val dispatcher = WorkStealingDispatcher(NoopContinuationInterceptor())
4850
assertFalse(dispatcher is Delay)
4951
}
@@ -515,10 +517,12 @@ class WorkStealingDispatcherTest {
515517
val exceptions = mutableListOf<Throwable>()
516518
val testDispatcher = StandardTestDispatcher()
517519
val dispatcher = WorkStealingDispatcher(testDispatcher)
518-
val scope = CoroutineScope(dispatcher + CoroutineExceptionHandler { _, throwable ->
519-
expect(3)
520-
exceptions += throwable
521-
})
520+
val scope = CoroutineScope(
521+
dispatcher + CoroutineExceptionHandler { _, throwable ->
522+
expect(3)
523+
exceptions += throwable
524+
}
525+
)
522526

523527
expect(0)
524528
val job = scope.launch {
@@ -538,10 +542,12 @@ class WorkStealingDispatcherTest {
538542
val exceptions = mutableListOf<Throwable>()
539543
val testDispatcher = StandardTestDispatcher()
540544
val dispatcher = WorkStealingDispatcher(testDispatcher)
541-
val scope = CoroutineScope(dispatcher + CoroutineExceptionHandler { _, throwable ->
542-
expect(3)
543-
exceptions += throwable
544-
})
545+
val scope = CoroutineScope(
546+
dispatcher + CoroutineExceptionHandler { _, throwable ->
547+
expect(3)
548+
exceptions += throwable
549+
}
550+
)
545551

546552
expect(0)
547553
val job = scope.launch {
@@ -561,9 +567,11 @@ class WorkStealingDispatcherTest {
561567
val exceptions = mutableListOf<Throwable>()
562568
val testDispatcher = StandardTestDispatcher()
563569
val dispatcher = WorkStealingDispatcher(testDispatcher)
564-
val scope = CoroutineScope(dispatcher + CoroutineExceptionHandler { _, throwable ->
565-
exceptions += throwable
566-
})
570+
val scope = CoroutineScope(
571+
dispatcher + CoroutineExceptionHandler { _, throwable ->
572+
exceptions += throwable
573+
}
574+
)
567575

568576
expect(0)
569577
val job = scope.launch {
@@ -588,9 +596,11 @@ class WorkStealingDispatcherTest {
588596
val exceptions = mutableListOf<Throwable>()
589597
val testDispatcher = StandardTestDispatcher()
590598
val dispatcher = WorkStealingDispatcher(testDispatcher)
591-
val scope = CoroutineScope(dispatcher + CoroutineExceptionHandler { _, throwable ->
592-
exceptions += throwable
593-
})
599+
val scope = CoroutineScope(
600+
dispatcher + CoroutineExceptionHandler { _, throwable ->
601+
exceptions += throwable
602+
}
603+
)
594604

595605
expect(0)
596606
val job = scope.launch {
@@ -615,9 +625,11 @@ class WorkStealingDispatcherTest {
615625
val exceptions = mutableListOf<Throwable>()
616626
val testDispatcher = StandardTestDispatcher()
617627
val dispatcher = WorkStealingDispatcher(testDispatcher)
618-
val scope = CoroutineScope(dispatcher + CoroutineExceptionHandler { _, throwable ->
619-
exceptions += throwable
620-
})
628+
val scope = CoroutineScope(
629+
dispatcher + CoroutineExceptionHandler { _, throwable ->
630+
exceptions += throwable
631+
}
632+
)
621633

622634
expect(0)
623635
val job = scope.launch {
@@ -641,9 +653,11 @@ class WorkStealingDispatcherTest {
641653
val exceptions = mutableListOf<Throwable>()
642654
val testDispatcher = StandardTestDispatcher()
643655
val dispatcher = WorkStealingDispatcher(testDispatcher)
644-
val scope = CoroutineScope(dispatcher + CoroutineExceptionHandler { _, throwable ->
645-
exceptions += throwable
646-
})
656+
val scope = CoroutineScope(
657+
dispatcher + CoroutineExceptionHandler { _, throwable ->
658+
exceptions += throwable
659+
}
660+
)
647661

648662
expect(0)
649663
val job = scope.launch {

0 commit comments

Comments
 (0)