PSI2IR fix suspend conversion tests
- support chained suspend conversion + SAM conversion - support suspend conversion in vararg elements
This commit is contained in:
committed by
teamcityserver
parent
0cc6fbbc6e
commit
d41fc0b599
+40
-40
@@ -32899,6 +32899,46 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class SuspendConversion extends AbstractLightAnalysisModeTest {
|
||||
@TestMetadata("basicSuspendConversion.kt")
|
||||
public void ignoreBasicSuspendConversion() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/suspendConversion/basicSuspendConversion.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("basicSuspendConversionGenerics.kt")
|
||||
public void ignoreBasicSuspendConversionGenerics() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/suspendConversion/basicSuspendConversionGenerics.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("chainedFunSuspendConversionForSimpleExpression.kt")
|
||||
public void ignoreChainedFunSuspendConversionForSimpleExpression() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/suspendConversion/chainedFunSuspendConversionForSimpleExpression.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("overloadResolutionBySuspendModifier.kt")
|
||||
public void ignoreOverloadResolutionBySuspendModifier() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/suspendConversion/overloadResolutionBySuspendModifier.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("severalConversionsInOneCall.kt")
|
||||
public void ignoreSeveralConversionsInOneCall() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/suspendConversion/severalConversionsInOneCall.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("suspendAndFunConversionInDisabledMode.kt")
|
||||
public void ignoreSuspendAndFunConversionInDisabledMode() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/suspendConversion/suspendAndFunConversionInDisabledMode.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("suspendConversionOnVarargElements.kt")
|
||||
public void ignoreSuspendConversionOnVarargElements() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/suspendConversion/suspendConversionOnVarargElements.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("suspendConversionWithFunInterfaces.kt")
|
||||
public void ignoreSuspendConversionWithFunInterfaces() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/suspendConversion/suspendConversionWithFunInterfaces.kt");
|
||||
}
|
||||
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
|
||||
}
|
||||
@@ -32907,56 +32947,16 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/suspendConversion"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
|
||||
}
|
||||
|
||||
@TestMetadata("basicSuspendConversion.kt")
|
||||
public void testBasicSuspendConversion() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/suspendConversion/basicSuspendConversion.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("basicSuspendConversionForCallableReference.kt")
|
||||
public void testBasicSuspendConversionForCallableReference() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/suspendConversion/basicSuspendConversionForCallableReference.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("basicSuspendConversionGenerics.kt")
|
||||
public void testBasicSuspendConversionGenerics() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/suspendConversion/basicSuspendConversionGenerics.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("chainedFunSuspendConversionForSimpleExpression.kt")
|
||||
public void testChainedFunSuspendConversionForSimpleExpression() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/suspendConversion/chainedFunSuspendConversionForSimpleExpression.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("overloadResolutionBySuspendModifier.kt")
|
||||
public void testOverloadResolutionBySuspendModifier() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/suspendConversion/overloadResolutionBySuspendModifier.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("severalConversionsInOneCall.kt")
|
||||
public void testSeveralConversionsInOneCall() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/suspendConversion/severalConversionsInOneCall.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("suspendAndFunConversionInDisabledMode.kt")
|
||||
public void testSuspendAndFunConversionInDisabledMode() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/suspendConversion/suspendAndFunConversionInDisabledMode.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("suspendConversionCompatibility.kt")
|
||||
public void testSuspendConversionCompatibility() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/suspendConversion/suspendConversionCompatibility.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("suspendConversionOnVarargElements.kt")
|
||||
public void testSuspendConversionOnVarargElements() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/suspendConversion/suspendConversionOnVarargElements.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("suspendConversionWithFunInterfaces.kt")
|
||||
public void testSuspendConversionWithFunInterfaces() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/suspendConversion/suspendConversionWithFunInterfaces.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("suspendConversionWithReferenceAdaptation.kt")
|
||||
public void testSuspendConversionWithReferenceAdaptation() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/suspendConversion/suspendConversionWithReferenceAdaptation.kt");
|
||||
|
||||
Reference in New Issue
Block a user