mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[kotlin] KTIJ-37358 Add more tests
GitOrigin-RevId: d43d4fffb149a8642a5f7e1863fa65a0a9f04ecd
This commit is contained in:
committed by
intellij-monorepo-bot
parent
335d1479e5
commit
0c02463e1d
+10
@@ -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");
|
||||
|
||||
+10
@@ -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");
|
||||
|
||||
+18
@@ -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
|
||||
+19
@@ -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
|
||||
+17
@@ -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
|
||||
+18
@@ -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
|
||||
Reference in New Issue
Block a user