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-23318 fixed GitOrigin-RevId: 7e8b8a21e1a5051ae8ab7b7b07ec1ef3370d018e
This commit is contained in:
committed by
intellij-monorepo-bot
parent
bcf544ad48
commit
be5bf8b03b
+5
@@ -2681,6 +2681,11 @@ public abstract class ExtractionTestGenerated extends AbstractExtractionTest {
|
||||
runTest("testData/refactoring/extractFunction/stringTemplates/multipleEntriesWithSuffix.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("propertyFromReceiver.kt")
|
||||
public void testPropertyFromReceiver() throws Exception {
|
||||
runTest("testData/refactoring/extractFunction/stringTemplates/propertyFromReceiver.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("rawTemplateWithSubstring.kt")
|
||||
public void testRawTemplateWithSubstring() throws Exception {
|
||||
runTest("testData/refactoring/extractFunction/stringTemplates/rawTemplateWithSubstring.kt");
|
||||
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
import kotlin.reflect.KClass
|
||||
internal fun KClass<*>.serializerNotRegistered(): Nothing {
|
||||
throw IllegalStateException(
|
||||
<selection>"Serializer for class '${simpleName}' is not found.\n" +
|
||||
"Mark the class as @Serializable or provide the serializer explicitly."</selection>
|
||||
)
|
||||
}
|
||||
|
||||
// IGNORE_K1
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
import kotlin.reflect.KClass
|
||||
internal fun KClass<*>.serializerNotRegistered(): Nothing {
|
||||
throw IllegalStateException(
|
||||
string()
|
||||
)
|
||||
}
|
||||
|
||||
private fun KClass<*>.string(): String = "Serializer for class '${simpleName}' is not found.\n" +
|
||||
"Mark the class as @Serializable or provide the serializer explicitly."
|
||||
|
||||
// IGNORE_K1
|
||||
+5
@@ -1816,6 +1816,11 @@ public abstract class K2IntroduceFunctionTestGenerated extends AbstractK2Introdu
|
||||
runTest("../../idea/tests/testData/refactoring/extractFunction/stringTemplates/multipleEntriesWithSuffix.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("propertyFromReceiver.kt")
|
||||
public void testPropertyFromReceiver() throws Exception {
|
||||
runTest("../../idea/tests/testData/refactoring/extractFunction/stringTemplates/propertyFromReceiver.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("rawTemplateWithSubstring.kt")
|
||||
public void testRawTemplateWithSubstring() throws Exception {
|
||||
runTest("../../idea/tests/testData/refactoring/extractFunction/stringTemplates/rawTemplateWithSubstring.kt");
|
||||
|
||||
Reference in New Issue
Block a user