[test] Add missing KMP IR text tests to "K1-only" and "K2-only" groups

^KT-60390
This commit is contained in:
Dmitriy Dolovov
2023-12-08 18:58:05 +01:00
committed by Space Team
parent 0b3d64719f
commit 44d57c7751
22 changed files with 1295 additions and 323 deletions
@@ -941,46 +941,84 @@ public class ClassicNativeIrTextTestGenerated extends AbstractClassicNativeIrTex
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/ir/irText/declarations/multiplatform"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true);
}
@Test
@TestMetadata("K1_expectClassInherited.kt")
public void testK1_expectClassInherited() throws Exception {
runTest("compiler/testData/ir/irText/declarations/multiplatform/K1_expectClassInherited.kt");
@Nested
@TestMetadata("compiler/testData/ir/irText/declarations/multiplatform/k1")
@TestDataPath("$PROJECT_ROOT")
public class K1 {
@Test
public void testAllFilesPresentInK1() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/ir/irText/declarations/multiplatform/k1"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true);
}
@Test
@TestMetadata("expectClassInherited.kt")
public void testExpectClassInherited() throws Exception {
runTest("compiler/testData/ir/irText/declarations/multiplatform/k1/expectClassInherited.kt");
}
@Test
@TestMetadata("expectIntersectionOverride.kt")
public void testExpectIntersectionOverride() throws Exception {
runTest("compiler/testData/ir/irText/declarations/multiplatform/k1/expectIntersectionOverride.kt");
}
@Test
@TestMetadata("expectMemberInNotExpectClass.kt")
public void testExpectMemberInNotExpectClass() throws Exception {
runTest("compiler/testData/ir/irText/declarations/multiplatform/k1/expectMemberInNotExpectClass.kt");
}
@Test
@TestMetadata("expectedEnumClass.kt")
public void testExpectedEnumClass() throws Exception {
runTest("compiler/testData/ir/irText/declarations/multiplatform/k1/expectedEnumClass.kt");
}
@Test
@TestMetadata("expectedSealedClass.kt")
public void testExpectedSealedClass() throws Exception {
runTest("compiler/testData/ir/irText/declarations/multiplatform/k1/expectedSealedClass.kt");
}
}
@Test
@TestMetadata("K1_expectMemberInNotExpectClass.kt")
public void testK1_expectMemberInNotExpectClass() throws Exception {
runTest("compiler/testData/ir/irText/declarations/multiplatform/K1_expectMemberInNotExpectClass.kt");
}
@Nested
@TestMetadata("compiler/testData/ir/irText/declarations/multiplatform/k2")
@TestDataPath("$PROJECT_ROOT")
public class K2 {
@Test
public void testAllFilesPresentInK2() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/ir/irText/declarations/multiplatform/k2"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true);
}
@Test
@TestMetadata("K1_expectedEnumClass.kt")
public void testK1_expectedEnumClass() throws Exception {
runTest("compiler/testData/ir/irText/declarations/multiplatform/K1_expectedEnumClass.kt");
}
@Test
@TestMetadata("expectClassInherited.kt")
public void testExpectClassInherited() throws Exception {
runTest("compiler/testData/ir/irText/declarations/multiplatform/k2/expectClassInherited.kt");
}
@Test
@TestMetadata("K1_expectedSealedClass.kt")
public void testK1_expectedSealedClass() throws Exception {
runTest("compiler/testData/ir/irText/declarations/multiplatform/K1_expectedSealedClass.kt");
}
@Test
@TestMetadata("expectIntersectionOverride.kt")
public void testExpectIntersectionOverride() throws Exception {
runTest("compiler/testData/ir/irText/declarations/multiplatform/k2/expectIntersectionOverride.kt");
}
@Test
@TestMetadata("K2_expectIntersectionOverride.kt")
public void testK2_expectIntersectionOverride() throws Exception {
runTest("compiler/testData/ir/irText/declarations/multiplatform/K2_expectIntersectionOverride.kt");
}
@Test
@TestMetadata("expectMemberInNotExpectClass.kt")
public void testExpectMemberInNotExpectClass() throws Exception {
runTest("compiler/testData/ir/irText/declarations/multiplatform/k2/expectMemberInNotExpectClass.kt");
}
@Test
@TestMetadata("K2_expectMemberInNotExpectClass.kt")
public void testK2_expectMemberInNotExpectClass() throws Exception {
runTest("compiler/testData/ir/irText/declarations/multiplatform/K2_expectMemberInNotExpectClass.kt");
}
@Test
@TestMetadata("expectedEnumClass.kt")
public void testExpectedEnumClass() throws Exception {
runTest("compiler/testData/ir/irText/declarations/multiplatform/k2/expectedEnumClass.kt");
}
@Test
@TestMetadata("K2_expectedEnumClass.kt")
public void testK2_expectedEnumClass() throws Exception {
runTest("compiler/testData/ir/irText/declarations/multiplatform/K2_expectedEnumClass.kt");
@Test
@TestMetadata("expectedSealedClass.kt")
public void testExpectedSealedClass() throws Exception {
runTest("compiler/testData/ir/irText/declarations/multiplatform/k2/expectedSealedClass.kt");
}
}
}
@@ -941,46 +941,84 @@ public class FirLightTreeNativeIrTextTestGenerated extends AbstractFirLightTreeN
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/ir/irText/declarations/multiplatform"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true);
}
@Test
@TestMetadata("K1_expectClassInherited.kt")
public void testK1_expectClassInherited() throws Exception {
runTest("compiler/testData/ir/irText/declarations/multiplatform/K1_expectClassInherited.kt");
@Nested
@TestMetadata("compiler/testData/ir/irText/declarations/multiplatform/k1")
@TestDataPath("$PROJECT_ROOT")
public class K1 {
@Test
public void testAllFilesPresentInK1() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/ir/irText/declarations/multiplatform/k1"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true);
}
@Test
@TestMetadata("expectClassInherited.kt")
public void testExpectClassInherited() throws Exception {
runTest("compiler/testData/ir/irText/declarations/multiplatform/k1/expectClassInherited.kt");
}
@Test
@TestMetadata("expectIntersectionOverride.kt")
public void testExpectIntersectionOverride() throws Exception {
runTest("compiler/testData/ir/irText/declarations/multiplatform/k1/expectIntersectionOverride.kt");
}
@Test
@TestMetadata("expectMemberInNotExpectClass.kt")
public void testExpectMemberInNotExpectClass() throws Exception {
runTest("compiler/testData/ir/irText/declarations/multiplatform/k1/expectMemberInNotExpectClass.kt");
}
@Test
@TestMetadata("expectedEnumClass.kt")
public void testExpectedEnumClass() throws Exception {
runTest("compiler/testData/ir/irText/declarations/multiplatform/k1/expectedEnumClass.kt");
}
@Test
@TestMetadata("expectedSealedClass.kt")
public void testExpectedSealedClass() throws Exception {
runTest("compiler/testData/ir/irText/declarations/multiplatform/k1/expectedSealedClass.kt");
}
}
@Test
@TestMetadata("K1_expectMemberInNotExpectClass.kt")
public void testK1_expectMemberInNotExpectClass() throws Exception {
runTest("compiler/testData/ir/irText/declarations/multiplatform/K1_expectMemberInNotExpectClass.kt");
}
@Nested
@TestMetadata("compiler/testData/ir/irText/declarations/multiplatform/k2")
@TestDataPath("$PROJECT_ROOT")
public class K2 {
@Test
public void testAllFilesPresentInK2() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/ir/irText/declarations/multiplatform/k2"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true);
}
@Test
@TestMetadata("K1_expectedEnumClass.kt")
public void testK1_expectedEnumClass() throws Exception {
runTest("compiler/testData/ir/irText/declarations/multiplatform/K1_expectedEnumClass.kt");
}
@Test
@TestMetadata("expectClassInherited.kt")
public void testExpectClassInherited() throws Exception {
runTest("compiler/testData/ir/irText/declarations/multiplatform/k2/expectClassInherited.kt");
}
@Test
@TestMetadata("K1_expectedSealedClass.kt")
public void testK1_expectedSealedClass() throws Exception {
runTest("compiler/testData/ir/irText/declarations/multiplatform/K1_expectedSealedClass.kt");
}
@Test
@TestMetadata("expectIntersectionOverride.kt")
public void testExpectIntersectionOverride() throws Exception {
runTest("compiler/testData/ir/irText/declarations/multiplatform/k2/expectIntersectionOverride.kt");
}
@Test
@TestMetadata("K2_expectIntersectionOverride.kt")
public void testK2_expectIntersectionOverride() throws Exception {
runTest("compiler/testData/ir/irText/declarations/multiplatform/K2_expectIntersectionOverride.kt");
}
@Test
@TestMetadata("expectMemberInNotExpectClass.kt")
public void testExpectMemberInNotExpectClass() throws Exception {
runTest("compiler/testData/ir/irText/declarations/multiplatform/k2/expectMemberInNotExpectClass.kt");
}
@Test
@TestMetadata("K2_expectMemberInNotExpectClass.kt")
public void testK2_expectMemberInNotExpectClass() throws Exception {
runTest("compiler/testData/ir/irText/declarations/multiplatform/K2_expectMemberInNotExpectClass.kt");
}
@Test
@TestMetadata("expectedEnumClass.kt")
public void testExpectedEnumClass() throws Exception {
runTest("compiler/testData/ir/irText/declarations/multiplatform/k2/expectedEnumClass.kt");
}
@Test
@TestMetadata("K2_expectedEnumClass.kt")
public void testK2_expectedEnumClass() throws Exception {
runTest("compiler/testData/ir/irText/declarations/multiplatform/K2_expectedEnumClass.kt");
@Test
@TestMetadata("expectedSealedClass.kt")
public void testExpectedSealedClass() throws Exception {
runTest("compiler/testData/ir/irText/declarations/multiplatform/k2/expectedSealedClass.kt");
}
}
}
@@ -941,46 +941,84 @@ public class FirPsiNativeIrTextTestGenerated extends AbstractFirPsiNativeIrTextT
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/ir/irText/declarations/multiplatform"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true);
}
@Test
@TestMetadata("K1_expectClassInherited.kt")
public void testK1_expectClassInherited() throws Exception {
runTest("compiler/testData/ir/irText/declarations/multiplatform/K1_expectClassInherited.kt");
@Nested
@TestMetadata("compiler/testData/ir/irText/declarations/multiplatform/k1")
@TestDataPath("$PROJECT_ROOT")
public class K1 {
@Test
public void testAllFilesPresentInK1() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/ir/irText/declarations/multiplatform/k1"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true);
}
@Test
@TestMetadata("expectClassInherited.kt")
public void testExpectClassInherited() throws Exception {
runTest("compiler/testData/ir/irText/declarations/multiplatform/k1/expectClassInherited.kt");
}
@Test
@TestMetadata("expectIntersectionOverride.kt")
public void testExpectIntersectionOverride() throws Exception {
runTest("compiler/testData/ir/irText/declarations/multiplatform/k1/expectIntersectionOverride.kt");
}
@Test
@TestMetadata("expectMemberInNotExpectClass.kt")
public void testExpectMemberInNotExpectClass() throws Exception {
runTest("compiler/testData/ir/irText/declarations/multiplatform/k1/expectMemberInNotExpectClass.kt");
}
@Test
@TestMetadata("expectedEnumClass.kt")
public void testExpectedEnumClass() throws Exception {
runTest("compiler/testData/ir/irText/declarations/multiplatform/k1/expectedEnumClass.kt");
}
@Test
@TestMetadata("expectedSealedClass.kt")
public void testExpectedSealedClass() throws Exception {
runTest("compiler/testData/ir/irText/declarations/multiplatform/k1/expectedSealedClass.kt");
}
}
@Test
@TestMetadata("K1_expectMemberInNotExpectClass.kt")
public void testK1_expectMemberInNotExpectClass() throws Exception {
runTest("compiler/testData/ir/irText/declarations/multiplatform/K1_expectMemberInNotExpectClass.kt");
}
@Nested
@TestMetadata("compiler/testData/ir/irText/declarations/multiplatform/k2")
@TestDataPath("$PROJECT_ROOT")
public class K2 {
@Test
public void testAllFilesPresentInK2() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/ir/irText/declarations/multiplatform/k2"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true);
}
@Test
@TestMetadata("K1_expectedEnumClass.kt")
public void testK1_expectedEnumClass() throws Exception {
runTest("compiler/testData/ir/irText/declarations/multiplatform/K1_expectedEnumClass.kt");
}
@Test
@TestMetadata("expectClassInherited.kt")
public void testExpectClassInherited() throws Exception {
runTest("compiler/testData/ir/irText/declarations/multiplatform/k2/expectClassInherited.kt");
}
@Test
@TestMetadata("K1_expectedSealedClass.kt")
public void testK1_expectedSealedClass() throws Exception {
runTest("compiler/testData/ir/irText/declarations/multiplatform/K1_expectedSealedClass.kt");
}
@Test
@TestMetadata("expectIntersectionOverride.kt")
public void testExpectIntersectionOverride() throws Exception {
runTest("compiler/testData/ir/irText/declarations/multiplatform/k2/expectIntersectionOverride.kt");
}
@Test
@TestMetadata("K2_expectIntersectionOverride.kt")
public void testK2_expectIntersectionOverride() throws Exception {
runTest("compiler/testData/ir/irText/declarations/multiplatform/K2_expectIntersectionOverride.kt");
}
@Test
@TestMetadata("expectMemberInNotExpectClass.kt")
public void testExpectMemberInNotExpectClass() throws Exception {
runTest("compiler/testData/ir/irText/declarations/multiplatform/k2/expectMemberInNotExpectClass.kt");
}
@Test
@TestMetadata("K2_expectMemberInNotExpectClass.kt")
public void testK2_expectMemberInNotExpectClass() throws Exception {
runTest("compiler/testData/ir/irText/declarations/multiplatform/K2_expectMemberInNotExpectClass.kt");
}
@Test
@TestMetadata("expectedEnumClass.kt")
public void testExpectedEnumClass() throws Exception {
runTest("compiler/testData/ir/irText/declarations/multiplatform/k2/expectedEnumClass.kt");
}
@Test
@TestMetadata("K2_expectedEnumClass.kt")
public void testK2_expectedEnumClass() throws Exception {
runTest("compiler/testData/ir/irText/declarations/multiplatform/K2_expectedEnumClass.kt");
@Test
@TestMetadata("expectedSealedClass.kt")
public void testExpectedSealedClass() throws Exception {
runTest("compiler/testData/ir/irText/declarations/multiplatform/k2/expectedSealedClass.kt");
}
}
}