mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[kotlin] Improve test coverage for K2
^KTIJ-29562 GitOrigin-RevId: ac79037618dd7eff1cf99c60c26d5d652d436dd4
This commit is contained in:
committed by
intellij-monorepo-bot
parent
7b4e57696d
commit
ded122bfae
+27
@@ -5637,7 +5637,34 @@ public abstract class HighLevelQuickFixTestGenerated extends AbstractHighLevelQu
|
||||
}
|
||||
}
|
||||
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
@TestMetadata("../../../idea/tests/testData/quickfix/addConversionCall")
|
||||
public static class AddConversionCall extends AbstractHighLevelQuickFixTest {
|
||||
@java.lang.Override
|
||||
@org.jetbrains.annotations.NotNull
|
||||
public final KotlinPluginMode getPluginMode() {
|
||||
return KotlinPluginMode.K2;
|
||||
}
|
||||
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
@TestMetadata("toByte.kt")
|
||||
public void testToByte() throws Exception {
|
||||
runTest("../../../idea/tests/testData/quickfix/addConversionCall/toByte.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("toByteExtraParenthesis.kt")
|
||||
public void testToByteExtraParenthesis() throws Exception {
|
||||
runTest("../../../idea/tests/testData/quickfix/addConversionCall/toByteExtraParenthesis.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("toShort.kt")
|
||||
public void testToShort() throws Exception {
|
||||
runTest("../../../idea/tests/testData/quickfix/addConversionCall/toShort.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
@TestMetadata("../../../idea/tests/testData/quickfix/addCrossinline")
|
||||
|
||||
@@ -5,4 +5,5 @@ fun takeByte(x: Byte) {}
|
||||
fun foo() {
|
||||
takeByte(1 + 1<caret>)
|
||||
}
|
||||
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.AddConversionCallFix
|
||||
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.AddConversionCallFix
|
||||
// FUS_K2_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.NumberConversionFix
|
||||
@@ -5,4 +5,5 @@ fun takeByte(x: Byte) {}
|
||||
fun foo() {
|
||||
takeByte((1 + 1).toByte()<caret>)
|
||||
}
|
||||
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.AddConversionCallFix
|
||||
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.AddConversionCallFix
|
||||
// FUS_K2_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.NumberConversionFix
|
||||
+2
-1
@@ -5,4 +5,5 @@ fun takeByte(x: Byte) {}
|
||||
fun foo() {
|
||||
takeByte(1 + (1 + 1)<caret>)
|
||||
}
|
||||
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.AddConversionCallFix
|
||||
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.AddConversionCallFix
|
||||
// FUS_K2_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.NumberConversionFix
|
||||
+2
-1
@@ -5,4 +5,5 @@ fun takeByte(x: Byte) {}
|
||||
fun foo() {
|
||||
takeByte((1 + (1 + 1)).toByte()<caret>)
|
||||
}
|
||||
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.AddConversionCallFix
|
||||
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.AddConversionCallFix
|
||||
// FUS_K2_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.NumberConversionFix
|
||||
@@ -5,4 +5,5 @@ fun takeShort(x: Short) {}
|
||||
fun foo() {
|
||||
takeShort(1 + 1<caret>)
|
||||
}
|
||||
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.AddConversionCallFix
|
||||
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.AddConversionCallFix
|
||||
// FUS_K2_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.NumberConversionFix
|
||||
@@ -5,4 +5,5 @@ fun takeShort(x: Short) {}
|
||||
fun foo() {
|
||||
takeShort((1 + 1).toShort())
|
||||
}
|
||||
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.AddConversionCallFix
|
||||
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.AddConversionCallFix
|
||||
// FUS_K2_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.NumberConversionFix
|
||||
+1
-1
@@ -63,7 +63,7 @@ internal fun MutableTWorkspace.generateK2FixTests() {
|
||||
model("$idea/quickfix/addAnnotationUseSiteTarget", pattern = pattern, isIgnored = true)
|
||||
model("$idea/quickfix/addConstructorParameter", pattern = pattern, isIgnored = true)
|
||||
model("$idea/quickfix/addConstructorParameterFromSuperTypeCall", pattern = pattern)
|
||||
model("$idea/quickfix/addConversionCall", pattern = pattern, isIgnored = true)
|
||||
model("$idea/quickfix/addConversionCall", pattern = pattern)
|
||||
model("$idea/quickfix/addCrossinline", pattern = pattern)
|
||||
model("$idea/quickfix/addDataModifier", pattern = pattern)
|
||||
model("$idea/quickfix/addDefaultConstructor", pattern = pattern)
|
||||
|
||||
Reference in New Issue
Block a user