[kotlin] KTIJ-37358 Add more tests

GitOrigin-RevId: d43d4fffb149a8642a5f7e1863fa65a0a9f04ecd
This commit is contained in:
Andrey Cherkasov
2026-03-17 22:48:39 +00:00
committed by intellij-monorepo-bot
parent 335d1479e5
commit 0c02463e1d
6 changed files with 92 additions and 0 deletions
@@ -13400,6 +13400,11 @@ public abstract class HighLevelQuickFixTestGenerated extends AbstractHighLevelQu
runTest("../../../idea/tests/testData/quickfix/runBlockingInSuspendFunction/explicitThisLaunch.kt");
}
@TestMetadata("explicitThisLaunchWithNullableTypeArgument.kt")
public void testExplicitThisLaunchWithNullableTypeArgument() throws Exception {
runTest("../../../idea/tests/testData/quickfix/runBlockingInSuspendFunction/explicitThisLaunchWithNullableTypeArgument.kt");
}
@TestMetadata("implicitReceiverCoroutineContext.kt")
public void testImplicitReceiverCoroutineContext() throws Exception {
runTest("../../../idea/tests/testData/quickfix/runBlockingInSuspendFunction/implicitReceiverCoroutineContext.kt");
@@ -13410,6 +13415,11 @@ public abstract class HighLevelQuickFixTestGenerated extends AbstractHighLevelQu
runTest("../../../idea/tests/testData/quickfix/runBlockingInSuspendFunction/implicitReceiverLaunch.kt");
}
@TestMetadata("implicitThisLaunchWithTypeArgument.kt")
public void testImplicitThisLaunchWithTypeArgument() throws Exception {
runTest("../../../idea/tests/testData/quickfix/runBlockingInSuspendFunction/implicitThisLaunchWithTypeArgument.kt");
}
@TestMetadata("inNonSuspendLambda.kt")
public void testInNonSuspendLambda() throws Exception {
runTest("../../../idea/tests/testData/quickfix/runBlockingInSuspendFunction/inNonSuspendLambda.kt");
@@ -16533,6 +16533,11 @@ public abstract class K1QuickFixTestGenerated extends AbstractK1QuickFixTest {
runTest("testData/quickfix/runBlockingInSuspendFunction/explicitThisLaunch.kt");
}
@TestMetadata("explicitThisLaunchWithNullableTypeArgument.kt")
public void testExplicitThisLaunchWithNullableTypeArgument() throws Exception {
runTest("testData/quickfix/runBlockingInSuspendFunction/explicitThisLaunchWithNullableTypeArgument.kt");
}
@TestMetadata("implicitReceiverCoroutineContext.kt")
public void testImplicitReceiverCoroutineContext() throws Exception {
runTest("testData/quickfix/runBlockingInSuspendFunction/implicitReceiverCoroutineContext.kt");
@@ -16543,6 +16548,11 @@ public abstract class K1QuickFixTestGenerated extends AbstractK1QuickFixTest {
runTest("testData/quickfix/runBlockingInSuspendFunction/implicitReceiverLaunch.kt");
}
@TestMetadata("implicitThisLaunchWithTypeArgument.kt")
public void testImplicitThisLaunchWithTypeArgument() throws Exception {
runTest("testData/quickfix/runBlockingInSuspendFunction/implicitThisLaunchWithTypeArgument.kt");
}
@TestMetadata("inNonSuspendLambda.kt")
public void testInNonSuspendLambda() throws Exception {
runTest("testData/quickfix/runBlockingInSuspendFunction/inNonSuspendLambda.kt");
@@ -0,0 +1,18 @@
// "Fix all ''runBlocking' inside suspend function' problems in file" "true"
// WITH_COROUTINES
import kotlinx.coroutines.launch
import kotlinx.coroutines.runBlocking
suspend fun main() {
var v = run<caret>Blocking<String?> {
this.launch {
println("Hello, World!")
}
"foo"
}
v = null;
}
// FUS_QUICKFIX_NAME: com.intellij.codeInspection.actions.CleanupInspectionIntention
// FUS_K2_QUICKFIX_NAME: com.intellij.codeInspection.actions.CleanupInspectionIntention
@@ -0,0 +1,19 @@
// "Fix all ''runBlocking' inside suspend function' problems in file" "true"
// WITH_COROUTINES
import kotlinx.coroutines.coroutineScope
import kotlinx.coroutines.launch
import kotlinx.coroutines.runBlocking
suspend fun main() {
var v = coroutineScope<String?> {
this.launch {
println("Hello, World!")
}
"foo"
}
v = null;
}
// FUS_QUICKFIX_NAME: com.intellij.codeInspection.actions.CleanupInspectionIntention
// FUS_K2_QUICKFIX_NAME: com.intellij.codeInspection.actions.CleanupInspectionIntention
@@ -0,0 +1,17 @@
// "Fix all ''runBlocking' inside suspend function' problems in file" "true"
// WITH_COROUTINES
import kotlinx.coroutines.launch
import kotlinx.coroutines.runBlocking
suspend fun main() {
val v = run<caret>Blocking<String> {
launch {
println("Hello, World!")
}
"foo"
}
}
// FUS_QUICKFIX_NAME: com.intellij.codeInspection.actions.CleanupInspectionIntention
// FUS_K2_QUICKFIX_NAME: com.intellij.codeInspection.actions.CleanupInspectionIntention
@@ -0,0 +1,18 @@
// "Fix all ''runBlocking' inside suspend function' problems in file" "true"
// WITH_COROUTINES
import kotlinx.coroutines.coroutineScope
import kotlinx.coroutines.launch
import kotlinx.coroutines.runBlocking
suspend fun main() {
val v = coroutineScope<String> {
launch {
println("Hello, World!")
}
"foo"
}
}
// FUS_QUICKFIX_NAME: com.intellij.codeInspection.actions.CleanupInspectionIntention
// FUS_K2_QUICKFIX_NAME: com.intellij.codeInspection.actions.CleanupInspectionIntention