Added support of external serializers to the FIR

Co-authored-by: Leonid Startsev <leonid.startsev@jetbrains.com>
Merge-request: KT-MR-7334
Merged-by: Sergey Shanshin <Sergey.Shanshin@jetbrains.com>
This commit is contained in:
Sergey.Shanshin
2022-10-13 15:25:39 +00:00
committed by Space Team
parent 817afcd4af
commit 5a1c2c56bd
28 changed files with 629 additions and 101 deletions
@@ -151,6 +151,12 @@ public class SerializationFirBlackBoxTestGenerated extends AbstractSerialization
runTest("plugins/kotlinx-serialization/testData/firMembers/enums.kt");
}
@Test
@TestMetadata("externalSerializers.kt")
public void testExternalSerializers() throws Exception {
runTest("plugins/kotlinx-serialization/testData/firMembers/externalSerializers.kt");
}
@Test
@TestMetadata("inlineClasses.kt")
public void testInlineClasses() throws Exception {
@@ -186,5 +192,11 @@ public class SerializationFirBlackBoxTestGenerated extends AbstractSerialization
public void testSerializableWith() throws Exception {
runTest("plugins/kotlinx-serialization/testData/firMembers/serializableWith.kt");
}
@Test
@TestMetadata("serializerViaCompanion.kt")
public void testSerializerViaCompanion() throws Exception {
runTest("plugins/kotlinx-serialization/testData/firMembers/serializerViaCompanion.kt");
}
}
}
@@ -174,6 +174,12 @@ public class SerializationFirDiagnosticTestGenerated extends AbstractSerializati
runTest("plugins/kotlinx-serialization/testData/firMembers/enums.kt");
}
@Test
@TestMetadata("externalSerializers.kt")
public void testExternalSerializers() throws Exception {
runTest("plugins/kotlinx-serialization/testData/firMembers/externalSerializers.kt");
}
@Test
@TestMetadata("inlineClasses.kt")
public void testInlineClasses() throws Exception {
@@ -209,5 +215,11 @@ public class SerializationFirDiagnosticTestGenerated extends AbstractSerializati
public void testSerializableWith() throws Exception {
runTest("plugins/kotlinx-serialization/testData/firMembers/serializableWith.kt");
}
@Test
@TestMetadata("serializerViaCompanion.kt")
public void testSerializerViaCompanion() throws Exception {
runTest("plugins/kotlinx-serialization/testData/firMembers/serializerViaCompanion.kt");
}
}
}