[FE] Add tests for 'containingClassForStaticMemberAttr'

This commit is contained in:
Yan Zhulanow
2022-11-26 00:37:02 +09:00
committed by Space Team
parent 4489ccf864
commit 10fc86ef92
28 changed files with 604 additions and 50 deletions
@@ -23456,6 +23456,52 @@ public class DiagnosisCompilerTestFE10TestdataTestGenerated extends AbstractDiag
}
}
@Nested
@TestMetadata("compiler/testData/diagnostics/tests/override/derivedClasses")
@TestDataPath("$PROJECT_ROOT")
public class DerivedClasses {
@Test
public void testAllFilesPresentInDerivedClasses() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/diagnostics/tests/override/derivedClasses"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
@Test
@TestMetadata("Constructor.kt")
public void testConstructor() throws Exception {
runTest("compiler/testData/diagnostics/tests/override/derivedClasses/Constructor.kt");
}
@Test
@TestMetadata("DelegatedConstructor.kt")
public void testDelegatedConstructor() throws Exception {
runTest("compiler/testData/diagnostics/tests/override/derivedClasses/DelegatedConstructor.kt");
}
@Test
@TestMetadata("EnumValues.kt")
public void testEnumValues() throws Exception {
runTest("compiler/testData/diagnostics/tests/override/derivedClasses/EnumValues.kt");
}
@Test
@TestMetadata("Instance.kt")
public void testInstance() throws Exception {
runTest("compiler/testData/diagnostics/tests/override/derivedClasses/Instance.kt");
}
@Test
@TestMetadata("StaticFieldFromJava.kt")
public void testStaticFieldFromJava() throws Exception {
runTest("compiler/testData/diagnostics/tests/override/derivedClasses/StaticFieldFromJava.kt");
}
@Test
@TestMetadata("StaticMethodFromJava.kt")
public void testStaticMethodFromJava() throws Exception {
runTest("compiler/testData/diagnostics/tests/override/derivedClasses/StaticMethodFromJava.kt");
}
}
@Nested
@TestMetadata("compiler/testData/diagnostics/tests/override/parameterNames")
@TestDataPath("$PROJECT_ROOT")