From e43cafddb80bf44ca7885fbb476607c2bd67bbd0 Mon Sep 17 00:00:00 2001 From: Pavel Kirpichenkov Date: Mon, 14 Oct 2024 15:34:59 +0300 Subject: [PATCH] [Kotlin] Replace issue numbers with meaningful test names KTIJ-30269 GitOrigin-RevId: b288610266a3b5532bf784c056cab97bfe99d03c --- .../tests/K2IntentionTestGenerated.java | 20 +++++++++---------- .../intentions/K1IntentionTestGenerated.java | 20 +++++++++---------- ...disableConversionForDoubleDollarPrefix.kt} | 1 + ...=> singleDollarPrefixWithInterpolation.kt} | 1 + ...gleDollarPrefixWithInterpolation.kt.after} | 1 + 5 files changed, 23 insertions(+), 20 deletions(-) rename plugins/kotlin/idea/tests/testData/intentions/convertStringTemplateToBuildString/{KTIJ-30269.kt => disableConversionForDoubleDollarPrefix.kt} (95%) rename plugins/kotlin/idea/tests/testData/intentions/convertToConcatenatedString/{KTIJ-30269.kt => singleDollarPrefixWithInterpolation.kt} (96%) rename plugins/kotlin/idea/tests/testData/intentions/convertToConcatenatedString/{KTIJ-30269.kt.after => singleDollarPrefixWithInterpolation.kt.after} (97%) diff --git a/plugins/kotlin/code-insight/intentions-k2/tests/test/org/jetbrains/kotlin/idea/k2/intentions/tests/K2IntentionTestGenerated.java b/plugins/kotlin/code-insight/intentions-k2/tests/test/org/jetbrains/kotlin/idea/k2/intentions/tests/K2IntentionTestGenerated.java index 14b9904b6728..fabe26586b73 100644 --- a/plugins/kotlin/code-insight/intentions-k2/tests/test/org/jetbrains/kotlin/idea/k2/intentions/tests/K2IntentionTestGenerated.java +++ b/plugins/kotlin/code-insight/intentions-k2/tests/test/org/jetbrains/kotlin/idea/k2/intentions/tests/K2IntentionTestGenerated.java @@ -2572,6 +2572,11 @@ public abstract class K2IntentionTestGenerated extends AbstractK2IntentionTest { runTest("../../../idea/tests/testData/intentions/convertStringTemplateToBuildString/basic3.kt"); } + @TestMetadata("disableConversionForDoubleDollarPrefix.kt") + public void testDisableConversionForDoubleDollarPrefix() throws Exception { + runTest("../../../idea/tests/testData/intentions/convertStringTemplateToBuildString/disableConversionForDoubleDollarPrefix.kt"); + } + @TestMetadata("empty.kt") public void testEmpty() throws Exception { runTest("../../../idea/tests/testData/intentions/convertStringTemplateToBuildString/empty.kt"); @@ -2582,11 +2587,6 @@ public abstract class K2IntentionTestGenerated extends AbstractK2IntentionTest { runTest("../../../idea/tests/testData/intentions/convertStringTemplateToBuildString/inAnnotation.kt"); } - @TestMetadata("KTIJ-30269.kt") - public void testKTIJ_30269() throws Exception { - runTest("../../../idea/tests/testData/intentions/convertStringTemplateToBuildString/KTIJ-30269.kt"); - } - @TestMetadata("raw.kt") public void testRaw() throws Exception { runTest("../../../idea/tests/testData/intentions/convertStringTemplateToBuildString/raw.kt"); @@ -2969,11 +2969,6 @@ public abstract class K2IntentionTestGenerated extends AbstractK2IntentionTest { runTest("../../../idea/tests/testData/intentions/convertToConcatenatedString/interpolateStringWithInt.kt"); } - @TestMetadata("KTIJ-30269.kt") - public void testKTIJ_30269() throws Exception { - runTest("../../../idea/tests/testData/intentions/convertToConcatenatedString/KTIJ-30269.kt"); - } - @TestMetadata("lastExprIsNamedExpression.kt") public void testLastExprIsNamedExpression() throws Exception { runTest("../../../idea/tests/testData/intentions/convertToConcatenatedString/lastExprIsNamedExpression.kt"); @@ -3009,6 +3004,11 @@ public abstract class K2IntentionTestGenerated extends AbstractK2IntentionTest { runTest("../../../idea/tests/testData/intentions/convertToConcatenatedString/notAvailableForDollarSignLiteral.kt"); } + @TestMetadata("singleDollarPrefixWithInterpolation.kt") + public void testSingleDollarPrefixWithInterpolation() throws Exception { + runTest("../../../idea/tests/testData/intentions/convertToConcatenatedString/singleDollarPrefixWithInterpolation.kt"); + } + @TestMetadata("singleVar.kt") public void testSingleVar() throws Exception { runTest("../../../idea/tests/testData/intentions/convertToConcatenatedString/singleVar.kt"); diff --git a/plugins/kotlin/idea/tests/test/org/jetbrains/kotlin/idea/intentions/K1IntentionTestGenerated.java b/plugins/kotlin/idea/tests/test/org/jetbrains/kotlin/idea/intentions/K1IntentionTestGenerated.java index 3379781f17c7..de9c1565b6ca 100644 --- a/plugins/kotlin/idea/tests/test/org/jetbrains/kotlin/idea/intentions/K1IntentionTestGenerated.java +++ b/plugins/kotlin/idea/tests/test/org/jetbrains/kotlin/idea/intentions/K1IntentionTestGenerated.java @@ -8709,6 +8709,11 @@ public abstract class K1IntentionTestGenerated extends AbstractK1IntentionTest { runTest("testData/intentions/convertStringTemplateToBuildString/basic3.kt"); } + @TestMetadata("disableConversionForDoubleDollarPrefix.kt") + public void testDisableConversionForDoubleDollarPrefix() throws Exception { + runTest("testData/intentions/convertStringTemplateToBuildString/disableConversionForDoubleDollarPrefix.kt"); + } + @TestMetadata("empty.kt") public void testEmpty() throws Exception { runTest("testData/intentions/convertStringTemplateToBuildString/empty.kt"); @@ -8719,11 +8724,6 @@ public abstract class K1IntentionTestGenerated extends AbstractK1IntentionTest { runTest("testData/intentions/convertStringTemplateToBuildString/inAnnotation.kt"); } - @TestMetadata("KTIJ-30269.kt") - public void testKTIJ_30269() throws Exception { - runTest("testData/intentions/convertStringTemplateToBuildString/KTIJ-30269.kt"); - } - @TestMetadata("raw.kt") public void testRaw() throws Exception { runTest("testData/intentions/convertStringTemplateToBuildString/raw.kt"); @@ -9072,11 +9072,6 @@ public abstract class K1IntentionTestGenerated extends AbstractK1IntentionTest { runTest("testData/intentions/convertToConcatenatedString/interpolateStringWithInt.kt"); } - @TestMetadata("KTIJ-30269.kt") - public void testKTIJ_30269() throws Exception { - runTest("testData/intentions/convertToConcatenatedString/KTIJ-30269.kt"); - } - @TestMetadata("lastExprIsNamedExpression.kt") public void testLastExprIsNamedExpression() throws Exception { runTest("testData/intentions/convertToConcatenatedString/lastExprIsNamedExpression.kt"); @@ -9112,6 +9107,11 @@ public abstract class K1IntentionTestGenerated extends AbstractK1IntentionTest { runTest("testData/intentions/convertToConcatenatedString/notAvailableForDollarSignLiteral.kt"); } + @TestMetadata("singleDollarPrefixWithInterpolation.kt") + public void testSingleDollarPrefixWithInterpolation() throws Exception { + runTest("testData/intentions/convertToConcatenatedString/singleDollarPrefixWithInterpolation.kt"); + } + @TestMetadata("singleVar.kt") public void testSingleVar() throws Exception { runTest("testData/intentions/convertToConcatenatedString/singleVar.kt"); diff --git a/plugins/kotlin/idea/tests/testData/intentions/convertStringTemplateToBuildString/KTIJ-30269.kt b/plugins/kotlin/idea/tests/testData/intentions/convertStringTemplateToBuildString/disableConversionForDoubleDollarPrefix.kt similarity index 95% rename from plugins/kotlin/idea/tests/testData/intentions/convertStringTemplateToBuildString/KTIJ-30269.kt rename to plugins/kotlin/idea/tests/testData/intentions/convertStringTemplateToBuildString/disableConversionForDoubleDollarPrefix.kt index 814243ee6a37..7b1f305f75ea 100644 --- a/plugins/kotlin/idea/tests/testData/intentions/convertStringTemplateToBuildString/KTIJ-30269.kt +++ b/plugins/kotlin/idea/tests/testData/intentions/convertStringTemplateToBuildString/disableConversionForDoubleDollarPrefix.kt @@ -1,6 +1,7 @@ // IGNORE_K1 // IS_APPLICABLE: false // COMPILER_ARGUMENTS: -Xmulti-dollar-interpolation +// Issue: KTIJ-30269 fun foo() { val a = "a" diff --git a/plugins/kotlin/idea/tests/testData/intentions/convertToConcatenatedString/KTIJ-30269.kt b/plugins/kotlin/idea/tests/testData/intentions/convertToConcatenatedString/singleDollarPrefixWithInterpolation.kt similarity index 96% rename from plugins/kotlin/idea/tests/testData/intentions/convertToConcatenatedString/KTIJ-30269.kt rename to plugins/kotlin/idea/tests/testData/intentions/convertToConcatenatedString/singleDollarPrefixWithInterpolation.kt index d958c84a05ff..247cf9829745 100644 --- a/plugins/kotlin/idea/tests/testData/intentions/convertToConcatenatedString/KTIJ-30269.kt +++ b/plugins/kotlin/idea/tests/testData/intentions/convertToConcatenatedString/singleDollarPrefixWithInterpolation.kt @@ -2,6 +2,7 @@ // SKIP_ERRORS_AFTER // SKIP_WARNINGS_AFTER // COMPILER_ARGUMENTS: -Xmulti-dollar-interpolation +// Issue: KTIJ-30269 fun foo() { val a = "aaa" diff --git a/plugins/kotlin/idea/tests/testData/intentions/convertToConcatenatedString/KTIJ-30269.kt.after b/plugins/kotlin/idea/tests/testData/intentions/convertToConcatenatedString/singleDollarPrefixWithInterpolation.kt.after similarity index 97% rename from plugins/kotlin/idea/tests/testData/intentions/convertToConcatenatedString/KTIJ-30269.kt.after rename to plugins/kotlin/idea/tests/testData/intentions/convertToConcatenatedString/singleDollarPrefixWithInterpolation.kt.after index d106f419c18b..e1c357bbc967 100644 --- a/plugins/kotlin/idea/tests/testData/intentions/convertToConcatenatedString/KTIJ-30269.kt.after +++ b/plugins/kotlin/idea/tests/testData/intentions/convertToConcatenatedString/singleDollarPrefixWithInterpolation.kt.after @@ -2,6 +2,7 @@ // SKIP_ERRORS_AFTER // SKIP_WARNINGS_AFTER // COMPILER_ARGUMENTS: -Xmulti-dollar-interpolation +// Issue: KTIJ-30269 fun foo() { val a = "aaa"