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-10882 fixed GitOrigin-RevId: 70235fef1f911c4da79ac93f684c6d459756c7e4
This commit is contained in:
committed by
intellij-monorepo-bot
parent
be5bf8b03b
commit
2db4d477e8
+5
@@ -1080,6 +1080,11 @@ public abstract class ExtractionTestGenerated extends AbstractExtractionTest {
|
||||
runTest("testData/refactoring/extractFunction/basic/topLevelValUnderSmartCast.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("typedFunctionLiteral.kt")
|
||||
public void testTypedFunctionLiteral() throws Exception {
|
||||
runTest("testData/refactoring/extractFunction/basic/typedFunctionLiteral.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("unnecessaryNullabilityAnnotation.kt")
|
||||
public void testUnnecessaryNullabilityAnnotation() throws Exception {
|
||||
runTest("testData/refactoring/extractFunction/basic/unnecessaryNullabilityAnnotation.kt");
|
||||
|
||||
+10
@@ -0,0 +1,10 @@
|
||||
class Bar
|
||||
|
||||
class Foo {
|
||||
fun bar(block: (Bar) -> Int) {}
|
||||
init {
|
||||
bar(<selection>{ bar -> 1 }</selection>)
|
||||
}
|
||||
}
|
||||
|
||||
// IGNORE_K1
|
||||
+12
@@ -0,0 +1,12 @@
|
||||
class Bar
|
||||
|
||||
class Foo {
|
||||
fun bar(block: (Bar) -> Int) {}
|
||||
init {
|
||||
bar(function())
|
||||
}
|
||||
|
||||
private fun function(): (Bar) -> Int = { bar -> 1 }
|
||||
}
|
||||
|
||||
// IGNORE_K1
|
||||
+5
@@ -301,6 +301,11 @@ public abstract class K2IntroduceFunctionTestGenerated extends AbstractK2Introdu
|
||||
runTest("../../idea/tests/testData/refactoring/extractFunction/basic/topLevelValUnderSmartCast.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("typedFunctionLiteral.kt")
|
||||
public void testTypedFunctionLiteral() throws Exception {
|
||||
runTest("../../idea/tests/testData/refactoring/extractFunction/basic/typedFunctionLiteral.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("unnecessaryNullabilityAnnotation.kt")
|
||||
public void testUnnecessaryNullabilityAnnotation() throws Exception {
|
||||
runTest("../../idea/tests/testData/refactoring/extractFunction/basic/unnecessaryNullabilityAnnotation.kt");
|
||||
|
||||
Reference in New Issue
Block a user