JVM_IR KT-45697 reference classes from sources before IR generation

This commit is contained in:
Dmitry Petrov
2021-03-30 17:46:21 +03:00
committed by TeamCityServer
parent 7d211d0d9a
commit 9bf7f3af04
20 changed files with 737 additions and 2 deletions
@@ -38001,6 +38001,70 @@ public class FirBlackBoxCodegenTestGenerated extends AbstractFirBlackBoxCodegenT
}
}
@Nested
@TestMetadata("compiler/testData/codegen/box/sameFileInSourceAndDependencies")
@TestDataPath("$PROJECT_ROOT")
public class SameFileInSourceAndDependencies {
@Test
public void testAllFilesPresentInSameFileInSourceAndDependencies() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/sameFileInSourceAndDependencies"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
}
@Test
@TestMetadata("classDeclaration.kt")
public void testClassDeclaration() throws Exception {
runTest("compiler/testData/codegen/box/sameFileInSourceAndDependencies/classDeclaration.kt");
}
@Test
@TestMetadata("functionDeclaration.kt")
public void testFunctionDeclaration() throws Exception {
runTest("compiler/testData/codegen/box/sameFileInSourceAndDependencies/functionDeclaration.kt");
}
@Test
@TestMetadata("jvmFieldMemberPropertyDeclaration.kt")
public void testJvmFieldMemberPropertyDeclaration() throws Exception {
runTest("compiler/testData/codegen/box/sameFileInSourceAndDependencies/jvmFieldMemberPropertyDeclaration.kt");
}
@Test
@TestMetadata("lateinitMemberPropertyDeclaration.kt")
public void testLateinitMemberPropertyDeclaration() throws Exception {
runTest("compiler/testData/codegen/box/sameFileInSourceAndDependencies/lateinitMemberPropertyDeclaration.kt");
}
@Test
@TestMetadata("memberFunctionDeclaration.kt")
public void testMemberFunctionDeclaration() throws Exception {
runTest("compiler/testData/codegen/box/sameFileInSourceAndDependencies/memberFunctionDeclaration.kt");
}
@Test
@TestMetadata("memberFunctionWithDefaultArgumentsDeclaration.kt")
public void testMemberFunctionWithDefaultArgumentsDeclaration() throws Exception {
runTest("compiler/testData/codegen/box/sameFileInSourceAndDependencies/memberFunctionWithDefaultArgumentsDeclaration.kt");
}
@Test
@TestMetadata("memberPropertyDeclaration.kt")
public void testMemberPropertyDeclaration() throws Exception {
runTest("compiler/testData/codegen/box/sameFileInSourceAndDependencies/memberPropertyDeclaration.kt");
}
@Test
@TestMetadata("nestedClassDeclaration.kt")
public void testNestedClassDeclaration() throws Exception {
runTest("compiler/testData/codegen/box/sameFileInSourceAndDependencies/nestedClassDeclaration.kt");
}
@Test
@TestMetadata("propertyDeclaration.kt")
public void testPropertyDeclaration() throws Exception {
runTest("compiler/testData/codegen/box/sameFileInSourceAndDependencies/propertyDeclaration.kt");
}
}
@Nested
@TestMetadata("compiler/testData/codegen/box/sealed")
@TestDataPath("$PROJECT_ROOT")