mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[kotlin] k2 extract function: additional test data
^KTIJ-18023 fixed GitOrigin-RevId: df06795ffb8bc45017fa522b21bc339aa1abfb74
This commit is contained in:
committed by
intellij-monorepo-bot
parent
2db4d477e8
commit
8be59a8f7a
+5
@@ -830,6 +830,11 @@ public abstract class ExtractionTestGenerated extends AbstractExtractionTest {
|
||||
runTest("testData/refactoring/extractFunction/basic/classQualifier.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("commentPlacement.kt")
|
||||
public void testCommentPlacement() throws Exception {
|
||||
runTest("testData/refactoring/extractFunction/basic/commentPlacement.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("companionObjectMemberRef.kt")
|
||||
public void testCompanionObjectMemberRef() throws Exception {
|
||||
runTest("testData/refactoring/extractFunction/basic/companionObjectMemberRef.kt");
|
||||
|
||||
+10
@@ -0,0 +1,10 @@
|
||||
|
||||
fun main() {
|
||||
println()
|
||||
|
||||
<selection>// comment
|
||||
if (true) return
|
||||
println()</selection>
|
||||
}
|
||||
|
||||
// IGNORE_K1
|
||||
+13
@@ -0,0 +1,13 @@
|
||||
fun main() {
|
||||
println()
|
||||
|
||||
__dummyTestFun__()
|
||||
}
|
||||
|
||||
private fun __dummyTestFun__() {
|
||||
// comment
|
||||
if (true) return
|
||||
println()
|
||||
}
|
||||
|
||||
// IGNORE_K1
|
||||
+5
@@ -51,6 +51,11 @@ public abstract class K2IntroduceFunctionTestGenerated extends AbstractK2Introdu
|
||||
runTest("../../idea/tests/testData/refactoring/extractFunction/basic/classQualifier.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("commentPlacement.kt")
|
||||
public void testCommentPlacement() throws Exception {
|
||||
runTest("../../idea/tests/testData/refactoring/extractFunction/basic/commentPlacement.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("companionObjectMemberRef.kt")
|
||||
public void testCompanionObjectMemberRef() throws Exception {
|
||||
runTest("../../idea/tests/testData/refactoring/extractFunction/basic/companionObjectMemberRef.kt");
|
||||
|
||||
Reference in New Issue
Block a user