diff --git a/test_runner/src/main/kotlin/ftl/ios/xctest/XcTestData.kt b/test_runner/src/main/kotlin/ftl/ios/xctest/XcTestData.kt index 9d35ffa474..23cb7506eb 100644 --- a/test_runner/src/main/kotlin/ftl/ios/xctest/XcTestData.kt +++ b/test_runner/src/main/kotlin/ftl/ios/xctest/XcTestData.kt @@ -64,17 +64,14 @@ private fun IosArgs.useCustomShardingV1(dictionary: NSDictionary) = private fun IosArgs.useCustomShardingV2(dictionary: NSDictionary) = customShardingJson.isNotBlank() && dictionary.getXcTestRunVersion() == V2 -private fun IosArgs.shardsFromV1() = - createCustomSharding>(commonArgs.customShardingJson) +private fun IosArgs.shardsFromV1() = mapOf( + "" to createCustomSharding>(commonArgs.customShardingJson) .run { - mapOf( - "" to run { - map { xcMethods -> - Chunk(xcMethods.values.flatMap { it.map(::TestMethod) }) - } to this - } - ) + map { xcMethods -> + Chunk(xcMethods.values.flatMap { it.map(::TestMethod) }) + } to this } +) private fun IosArgs.shardsFromV2() = createCustomSharding>>(commonArgs.customShardingJson)