From 8e82e0d75d2829f7af214d4f89a211d2ec36dbf6 Mon Sep 17 00:00:00 2001 From: Axel Zuziak Date: Mon, 2 Nov 2020 12:09:29 +0100 Subject: [PATCH] Fixed code formatting --- .../main/kotlin/ftl/ios/xctest/FindTestNames.kt | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/test_runner/src/main/kotlin/ftl/ios/xctest/FindTestNames.kt b/test_runner/src/main/kotlin/ftl/ios/xctest/FindTestNames.kt index 50c97fdbcc..5d0b15cb08 100644 --- a/test_runner/src/main/kotlin/ftl/ios/xctest/FindTestNames.kt +++ b/test_runner/src/main/kotlin/ftl/ios/xctest/FindTestNames.kt @@ -23,10 +23,10 @@ internal fun findTestNames(xctestrun: File): XctestrunMethods = } internal fun findTestsForTestTarget(testTarget: String, xctestrun: File): List = - parseToNSDictionary(xctestrun).get(testTarget) - ?.let { (it as? NSDictionary) } - ?.let { it.findTestsForTarget(testTarget, testRoot = xctestrun.parent + "/") } - ?: throw FlankGeneralError("Test target $testTarget doesn't exist") + parseToNSDictionary(xctestrun).get(testTarget) + ?.let { (it as? NSDictionary) } + ?.let { it.findTestsForTarget(testTarget, testRoot = xctestrun.parent + "/") } + ?: throw FlankGeneralError("Test target $testTarget doesn't exist") private fun NSDictionary.findTestsForTarget(testTarget: String, testRoot: String): List = if (testTarget.isMetadata()) emptyList() @@ -35,10 +35,10 @@ private fun NSDictionary.findTestsForTarget(testTarget: String, testRoot: String ?: throw FlankGeneralError("No tests found") private fun NSDictionary.findXcTestTargets(testTarget: String): NSObject? = - get("DependentProductPaths") - ?.let { it as? NSArray }?.array - ?.first { product -> product.toString().containsTestTarget(testTarget) } - ?: throw FlankGeneralError("Test target $testTarget doesn't exist") + get("DependentProductPaths") + ?.let { it as? NSArray }?.array + ?.first { product -> product.toString().containsTestTarget(testTarget) } + ?: throw FlankGeneralError("Test target $testTarget doesn't exist") private fun String.containsTestTarget(name: String): Boolean = contains("/$name.xctest")