JVM_IR KT-45697 reference classes from sources before IR generation
This commit is contained in:
committed by
TeamCityServer
parent
7d211d0d9a
commit
9bf7f3af04
+58
@@ -30318,6 +30318,64 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/codegen/box/sameFileInSourceAndDependencies")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class SameFileInSourceAndDependencies extends AbstractLightAnalysisModeTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInSameFileInSourceAndDependencies() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/sameFileInSourceAndDependencies"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
|
||||
}
|
||||
|
||||
@TestMetadata("classDeclaration.kt")
|
||||
public void testClassDeclaration() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/sameFileInSourceAndDependencies/classDeclaration.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("functionDeclaration.kt")
|
||||
public void testFunctionDeclaration() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/sameFileInSourceAndDependencies/functionDeclaration.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("jvmFieldMemberPropertyDeclaration.kt")
|
||||
public void testJvmFieldMemberPropertyDeclaration() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/sameFileInSourceAndDependencies/jvmFieldMemberPropertyDeclaration.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("lateinitMemberPropertyDeclaration.kt")
|
||||
public void testLateinitMemberPropertyDeclaration() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/sameFileInSourceAndDependencies/lateinitMemberPropertyDeclaration.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("memberFunctionDeclaration.kt")
|
||||
public void testMemberFunctionDeclaration() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/sameFileInSourceAndDependencies/memberFunctionDeclaration.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("memberFunctionWithDefaultArgumentsDeclaration.kt")
|
||||
public void testMemberFunctionWithDefaultArgumentsDeclaration() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/sameFileInSourceAndDependencies/memberFunctionWithDefaultArgumentsDeclaration.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("memberPropertyDeclaration.kt")
|
||||
public void testMemberPropertyDeclaration() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/sameFileInSourceAndDependencies/memberPropertyDeclaration.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("nestedClassDeclaration.kt")
|
||||
public void testNestedClassDeclaration() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/sameFileInSourceAndDependencies/nestedClassDeclaration.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("propertyDeclaration.kt")
|
||||
public void testPropertyDeclaration() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/sameFileInSourceAndDependencies/propertyDeclaration.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/codegen/box/sealed")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
|
||||
Reference in New Issue
Block a user