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-15603 fixed GitOrigin-RevId: 21e1f0de0b6b495c0002918ed3a6da16a628395e
This commit is contained in:
committed by
intellij-monorepo-bot
parent
d6bb6c080d
commit
fe6f5c8da5
+5
@@ -2329,6 +2329,11 @@ public abstract class ExtractionTestGenerated extends AbstractExtractionTest {
|
||||
public void testQualifiedThisAsArgument() throws Exception {
|
||||
runTest("testData/refactoring/extractFunction/parameters/extractThis/qualifiedThisAsArgument.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("unusedReceiver.kt")
|
||||
public void testUnusedReceiver() throws Exception {
|
||||
runTest("testData/refactoring/extractFunction/parameters/extractThis/unusedReceiver.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
class Foo(val s: String) {
|
||||
fun bar(): String {
|
||||
<selection>return s</selection>
|
||||
}
|
||||
}
|
||||
|
||||
// IGNORE_K1
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
class Foo(val s: String) {
|
||||
fun bar(): String {
|
||||
return string()
|
||||
}
|
||||
|
||||
private fun string(): String {
|
||||
return s
|
||||
}
|
||||
}
|
||||
|
||||
// IGNORE_K1
|
||||
+5
@@ -1487,6 +1487,11 @@ public abstract class K2IntroduceFunctionTestGenerated extends AbstractK2Introdu
|
||||
public void testQualifiedThisAsArgument() throws Exception {
|
||||
runTest("../../idea/tests/testData/refactoring/extractFunction/parameters/extractThis/qualifiedThisAsArgument.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("unusedReceiver.kt")
|
||||
public void testUnusedReceiver() throws Exception {
|
||||
runTest("../../idea/tests/testData/refactoring/extractFunction/parameters/extractThis/unusedReceiver.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
|
||||
Reference in New Issue
Block a user