FIR IDE: Add IDE tests for sample compiler plugin
This commit is contained in:
+22
@@ -823,4 +823,26 @@ public class FirResolveCallTestGenerated extends AbstractResolveCallTest {
|
||||
runTest("analysis/analysis-api/testData/components/callResolver/resolveCall/assignments/insidePlusAssignTarget.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("analysis/analysis-api/testData/components/callResolver/resolveCall/withTestCompilerPluginEnabled")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
public class WithTestCompilerPluginEnabled {
|
||||
@Test
|
||||
public void testAllFilesPresentInWithTestCompilerPluginEnabled() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("analysis/analysis-api/testData/components/callResolver/resolveCall/withTestCompilerPluginEnabled"), Pattern.compile("^(.+)\\.kt$"), null, true);
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("customSerlializable.kt")
|
||||
public void testCustomSerlializable() throws Exception {
|
||||
runTest("analysis/analysis-api/testData/components/callResolver/resolveCall/withTestCompilerPluginEnabled/customSerlializable.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("dummyFunction.kt")
|
||||
public void testDummyFunction() throws Exception {
|
||||
runTest("analysis/analysis-api/testData/components/callResolver/resolveCall/withTestCompilerPluginEnabled/dummyFunction.kt");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
+28
@@ -57,4 +57,32 @@ public class FirMemberScopeByFqNameTestGenerated extends AbstractMemberScopeByFq
|
||||
public void testMutableList() throws Exception {
|
||||
runTest("analysis/analysis-api/testData/scopes/memberScopeByFqName/MutableList.kt");
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("analysis/analysis-api/testData/scopes/memberScopeByFqName/withTestCompilerPluginEnabled")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
public class WithTestCompilerPluginEnabled {
|
||||
@Test
|
||||
public void testAllFilesPresentInWithTestCompilerPluginEnabled() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("analysis/analysis-api/testData/scopes/memberScopeByFqName/withTestCompilerPluginEnabled"), Pattern.compile("^(.+)\\.kt$"), null, true);
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("customSerlializable.kt")
|
||||
public void testCustomSerlializable() throws Exception {
|
||||
runTest("analysis/analysis-api/testData/scopes/memberScopeByFqName/withTestCompilerPluginEnabled/customSerlializable.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("generatedCompanionWithFoo.kt")
|
||||
public void testGeneratedCompanionWithFoo() throws Exception {
|
||||
runTest("analysis/analysis-api/testData/scopes/memberScopeByFqName/withTestCompilerPluginEnabled/generatedCompanionWithFoo.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("nestedClassAndMaterializeMember.kt")
|
||||
public void testNestedClassAndMaterializeMember() throws Exception {
|
||||
runTest("analysis/analysis-api/testData/scopes/memberScopeByFqName/withTestCompilerPluginEnabled/nestedClassAndMaterializeMember.kt");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
+16
@@ -87,4 +87,20 @@ public class FirSymbolByFqNameTestGenerated extends AbstractSymbolByFqNameTest {
|
||||
public void testNestedClass() throws Exception {
|
||||
runTest("analysis/analysis-api/testData/symbols/symbolByFqName/nestedClass.kt");
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("analysis/analysis-api/testData/symbols/symbolByFqName/withTestCompilerPluginEnabled")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
public class WithTestCompilerPluginEnabled {
|
||||
@Test
|
||||
public void testAllFilesPresentInWithTestCompilerPluginEnabled() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("analysis/analysis-api/testData/symbols/symbolByFqName/withTestCompilerPluginEnabled"), Pattern.compile("^(.+)\\.kt$"), null, true);
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("myInterfaceSupertype.kt")
|
||||
public void testMyInterfaceSupertype() throws Exception {
|
||||
runTest("analysis/analysis-api/testData/symbols/symbolByFqName/withTestCompilerPluginEnabled/myInterfaceSupertype.kt");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
+16
@@ -63,4 +63,20 @@ public class FirSymbolByReferenceTestGenerated extends AbstractSymbolByReference
|
||||
public void testSamConstructor() throws Exception {
|
||||
runTest("analysis/analysis-api/testData/symbols/symbolByReference/samConstructor.kt");
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("analysis/analysis-api/testData/symbols/symbolByReference/withTestCompilerPluginEnabled")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
public class WithTestCompilerPluginEnabled {
|
||||
@Test
|
||||
public void testAllFilesPresentInWithTestCompilerPluginEnabled() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("analysis/analysis-api/testData/symbols/symbolByReference/withTestCompilerPluginEnabled"), Pattern.compile("^(.+)\\.kt$"), null, true);
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("generatedCompanionWorksAsValue.kt")
|
||||
public void testGeneratedCompanionWorksAsValue() throws Exception {
|
||||
runTest("analysis/analysis-api/testData/symbols/symbolByReference/withTestCompilerPluginEnabled/generatedCompanionWorksAsValue.kt");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user