[test] Remove TARGET_BACKEND: JVM_IR for non JVM-specific irText tests

If they fail on other backends, use the IGNORE_BACKEND directive instead
This commit is contained in:
Sergej Jaskiewicz
2023-04-11 17:46:04 +02:00
committed by Space Team
parent a224feefd2
commit 973adb6a38
21 changed files with 376 additions and 15 deletions
@@ -1,5 +1,5 @@
// !LANGUAGE: +ContextReceivers
// TARGET_BACKEND: JVM_IR
// IGNORE_BACKEND: JS_IR
// MUTE_SIGNATURE_COMPARISON_K2: ANY
// ^ KT-57435
@@ -1,5 +1,5 @@
// !LANGUAGE: +ContextReceivers
// TARGET_BACKEND: JVM_IR
// IGNORE_BACKEND: JS_IR
// MUTE_SIGNATURE_COMPARISON_K2: ANY
// ^ KT-57435
@@ -1,5 +1,5 @@
// !LANGUAGE: +ContextReceivers
// TARGET_BACKEND: JVM_IR
// IGNORE_BACKEND: JS_IR
// MUTE_SIGNATURE_COMPARISON_K2: ANY
// ^ KT-57435
@@ -1,5 +1,4 @@
// !LANGUAGE: +ContextReceivers
// TARGET_BACKEND: JVM_IR
fun withContext(f: context(String) () -> String) = f("OK")
@@ -1,15 +1,24 @@
// CHECK JVM_IR:
// Mangled name: #box(){}kotlin.String
// Public signature: /box|-9347091776561469[0]
// CHECK JS_IR NATIVE:
// Mangled name: #box(){}
// Public signature: /box|2173511048851971368[0]
fun box(): String
// CHECK JVM_IR:
// Mangled name: #callWithContext(kotlin.Function1<kotlin.String,kotlin.String>){}kotlin.String
// Public signature: /callWithContext|2869415620415030876[0]
// CHECK JS_IR NATIVE:
// Mangled name: #callWithContext(kotlin.Function1<kotlin.String,kotlin.String>){}
// Public signature: /callWithContext|-2175578939070447459[0]
fun callWithContext(f: Function1<String, String>): String
// CHECK JVM_IR:
// Mangled name: #withContext(kotlin.Function1<kotlin.String,kotlin.String>){}kotlin.String
// Public signature: /withContext|-1533357735492795771[0]
// CHECK JS_IR NATIVE:
// Mangled name: #withContext(kotlin.Function1<kotlin.String,kotlin.String>){}
// Public signature: /withContext|3644059802172459381[0]
fun withContext(f: Function1<String, String>): String
@@ -1,5 +1,5 @@
// !LANGUAGE: +ContextReceivers
// TARGET_BACKEND: JVM_IR
// IGNORE_BACKEND: JS_IR
// MUTE_SIGNATURE_COMPARISON_K2: ANY
// ^ KT-57435
@@ -1,5 +1,5 @@
// !LANGUAGE: +ContextReceivers
// TARGET_BACKEND: JVM_IR
// IGNORE_BACKEND: JS_IR
// WITH_STDLIB
// MUTE_SIGNATURE_COMPARISON_K2: ANY
@@ -1,6 +1,6 @@
// FIR_IDENTICAL
// !LANGUAGE: +ContextReceivers
// TARGET_BACKEND: JVM_IR
// IGNORE_BACKEND: JS_IR
// MUTE_SIGNATURE_COMPARISON_K2: ANY
// ^ KT-57435
@@ -1,5 +1,5 @@
// !LANGUAGE: +ContextReceivers
// TARGET_BACKEND: JVM_IR
// IGNORE_BACKEND: JS_IR
// MUTE_SIGNATURE_COMPARISON_K2: ANY
// ^ KT-57429, KT-57435
@@ -1,5 +1,5 @@
// !LANGUAGE: +ContextReceivers
// TARGET_BACKEND: JVM_IR
// IGNORE_BACKEND: JS_IR
// WITH_STDLIB
// MUTE_SIGNATURE_COMPARISON_K2: ANY
@@ -1,5 +1,5 @@
// !LANGUAGE: +ContextReceivers
// TARGET_BACKEND: JVM_IR
// IGNORE_BACKEND: JS_IR
// MUTE_SIGNATURE_COMPARISON_K2: ANY
// ^ KT-57435
@@ -1,5 +1,5 @@
// !LANGUAGE: +ContextReceivers
// TARGET_BACKEND: JVM_IR
// IGNORE_BACKEND: JS_IR
// WITH_STDLIB
// MUTE_SIGNATURE_COMPARISON_K2: ANY
@@ -1,5 +1,5 @@
// !LANGUAGE: +ContextReceivers
// TARGET_BACKEND: JVM_IR
// IGNORE_BACKEND: JS_IR
// WITH_STDLIB
// MUTE_SIGNATURE_COMPARISON_K2: ANY
@@ -1,6 +1,6 @@
// !LANGUAGE: +ContextReceivers
// FIR_IDENTICAL
// TARGET_BACKEND: JVM_IR
// IGNORE_BACKEND_K1: JS_IR
// MUTE_SIGNATURE_COMPARISON_K2: ANY
// ^ KT-57435
@@ -1,5 +1,4 @@
// !LANGUAGE: +ContextReceivers
// TARGET_BACKEND: JVM_IR
class C {
val result = "OK"
@@ -9,6 +9,9 @@ class C {
// CHECK JVM_IR:
// Mangled name: C#<get-result>(){}kotlin.String
// Public signature: /C.result.<get-result>|8441547134620975366[0]
// CHECK JS_IR NATIVE:
// Mangled name: C#<get-result>(){}
// Public signature: /C.result.<get-result>|7945192536455394063[0]
get
// CHECK:
@@ -21,10 +24,16 @@ class C {
// CHECK JVM_IR:
// Mangled name: #box(){}kotlin.String
// Public signature: /box|-9347091776561469[0]
// CHECK JS_IR NATIVE:
// Mangled name: #box(){}
// Public signature: /box|2173511048851971368[0]
fun box(): String
// CHECK JVM_IR:
// Mangled name: #contextual(kotlin.Function1<C,kotlin.String>){}kotlin.String
// Public signature: /contextual|-248785556334643583[0]
// CHECK JS_IR NATIVE:
// Mangled name: #contextual(kotlin.Function1<C,kotlin.String>){}
// Public signature: /contextual|-8388542031730591420[0]
fun contextual(f: Function1<C, String>): String
@@ -1,5 +1,5 @@
// !LANGUAGE: +ContextReceivers
// TARGET_BACKEND: JVM_IR
// IGNORE_BACKEND: JS_IR
// MUTE_SIGNATURE_COMPARISON_K2: ANY
// ^ KT-57435
@@ -623,21 +623,51 @@ public class KlibIrTextTestCaseGenerated extends AbstractKlibIrTextTestCase {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/ir/irText/declarations/contextReceivers"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true);
}
@TestMetadata("arrayAccessCompositeOperators.kt")
public void testArrayAccessCompositeOperators() throws Exception {
runTest("compiler/testData/ir/irText/declarations/contextReceivers/arrayAccessCompositeOperators.kt");
}
@TestMetadata("arrayAccessOperators.kt")
public void testArrayAccessOperators() throws Exception {
runTest("compiler/testData/ir/irText/declarations/contextReceivers/arrayAccessOperators.kt");
}
@TestMetadata("class.kt")
public void testClass() throws Exception {
runTest("compiler/testData/ir/irText/declarations/contextReceivers/class.kt");
}
@TestMetadata("compoundAssignmentOperators.kt")
public void testCompoundAssignmentOperators() throws Exception {
runTest("compiler/testData/ir/irText/declarations/contextReceivers/compoundAssignmentOperators.kt");
}
@TestMetadata("contextReceiverMethod.kt")
public void testContextReceiverMethod() throws Exception {
runTest("compiler/testData/ir/irText/declarations/contextReceivers/contextReceiverMethod.kt");
}
@TestMetadata("contextualFunctionConversion.kt")
public void testContextualFunctionConversion() throws Exception {
runTest("compiler/testData/ir/irText/declarations/contextReceivers/contextualFunctionConversion.kt");
}
@TestMetadata("contextualInlineCall.kt")
public void testContextualInlineCall() throws Exception {
runTest("compiler/testData/ir/irText/declarations/contextReceivers/contextualInlineCall.kt");
}
@TestMetadata("contextualPrimaryConstructorWithParams.kt")
public void testContextualPrimaryConstructorWithParams() throws Exception {
runTest("compiler/testData/ir/irText/declarations/contextReceivers/contextualPrimaryConstructorWithParams.kt");
}
@TestMetadata("delegatedPropertiesOperators.kt")
public void testDelegatedPropertiesOperators() throws Exception {
runTest("compiler/testData/ir/irText/declarations/contextReceivers/delegatedPropertiesOperators.kt");
}
@TestMetadata("function.kt")
public void testFunction() throws Exception {
runTest("compiler/testData/ir/irText/declarations/contextReceivers/function.kt");
@@ -653,6 +683,16 @@ public class KlibIrTextTestCaseGenerated extends AbstractKlibIrTextTestCase {
runTest("compiler/testData/ir/irText/declarations/contextReceivers/genericOuterClass.kt");
}
@TestMetadata("iteratorOperator.kt")
public void testIteratorOperator() throws Exception {
runTest("compiler/testData/ir/irText/declarations/contextReceivers/iteratorOperator.kt");
}
@TestMetadata("kt52791.kt")
public void testKt52791() throws Exception {
runTest("compiler/testData/ir/irText/declarations/contextReceivers/kt52791.kt");
}
@TestMetadata("lazy.kt")
public void testLazy() throws Exception {
runTest("compiler/testData/ir/irText/declarations/contextReceivers/lazy.kt");
@@ -668,6 +708,11 @@ public class KlibIrTextTestCaseGenerated extends AbstractKlibIrTextTestCase {
runTest("compiler/testData/ir/irText/declarations/contextReceivers/overloading.kt");
}
@TestMetadata("passingLambdaToContextualParam.kt")
public void testPassingLambdaToContextualParam() throws Exception {
runTest("compiler/testData/ir/irText/declarations/contextReceivers/passingLambdaToContextualParam.kt");
}
@TestMetadata("plusMatrix.kt")
public void testPlusMatrix() throws Exception {
runTest("compiler/testData/ir/irText/declarations/contextReceivers/plusMatrix.kt");
@@ -688,6 +733,11 @@ public class KlibIrTextTestCaseGenerated extends AbstractKlibIrTextTestCase {
runTest("compiler/testData/ir/irText/declarations/contextReceivers/typeParameterAsContextReceiver.kt");
}
@TestMetadata("unaryOperators.kt")
public void testUnaryOperators() throws Exception {
runTest("compiler/testData/ir/irText/declarations/contextReceivers/unaryOperators.kt");
}
@TestMetadata("compiler/testData/ir/irText/declarations/contextReceivers/fromKEEP")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
@@ -699,6 +749,31 @@ public class KlibIrTextTestCaseGenerated extends AbstractKlibIrTextTestCase {
public void testAllFilesPresentInFromKEEP() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/ir/irText/declarations/contextReceivers/fromKEEP"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true);
}
@TestMetadata("canvas.kt")
public void testCanvas() throws Exception {
runTest("compiler/testData/ir/irText/declarations/contextReceivers/fromKEEP/canvas.kt");
}
@TestMetadata("compareTo.kt")
public void testCompareTo() throws Exception {
runTest("compiler/testData/ir/irText/declarations/contextReceivers/fromKEEP/compareTo.kt");
}
@TestMetadata("dp.kt")
public void testDp() throws Exception {
runTest("compiler/testData/ir/irText/declarations/contextReceivers/fromKEEP/dp.kt");
}
@TestMetadata("functionalType.kt")
public void testFunctionalType() throws Exception {
runTest("compiler/testData/ir/irText/declarations/contextReceivers/fromKEEP/functionalType.kt");
}
@TestMetadata("monoidSum.kt")
public void testMonoidSum() throws Exception {
runTest("compiler/testData/ir/irText/declarations/contextReceivers/fromKEEP/monoidSum.kt");
}
}
}
@@ -709,24 +709,60 @@ public class FirLightTreeJsIrTextTestGenerated extends AbstractFirLightTreeJsIrT
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/ir/irText/declarations/contextReceivers"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true);
}
@Test
@TestMetadata("arrayAccessCompositeOperators.kt")
public void testArrayAccessCompositeOperators() throws Exception {
runTest("compiler/testData/ir/irText/declarations/contextReceivers/arrayAccessCompositeOperators.kt");
}
@Test
@TestMetadata("arrayAccessOperators.kt")
public void testArrayAccessOperators() throws Exception {
runTest("compiler/testData/ir/irText/declarations/contextReceivers/arrayAccessOperators.kt");
}
@Test
@TestMetadata("class.kt")
public void testClass() throws Exception {
runTest("compiler/testData/ir/irText/declarations/contextReceivers/class.kt");
}
@Test
@TestMetadata("compoundAssignmentOperators.kt")
public void testCompoundAssignmentOperators() throws Exception {
runTest("compiler/testData/ir/irText/declarations/contextReceivers/compoundAssignmentOperators.kt");
}
@Test
@TestMetadata("contextReceiverMethod.kt")
public void testContextReceiverMethod() throws Exception {
runTest("compiler/testData/ir/irText/declarations/contextReceivers/contextReceiverMethod.kt");
}
@Test
@TestMetadata("contextualFunctionConversion.kt")
public void testContextualFunctionConversion() throws Exception {
runTest("compiler/testData/ir/irText/declarations/contextReceivers/contextualFunctionConversion.kt");
}
@Test
@TestMetadata("contextualInlineCall.kt")
public void testContextualInlineCall() throws Exception {
runTest("compiler/testData/ir/irText/declarations/contextReceivers/contextualInlineCall.kt");
}
@Test
@TestMetadata("contextualPrimaryConstructorWithParams.kt")
public void testContextualPrimaryConstructorWithParams() throws Exception {
runTest("compiler/testData/ir/irText/declarations/contextReceivers/contextualPrimaryConstructorWithParams.kt");
}
@Test
@TestMetadata("delegatedPropertiesOperators.kt")
public void testDelegatedPropertiesOperators() throws Exception {
runTest("compiler/testData/ir/irText/declarations/contextReceivers/delegatedPropertiesOperators.kt");
}
@Test
@TestMetadata("function.kt")
public void testFunction() throws Exception {
@@ -745,6 +781,18 @@ public class FirLightTreeJsIrTextTestGenerated extends AbstractFirLightTreeJsIrT
runTest("compiler/testData/ir/irText/declarations/contextReceivers/genericOuterClass.kt");
}
@Test
@TestMetadata("iteratorOperator.kt")
public void testIteratorOperator() throws Exception {
runTest("compiler/testData/ir/irText/declarations/contextReceivers/iteratorOperator.kt");
}
@Test
@TestMetadata("kt52791.kt")
public void testKt52791() throws Exception {
runTest("compiler/testData/ir/irText/declarations/contextReceivers/kt52791.kt");
}
@Test
@TestMetadata("lazy.kt")
public void testLazy() throws Exception {
@@ -763,6 +811,12 @@ public class FirLightTreeJsIrTextTestGenerated extends AbstractFirLightTreeJsIrT
runTest("compiler/testData/ir/irText/declarations/contextReceivers/overloading.kt");
}
@Test
@TestMetadata("passingLambdaToContextualParam.kt")
public void testPassingLambdaToContextualParam() throws Exception {
runTest("compiler/testData/ir/irText/declarations/contextReceivers/passingLambdaToContextualParam.kt");
}
@Test
@TestMetadata("plusMatrix.kt")
public void testPlusMatrix() throws Exception {
@@ -787,6 +841,12 @@ public class FirLightTreeJsIrTextTestGenerated extends AbstractFirLightTreeJsIrT
runTest("compiler/testData/ir/irText/declarations/contextReceivers/typeParameterAsContextReceiver.kt");
}
@Test
@TestMetadata("unaryOperators.kt")
public void testUnaryOperators() throws Exception {
runTest("compiler/testData/ir/irText/declarations/contextReceivers/unaryOperators.kt");
}
@Nested
@TestMetadata("compiler/testData/ir/irText/declarations/contextReceivers/fromKEEP")
@TestDataPath("$PROJECT_ROOT")
@@ -795,6 +855,36 @@ public class FirLightTreeJsIrTextTestGenerated extends AbstractFirLightTreeJsIrT
public void testAllFilesPresentInFromKEEP() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/ir/irText/declarations/contextReceivers/fromKEEP"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true);
}
@Test
@TestMetadata("canvas.kt")
public void testCanvas() throws Exception {
runTest("compiler/testData/ir/irText/declarations/contextReceivers/fromKEEP/canvas.kt");
}
@Test
@TestMetadata("compareTo.kt")
public void testCompareTo() throws Exception {
runTest("compiler/testData/ir/irText/declarations/contextReceivers/fromKEEP/compareTo.kt");
}
@Test
@TestMetadata("dp.kt")
public void testDp() throws Exception {
runTest("compiler/testData/ir/irText/declarations/contextReceivers/fromKEEP/dp.kt");
}
@Test
@TestMetadata("functionalType.kt")
public void testFunctionalType() throws Exception {
runTest("compiler/testData/ir/irText/declarations/contextReceivers/fromKEEP/functionalType.kt");
}
@Test
@TestMetadata("monoidSum.kt")
public void testMonoidSum() throws Exception {
runTest("compiler/testData/ir/irText/declarations/contextReceivers/fromKEEP/monoidSum.kt");
}
}
}
@@ -709,24 +709,60 @@ public class FirPsiJsIrTextTestGenerated extends AbstractFirPsiJsIrTextTest {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/ir/irText/declarations/contextReceivers"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true);
}
@Test
@TestMetadata("arrayAccessCompositeOperators.kt")
public void testArrayAccessCompositeOperators() throws Exception {
runTest("compiler/testData/ir/irText/declarations/contextReceivers/arrayAccessCompositeOperators.kt");
}
@Test
@TestMetadata("arrayAccessOperators.kt")
public void testArrayAccessOperators() throws Exception {
runTest("compiler/testData/ir/irText/declarations/contextReceivers/arrayAccessOperators.kt");
}
@Test
@TestMetadata("class.kt")
public void testClass() throws Exception {
runTest("compiler/testData/ir/irText/declarations/contextReceivers/class.kt");
}
@Test
@TestMetadata("compoundAssignmentOperators.kt")
public void testCompoundAssignmentOperators() throws Exception {
runTest("compiler/testData/ir/irText/declarations/contextReceivers/compoundAssignmentOperators.kt");
}
@Test
@TestMetadata("contextReceiverMethod.kt")
public void testContextReceiverMethod() throws Exception {
runTest("compiler/testData/ir/irText/declarations/contextReceivers/contextReceiverMethod.kt");
}
@Test
@TestMetadata("contextualFunctionConversion.kt")
public void testContextualFunctionConversion() throws Exception {
runTest("compiler/testData/ir/irText/declarations/contextReceivers/contextualFunctionConversion.kt");
}
@Test
@TestMetadata("contextualInlineCall.kt")
public void testContextualInlineCall() throws Exception {
runTest("compiler/testData/ir/irText/declarations/contextReceivers/contextualInlineCall.kt");
}
@Test
@TestMetadata("contextualPrimaryConstructorWithParams.kt")
public void testContextualPrimaryConstructorWithParams() throws Exception {
runTest("compiler/testData/ir/irText/declarations/contextReceivers/contextualPrimaryConstructorWithParams.kt");
}
@Test
@TestMetadata("delegatedPropertiesOperators.kt")
public void testDelegatedPropertiesOperators() throws Exception {
runTest("compiler/testData/ir/irText/declarations/contextReceivers/delegatedPropertiesOperators.kt");
}
@Test
@TestMetadata("function.kt")
public void testFunction() throws Exception {
@@ -745,6 +781,18 @@ public class FirPsiJsIrTextTestGenerated extends AbstractFirPsiJsIrTextTest {
runTest("compiler/testData/ir/irText/declarations/contextReceivers/genericOuterClass.kt");
}
@Test
@TestMetadata("iteratorOperator.kt")
public void testIteratorOperator() throws Exception {
runTest("compiler/testData/ir/irText/declarations/contextReceivers/iteratorOperator.kt");
}
@Test
@TestMetadata("kt52791.kt")
public void testKt52791() throws Exception {
runTest("compiler/testData/ir/irText/declarations/contextReceivers/kt52791.kt");
}
@Test
@TestMetadata("lazy.kt")
public void testLazy() throws Exception {
@@ -763,6 +811,12 @@ public class FirPsiJsIrTextTestGenerated extends AbstractFirPsiJsIrTextTest {
runTest("compiler/testData/ir/irText/declarations/contextReceivers/overloading.kt");
}
@Test
@TestMetadata("passingLambdaToContextualParam.kt")
public void testPassingLambdaToContextualParam() throws Exception {
runTest("compiler/testData/ir/irText/declarations/contextReceivers/passingLambdaToContextualParam.kt");
}
@Test
@TestMetadata("plusMatrix.kt")
public void testPlusMatrix() throws Exception {
@@ -787,6 +841,12 @@ public class FirPsiJsIrTextTestGenerated extends AbstractFirPsiJsIrTextTest {
runTest("compiler/testData/ir/irText/declarations/contextReceivers/typeParameterAsContextReceiver.kt");
}
@Test
@TestMetadata("unaryOperators.kt")
public void testUnaryOperators() throws Exception {
runTest("compiler/testData/ir/irText/declarations/contextReceivers/unaryOperators.kt");
}
@Nested
@TestMetadata("compiler/testData/ir/irText/declarations/contextReceivers/fromKEEP")
@TestDataPath("$PROJECT_ROOT")
@@ -795,6 +855,36 @@ public class FirPsiJsIrTextTestGenerated extends AbstractFirPsiJsIrTextTest {
public void testAllFilesPresentInFromKEEP() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/ir/irText/declarations/contextReceivers/fromKEEP"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true);
}
@Test
@TestMetadata("canvas.kt")
public void testCanvas() throws Exception {
runTest("compiler/testData/ir/irText/declarations/contextReceivers/fromKEEP/canvas.kt");
}
@Test
@TestMetadata("compareTo.kt")
public void testCompareTo() throws Exception {
runTest("compiler/testData/ir/irText/declarations/contextReceivers/fromKEEP/compareTo.kt");
}
@Test
@TestMetadata("dp.kt")
public void testDp() throws Exception {
runTest("compiler/testData/ir/irText/declarations/contextReceivers/fromKEEP/dp.kt");
}
@Test
@TestMetadata("functionalType.kt")
public void testFunctionalType() throws Exception {
runTest("compiler/testData/ir/irText/declarations/contextReceivers/fromKEEP/functionalType.kt");
}
@Test
@TestMetadata("monoidSum.kt")
public void testMonoidSum() throws Exception {
runTest("compiler/testData/ir/irText/declarations/contextReceivers/fromKEEP/monoidSum.kt");
}
}
}
@@ -709,24 +709,60 @@ public class ClassicJsIrTextTestGenerated extends AbstractClassicJsIrTextTest {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/ir/irText/declarations/contextReceivers"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true);
}
@Test
@TestMetadata("arrayAccessCompositeOperators.kt")
public void testArrayAccessCompositeOperators() throws Exception {
runTest("compiler/testData/ir/irText/declarations/contextReceivers/arrayAccessCompositeOperators.kt");
}
@Test
@TestMetadata("arrayAccessOperators.kt")
public void testArrayAccessOperators() throws Exception {
runTest("compiler/testData/ir/irText/declarations/contextReceivers/arrayAccessOperators.kt");
}
@Test
@TestMetadata("class.kt")
public void testClass() throws Exception {
runTest("compiler/testData/ir/irText/declarations/contextReceivers/class.kt");
}
@Test
@TestMetadata("compoundAssignmentOperators.kt")
public void testCompoundAssignmentOperators() throws Exception {
runTest("compiler/testData/ir/irText/declarations/contextReceivers/compoundAssignmentOperators.kt");
}
@Test
@TestMetadata("contextReceiverMethod.kt")
public void testContextReceiverMethod() throws Exception {
runTest("compiler/testData/ir/irText/declarations/contextReceivers/contextReceiverMethod.kt");
}
@Test
@TestMetadata("contextualFunctionConversion.kt")
public void testContextualFunctionConversion() throws Exception {
runTest("compiler/testData/ir/irText/declarations/contextReceivers/contextualFunctionConversion.kt");
}
@Test
@TestMetadata("contextualInlineCall.kt")
public void testContextualInlineCall() throws Exception {
runTest("compiler/testData/ir/irText/declarations/contextReceivers/contextualInlineCall.kt");
}
@Test
@TestMetadata("contextualPrimaryConstructorWithParams.kt")
public void testContextualPrimaryConstructorWithParams() throws Exception {
runTest("compiler/testData/ir/irText/declarations/contextReceivers/contextualPrimaryConstructorWithParams.kt");
}
@Test
@TestMetadata("delegatedPropertiesOperators.kt")
public void testDelegatedPropertiesOperators() throws Exception {
runTest("compiler/testData/ir/irText/declarations/contextReceivers/delegatedPropertiesOperators.kt");
}
@Test
@TestMetadata("function.kt")
public void testFunction() throws Exception {
@@ -745,6 +781,18 @@ public class ClassicJsIrTextTestGenerated extends AbstractClassicJsIrTextTest {
runTest("compiler/testData/ir/irText/declarations/contextReceivers/genericOuterClass.kt");
}
@Test
@TestMetadata("iteratorOperator.kt")
public void testIteratorOperator() throws Exception {
runTest("compiler/testData/ir/irText/declarations/contextReceivers/iteratorOperator.kt");
}
@Test
@TestMetadata("kt52791.kt")
public void testKt52791() throws Exception {
runTest("compiler/testData/ir/irText/declarations/contextReceivers/kt52791.kt");
}
@Test
@TestMetadata("lazy.kt")
public void testLazy() throws Exception {
@@ -763,6 +811,12 @@ public class ClassicJsIrTextTestGenerated extends AbstractClassicJsIrTextTest {
runTest("compiler/testData/ir/irText/declarations/contextReceivers/overloading.kt");
}
@Test
@TestMetadata("passingLambdaToContextualParam.kt")
public void testPassingLambdaToContextualParam() throws Exception {
runTest("compiler/testData/ir/irText/declarations/contextReceivers/passingLambdaToContextualParam.kt");
}
@Test
@TestMetadata("plusMatrix.kt")
public void testPlusMatrix() throws Exception {
@@ -787,6 +841,12 @@ public class ClassicJsIrTextTestGenerated extends AbstractClassicJsIrTextTest {
runTest("compiler/testData/ir/irText/declarations/contextReceivers/typeParameterAsContextReceiver.kt");
}
@Test
@TestMetadata("unaryOperators.kt")
public void testUnaryOperators() throws Exception {
runTest("compiler/testData/ir/irText/declarations/contextReceivers/unaryOperators.kt");
}
@Nested
@TestMetadata("compiler/testData/ir/irText/declarations/contextReceivers/fromKEEP")
@TestDataPath("$PROJECT_ROOT")
@@ -795,6 +855,36 @@ public class ClassicJsIrTextTestGenerated extends AbstractClassicJsIrTextTest {
public void testAllFilesPresentInFromKEEP() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/ir/irText/declarations/contextReceivers/fromKEEP"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true);
}
@Test
@TestMetadata("canvas.kt")
public void testCanvas() throws Exception {
runTest("compiler/testData/ir/irText/declarations/contextReceivers/fromKEEP/canvas.kt");
}
@Test
@TestMetadata("compareTo.kt")
public void testCompareTo() throws Exception {
runTest("compiler/testData/ir/irText/declarations/contextReceivers/fromKEEP/compareTo.kt");
}
@Test
@TestMetadata("dp.kt")
public void testDp() throws Exception {
runTest("compiler/testData/ir/irText/declarations/contextReceivers/fromKEEP/dp.kt");
}
@Test
@TestMetadata("functionalType.kt")
public void testFunctionalType() throws Exception {
runTest("compiler/testData/ir/irText/declarations/contextReceivers/fromKEEP/functionalType.kt");
}
@Test
@TestMetadata("monoidSum.kt")
public void testMonoidSum() throws Exception {
runTest("compiler/testData/ir/irText/declarations/contextReceivers/fromKEEP/monoidSum.kt");
}
}
}