KT-64205 [AA] Rearrange testData for reference shortener

Get rid of `referenceShortener/referenceShortener` nested directory
This commit is contained in:
Roman Golyshev
2023-12-13 17:18:01 +02:00
committed by teamcity
parent 21b7405435
commit 146d93a044
355 changed files with 394 additions and 394 deletions
@@ -25,7 +25,7 @@ import java.util.regex.Pattern;
/** This class is generated by {@link org.jetbrains.kotlin.generators.tests.analysis.api.GenerateAnalysisApiTestsKt}. DO NOT MODIFY MANUALLY */ /** This class is generated by {@link org.jetbrains.kotlin.generators.tests.analysis.api.GenerateAnalysisApiTestsKt}. DO NOT MODIFY MANUALLY */
@SuppressWarnings("all") @SuppressWarnings("all")
@TestMetadata("analysis/analysis-api/testData/components/referenceShortener/referenceShortenerWholeFile") @TestMetadata("analysis/analysis-api/testData/components/referenceShortener/shortenWholeFile")
@TestDataPath("$PROJECT_ROOT") @TestDataPath("$PROJECT_ROOT")
public class FirIdeNormalAnalysisScriptSourceModuleReferenceShortenerForWholeFileTestGenerated extends AbstractReferenceShortenerForWholeFileTest { public class FirIdeNormalAnalysisScriptSourceModuleReferenceShortenerForWholeFileTestGenerated extends AbstractReferenceShortenerForWholeFileTest {
@NotNull @NotNull
@@ -42,25 +42,25 @@ public class FirIdeNormalAnalysisScriptSourceModuleReferenceShortenerForWholeFil
} }
@Test @Test
public void testAllFilesPresentInReferenceShortenerWholeFile() throws Exception { public void testAllFilesPresentInShortenWholeFile() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("analysis/analysis-api/testData/components/referenceShortener/referenceShortenerWholeFile"), Pattern.compile("^(.+)\\.kts$"), null, true); KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("analysis/analysis-api/testData/components/referenceShortener/shortenWholeFile"), Pattern.compile("^(.+)\\.kts$"), null, true);
} }
@Test @Test
@TestMetadata("callInsideScriptExpression.kts") @TestMetadata("callInsideScriptExpression.kts")
public void testCallInsideScriptExpression() throws Exception { public void testCallInsideScriptExpression() throws Exception {
runTest("analysis/analysis-api/testData/components/referenceShortener/referenceShortenerWholeFile/callInsideScriptExpression.kts"); runTest("analysis/analysis-api/testData/components/referenceShortener/shortenWholeFile/callInsideScriptExpression.kts");
} }
@Test @Test
@TestMetadata("scriptFileWithImportStatement.kts") @TestMetadata("scriptFileWithImportStatement.kts")
public void testScriptFileWithImportStatement() throws Exception { public void testScriptFileWithImportStatement() throws Exception {
runTest("analysis/analysis-api/testData/components/referenceShortener/referenceShortenerWholeFile/scriptFileWithImportStatement.kts"); runTest("analysis/analysis-api/testData/components/referenceShortener/shortenWholeFile/scriptFileWithImportStatement.kts");
} }
@Test @Test
@TestMetadata("scriptFileWithoutImportStatements.kts") @TestMetadata("scriptFileWithoutImportStatements.kts")
public void testScriptFileWithoutImportStatements() throws Exception { public void testScriptFileWithoutImportStatements() throws Exception {
runTest("analysis/analysis-api/testData/components/referenceShortener/referenceShortenerWholeFile/scriptFileWithoutImportStatements.kts"); runTest("analysis/analysis-api/testData/components/referenceShortener/shortenWholeFile/scriptFileWithoutImportStatements.kts");
} }
} }
@@ -25,7 +25,7 @@ import java.util.regex.Pattern;
/** This class is generated by {@link org.jetbrains.kotlin.generators.tests.analysis.api.GenerateAnalysisApiTestsKt}. DO NOT MODIFY MANUALLY */ /** This class is generated by {@link org.jetbrains.kotlin.generators.tests.analysis.api.GenerateAnalysisApiTestsKt}. DO NOT MODIFY MANUALLY */
@SuppressWarnings("all") @SuppressWarnings("all")
@TestMetadata("analysis/analysis-api/testData/components/referenceShortener/referenceShortener") @TestMetadata("analysis/analysis-api/testData/components/referenceShortener/shortenRange")
@TestDataPath("$PROJECT_ROOT") @TestDataPath("$PROJECT_ROOT")
public class FirIdeNormalAnalysisScriptSourceModuleReferenceShortenerTestGenerated extends AbstractReferenceShortenerTest { public class FirIdeNormalAnalysisScriptSourceModuleReferenceShortenerTestGenerated extends AbstractReferenceShortenerTest {
@NotNull @NotNull
@@ -42,63 +42,63 @@ public class FirIdeNormalAnalysisScriptSourceModuleReferenceShortenerTestGenerat
} }
@Test @Test
public void testAllFilesPresentInReferenceShortener() throws Exception { public void testAllFilesPresentInShortenRange() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("analysis/analysis-api/testData/components/referenceShortener/referenceShortener"), Pattern.compile("^(.+)\\.kts$"), null, true); KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("analysis/analysis-api/testData/components/referenceShortener/shortenRange"), Pattern.compile("^(.+)\\.kts$"), null, true);
} }
@Test @Test
@TestMetadata("callInsideScriptExpression.kts") @TestMetadata("callInsideScriptExpression.kts")
public void testCallInsideScriptExpression() throws Exception { public void testCallInsideScriptExpression() throws Exception {
runTest("analysis/analysis-api/testData/components/referenceShortener/referenceShortener/callInsideScriptExpression.kts"); runTest("analysis/analysis-api/testData/components/referenceShortener/shortenRange/callInsideScriptExpression.kts");
} }
@Nested @Nested
@TestMetadata("analysis/analysis-api/testData/components/referenceShortener/referenceShortener/nestedClasses") @TestMetadata("analysis/analysis-api/testData/components/referenceShortener/shortenRange/nestedClasses")
@TestDataPath("$PROJECT_ROOT") @TestDataPath("$PROJECT_ROOT")
public class NestedClasses { public class NestedClasses {
@Test @Test
public void testAllFilesPresentInNestedClasses() throws Exception { public void testAllFilesPresentInNestedClasses() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("analysis/analysis-api/testData/components/referenceShortener/referenceShortener/nestedClasses"), Pattern.compile("^(.+)\\.kts$"), null, true); KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("analysis/analysis-api/testData/components/referenceShortener/shortenRange/nestedClasses"), Pattern.compile("^(.+)\\.kts$"), null, true);
} }
@Nested @Nested
@TestMetadata("analysis/analysis-api/testData/components/referenceShortener/referenceShortener/nestedClasses/classHeaderPositions") @TestMetadata("analysis/analysis-api/testData/components/referenceShortener/shortenRange/nestedClasses/classHeaderPositions")
@TestDataPath("$PROJECT_ROOT") @TestDataPath("$PROJECT_ROOT")
public class ClassHeaderPositions { public class ClassHeaderPositions {
@Test @Test
public void testAllFilesPresentInClassHeaderPositions() throws Exception { public void testAllFilesPresentInClassHeaderPositions() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("analysis/analysis-api/testData/components/referenceShortener/referenceShortener/nestedClasses/classHeaderPositions"), Pattern.compile("^(.+)\\.kts$"), null, true); KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("analysis/analysis-api/testData/components/referenceShortener/shortenRange/nestedClasses/classHeaderPositions"), Pattern.compile("^(.+)\\.kts$"), null, true);
} }
} }
} }
@Nested @Nested
@TestMetadata("analysis/analysis-api/testData/components/referenceShortener/referenceShortener/thisReference") @TestMetadata("analysis/analysis-api/testData/components/referenceShortener/shortenRange/thisReference")
@TestDataPath("$PROJECT_ROOT") @TestDataPath("$PROJECT_ROOT")
public class ThisReference { public class ThisReference {
@Test @Test
public void testAllFilesPresentInThisReference() throws Exception { public void testAllFilesPresentInThisReference() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("analysis/analysis-api/testData/components/referenceShortener/referenceShortener/thisReference"), Pattern.compile("^(.+)\\.kts$"), null, true); KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("analysis/analysis-api/testData/components/referenceShortener/shortenRange/thisReference"), Pattern.compile("^(.+)\\.kts$"), null, true);
} }
@Nested @Nested
@TestMetadata("analysis/analysis-api/testData/components/referenceShortener/referenceShortener/thisReference/withLabel") @TestMetadata("analysis/analysis-api/testData/components/referenceShortener/shortenRange/thisReference/withLabel")
@TestDataPath("$PROJECT_ROOT") @TestDataPath("$PROJECT_ROOT")
public class WithLabel { public class WithLabel {
@Test @Test
public void testAllFilesPresentInWithLabel() throws Exception { public void testAllFilesPresentInWithLabel() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("analysis/analysis-api/testData/components/referenceShortener/referenceShortener/thisReference/withLabel"), Pattern.compile("^(.+)\\.kts$"), null, true); KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("analysis/analysis-api/testData/components/referenceShortener/shortenRange/thisReference/withLabel"), Pattern.compile("^(.+)\\.kts$"), null, true);
} }
} }
} }
@Nested @Nested
@TestMetadata("analysis/analysis-api/testData/components/referenceShortener/referenceShortener/typeParameters") @TestMetadata("analysis/analysis-api/testData/components/referenceShortener/shortenRange/typeParameters")
@TestDataPath("$PROJECT_ROOT") @TestDataPath("$PROJECT_ROOT")
public class TypeParameters { public class TypeParameters {
@Test @Test
public void testAllFilesPresentInTypeParameters() throws Exception { public void testAllFilesPresentInTypeParameters() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("analysis/analysis-api/testData/components/referenceShortener/referenceShortener/typeParameters"), Pattern.compile("^(.+)\\.kts$"), null, true); KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("analysis/analysis-api/testData/components/referenceShortener/shortenRange/typeParameters"), Pattern.compile("^(.+)\\.kts$"), null, true);
} }
} }
} }
@@ -25,7 +25,7 @@ import java.util.regex.Pattern;
/** This class is generated by {@link org.jetbrains.kotlin.generators.tests.analysis.api.GenerateAnalysisApiTestsKt}. DO NOT MODIFY MANUALLY */ /** This class is generated by {@link org.jetbrains.kotlin.generators.tests.analysis.api.GenerateAnalysisApiTestsKt}. DO NOT MODIFY MANUALLY */
@SuppressWarnings("all") @SuppressWarnings("all")
@TestMetadata("analysis/analysis-api/testData/components/referenceShortener/referenceShortenerWholeFile") @TestMetadata("analysis/analysis-api/testData/components/referenceShortener/shortenWholeFile")
@TestDataPath("$PROJECT_ROOT") @TestDataPath("$PROJECT_ROOT")
public class FirIdeNormalAnalysisSourceModuleReferenceShortenerForWholeFileTestGenerated extends AbstractReferenceShortenerForWholeFileTest { public class FirIdeNormalAnalysisSourceModuleReferenceShortenerForWholeFileTestGenerated extends AbstractReferenceShortenerForWholeFileTest {
@NotNull @NotNull
@@ -42,19 +42,19 @@ public class FirIdeNormalAnalysisSourceModuleReferenceShortenerForWholeFileTestG
} }
@Test @Test
public void testAllFilesPresentInReferenceShortenerWholeFile() throws Exception { public void testAllFilesPresentInShortenWholeFile() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("analysis/analysis-api/testData/components/referenceShortener/referenceShortenerWholeFile"), Pattern.compile("^(.+)\\.kt$"), null, true); KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("analysis/analysis-api/testData/components/referenceShortener/shortenWholeFile"), Pattern.compile("^(.+)\\.kt$"), null, true);
} }
@Test @Test
@TestMetadata("fileWithKDoc.kt") @TestMetadata("fileWithKDoc.kt")
public void testFileWithKDoc() throws Exception { public void testFileWithKDoc() throws Exception {
runTest("analysis/analysis-api/testData/components/referenceShortener/referenceShortenerWholeFile/fileWithKDoc.kt"); runTest("analysis/analysis-api/testData/components/referenceShortener/shortenWholeFile/fileWithKDoc.kt");
} }
@Test @Test
@TestMetadata("fileWithMultipleDeclarations.kt") @TestMetadata("fileWithMultipleDeclarations.kt")
public void testFileWithMultipleDeclarations() throws Exception { public void testFileWithMultipleDeclarations() throws Exception {
runTest("analysis/analysis-api/testData/components/referenceShortener/referenceShortenerWholeFile/fileWithMultipleDeclarations.kt"); runTest("analysis/analysis-api/testData/components/referenceShortener/shortenWholeFile/fileWithMultipleDeclarations.kt");
} }
} }
@@ -25,7 +25,7 @@ import java.util.regex.Pattern;
/** This class is generated by {@link org.jetbrains.kotlin.generators.tests.analysis.api.GenerateAnalysisApiTestsKt}. DO NOT MODIFY MANUALLY */ /** This class is generated by {@link org.jetbrains.kotlin.generators.tests.analysis.api.GenerateAnalysisApiTestsKt}. DO NOT MODIFY MANUALLY */
@SuppressWarnings("all") @SuppressWarnings("all")
@TestMetadata("analysis/analysis-api/testData/components/referenceShortener/referenceShortenerWholeFile") @TestMetadata("analysis/analysis-api/testData/components/referenceShortener/shortenWholeFile")
@TestDataPath("$PROJECT_ROOT") @TestDataPath("$PROJECT_ROOT")
public class FirStandaloneNormalAnalysisSourceModuleReferenceShortenerForWholeFileTestGenerated extends AbstractReferenceShortenerForWholeFileTest { public class FirStandaloneNormalAnalysisSourceModuleReferenceShortenerForWholeFileTestGenerated extends AbstractReferenceShortenerForWholeFileTest {
@NotNull @NotNull
@@ -42,19 +42,19 @@ public class FirStandaloneNormalAnalysisSourceModuleReferenceShortenerForWholeFi
} }
@Test @Test
public void testAllFilesPresentInReferenceShortenerWholeFile() throws Exception { public void testAllFilesPresentInShortenWholeFile() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("analysis/analysis-api/testData/components/referenceShortener/referenceShortenerWholeFile"), Pattern.compile("^(.+)\\.kt$"), null, true); KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("analysis/analysis-api/testData/components/referenceShortener/shortenWholeFile"), Pattern.compile("^(.+)\\.kt$"), null, true);
} }
@Test @Test
@TestMetadata("fileWithKDoc.kt") @TestMetadata("fileWithKDoc.kt")
public void testFileWithKDoc() throws Exception { public void testFileWithKDoc() throws Exception {
runTest("analysis/analysis-api/testData/components/referenceShortener/referenceShortenerWholeFile/fileWithKDoc.kt"); runTest("analysis/analysis-api/testData/components/referenceShortener/shortenWholeFile/fileWithKDoc.kt");
} }
@Test @Test
@TestMetadata("fileWithMultipleDeclarations.kt") @TestMetadata("fileWithMultipleDeclarations.kt")
public void testFileWithMultipleDeclarations() throws Exception { public void testFileWithMultipleDeclarations() throws Exception {
runTest("analysis/analysis-api/testData/components/referenceShortener/referenceShortenerWholeFile/fileWithMultipleDeclarations.kt"); runTest("analysis/analysis-api/testData/components/referenceShortener/shortenWholeFile/fileWithMultipleDeclarations.kt");
} }
} }

Some files were not shown because too many files have changed in this diff Show More