Add tests for converting expressions of function types to suspending functional types
This commit is contained in:
committed by
teamcityserver
parent
780b9a032b
commit
0cc6fbbc6e
js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/es6/semantics/IrJsCodegenBoxES6TestGenerated.java
Generated
+68
@@ -27510,6 +27510,74 @@ public class IrJsCodegenBoxES6TestGenerated extends AbstractIrJsCodegenBoxES6Tes
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/codegen/box/suspendConversion")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class SuspendConversion extends AbstractIrJsCodegenBoxES6Test {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInSuspendConversion() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/suspendConversion"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, 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");
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/codegen/box/synchronized")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
|
||||
Generated
+68
@@ -26916,6 +26916,74 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest {
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/codegen/box/suspendConversion")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class SuspendConversion extends AbstractIrJsCodegenBoxTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInSuspendConversion() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/suspendConversion"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, 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");
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/codegen/box/synchronized")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
|
||||
Generated
+68
@@ -26876,6 +26876,74 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest {
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/codegen/box/suspendConversion")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class SuspendConversion extends AbstractJsCodegenBoxTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInSuspendConversion() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/suspendConversion"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS, 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");
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/codegen/box/synchronized")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
|
||||
js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/wasm/semantics/IrCodegenBoxWasmTestGenerated.java
Generated
+68
@@ -15037,6 +15037,74 @@ public class IrCodegenBoxWasmTestGenerated extends AbstractIrCodegenBoxWasmTest
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/codegen/box/suspendConversion")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class SuspendConversion extends AbstractIrCodegenBoxWasmTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest0(this::doTest, TargetBackend.WASM, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInSuspendConversion() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/suspendConversion"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.WASM, 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");
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/codegen/box/synchronized")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
|
||||
Reference in New Issue
Block a user