Move test about Enum.entries to a more specific folder
This commit is contained in:
committed by
Space Team
parent
5b9a7c4976
commit
695a538529
+16
-6
@@ -10022,12 +10022,6 @@ public class DiagnosisCompilerTestFE10TestdataTestGenerated extends AbstractDiag
|
||||
runTest("compiler/testData/diagnostics/tests/enum/entryShouldBeOfEnumType.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("enumEntriesAmbiguity.kt")
|
||||
public void testEnumEntriesAmbiguity() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/enum/enumEntriesAmbiguity.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("enumEntryCannotHaveClassObject.kt")
|
||||
public void testEnumEntryCannotHaveClassObject() throws Exception {
|
||||
@@ -10316,6 +10310,22 @@ public class DiagnosisCompilerTestFE10TestdataTestGenerated extends AbstractDiag
|
||||
runTest("compiler/testData/diagnostics/tests/enum/wrongUnitializedEnumCompanion.kt");
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("compiler/testData/diagnostics/tests/enum/entries")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
public class Entries {
|
||||
@Test
|
||||
public void testAllFilesPresentInEntries() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/diagnostics/tests/enum/entries"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("enumEntriesAmbiguity.kt")
|
||||
public void testEnumEntriesAmbiguity() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/enum/entries/enumEntriesAmbiguity.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("compiler/testData/diagnostics/tests/enum/inner")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
|
||||
+16
-6
@@ -10028,12 +10028,6 @@ public class FirOldFrontendDiagnosticsTestGenerated extends AbstractFirDiagnosti
|
||||
runTest("compiler/testData/diagnostics/tests/enum/entryShouldBeOfEnumType.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("enumEntriesAmbiguity.kt")
|
||||
public void testEnumEntriesAmbiguity() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/enum/enumEntriesAmbiguity.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("enumEntryCannotHaveClassObject.kt")
|
||||
public void testEnumEntryCannotHaveClassObject() throws Exception {
|
||||
@@ -10322,6 +10316,22 @@ public class FirOldFrontendDiagnosticsTestGenerated extends AbstractFirDiagnosti
|
||||
runTest("compiler/testData/diagnostics/tests/enum/wrongUnitializedEnumCompanion.kt");
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("compiler/testData/diagnostics/tests/enum/entries")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
public class Entries {
|
||||
@Test
|
||||
public void testAllFilesPresentInEntries() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/diagnostics/tests/enum/entries"), Pattern.compile("^(.*)\\.kts?$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("enumEntriesAmbiguity.kt")
|
||||
public void testEnumEntriesAmbiguity() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/enum/entries/enumEntriesAmbiguity.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("compiler/testData/diagnostics/tests/enum/inner")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
|
||||
+16
-6
@@ -10022,12 +10022,6 @@ public class FirOldFrontendDiagnosticsWithLightTreeTestGenerated extends Abstrac
|
||||
runTest("compiler/testData/diagnostics/tests/enum/entryShouldBeOfEnumType.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("enumEntriesAmbiguity.kt")
|
||||
public void testEnumEntriesAmbiguity() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/enum/enumEntriesAmbiguity.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("enumEntryCannotHaveClassObject.kt")
|
||||
public void testEnumEntryCannotHaveClassObject() throws Exception {
|
||||
@@ -10316,6 +10310,22 @@ public class FirOldFrontendDiagnosticsWithLightTreeTestGenerated extends Abstrac
|
||||
runTest("compiler/testData/diagnostics/tests/enum/wrongUnitializedEnumCompanion.kt");
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("compiler/testData/diagnostics/tests/enum/entries")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
public class Entries {
|
||||
@Test
|
||||
public void testAllFilesPresentInEntries() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/diagnostics/tests/enum/entries"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("enumEntriesAmbiguity.kt")
|
||||
public void testEnumEntriesAmbiguity() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/enum/entries/enumEntriesAmbiguity.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("compiler/testData/diagnostics/tests/enum/inner")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
|
||||
Generated
+16
-6
@@ -10028,12 +10028,6 @@ public class DiagnosticTestGenerated extends AbstractDiagnosticTest {
|
||||
runTest("compiler/testData/diagnostics/tests/enum/entryShouldBeOfEnumType.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("enumEntriesAmbiguity.kt")
|
||||
public void testEnumEntriesAmbiguity() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/enum/enumEntriesAmbiguity.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("enumEntryCannotHaveClassObject.kt")
|
||||
public void testEnumEntryCannotHaveClassObject() throws Exception {
|
||||
@@ -10322,6 +10316,22 @@ public class DiagnosticTestGenerated extends AbstractDiagnosticTest {
|
||||
runTest("compiler/testData/diagnostics/tests/enum/wrongUnitializedEnumCompanion.kt");
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("compiler/testData/diagnostics/tests/enum/entries")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
public class Entries {
|
||||
@Test
|
||||
public void testAllFilesPresentInEntries() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/diagnostics/tests/enum/entries"), Pattern.compile("^(.*)\\.kts?$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("enumEntriesAmbiguity.kt")
|
||||
public void testEnumEntriesAmbiguity() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/enum/entries/enumEntriesAmbiguity.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("compiler/testData/diagnostics/tests/enum/inner")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
|
||||
Reference in New Issue
Block a user