mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[kotlin] k2: additional testdata for extract function
^KTIJ-22408 fixed GitOrigin-RevId: acb45f504c48ec60b707a1755f83b0687241046f
This commit is contained in:
committed by
intellij-monorepo-bot
parent
6e52013a66
commit
ef50d89972
+5
@@ -1429,6 +1429,11 @@ public abstract class ExtractionTestGenerated extends AbstractExtractionTest {
|
||||
runTest("testData/refactoring/extractFunction/controlFlow/outputValues/initializersAndUpdate.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("lambdaReturn.kt")
|
||||
public void testLambdaReturn() throws Exception {
|
||||
runTest("testData/refactoring/extractFunction/controlFlow/outputValues/lambdaReturn.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("nestedNonInlinableCall.kt")
|
||||
public void testNestedNonInlinableCall() throws Exception {
|
||||
runTest("testData/refactoring/extractFunction/controlFlow/outputValues/nestedNonInlinableCall.kt");
|
||||
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
val a: List<Int> = listOf(1, 2, 3).map {
|
||||
<selection>it.let {
|
||||
it
|
||||
}</selection>
|
||||
}
|
||||
|
||||
// IGNORE_K1
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
val a: List<Int> = listOf(1, 2, 3).map {
|
||||
i(it)
|
||||
}
|
||||
|
||||
private fun i(i: Int): Int = i.let {
|
||||
it
|
||||
}
|
||||
|
||||
// IGNORE_K1
|
||||
+5
@@ -650,6 +650,11 @@ public abstract class K2IntroduceFunctionTestGenerated extends AbstractK2Introdu
|
||||
runTest("../../idea/tests/testData/refactoring/extractFunction/controlFlow/outputValues/initializersAndUpdate.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("lambdaReturn.kt")
|
||||
public void testLambdaReturn() throws Exception {
|
||||
runTest("../../idea/tests/testData/refactoring/extractFunction/controlFlow/outputValues/lambdaReturn.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("nestedNonInlinableCall.kt")
|
||||
public void testNestedNonInlinableCall() throws Exception {
|
||||
runTest("../../idea/tests/testData/refactoring/extractFunction/controlFlow/outputValues/nestedNonInlinableCall.kt");
|
||||
|
||||
Reference in New Issue
Block a user