[FIR, Tests] Add box tests to verify that disappeared DELEGATE_SPECIAL_FUNCTION_NONE_APPLICABLE leads to executable code

#KT-59903


Merge-request: KT-MR-13423
Merged-by: Evgeniy Zhelenskiy <Evgeniy.Zhelenskiy@jetbrains.com>
This commit is contained in:
Evgeniy.Zhelenskiy
2023-12-08 13:18:59 +00:00
committed by Space Team
parent aff5b91da3
commit 9cef8a2133
25 changed files with 774 additions and 0 deletions
@@ -12490,6 +12490,12 @@ public class FirJsCodegenBoxTestGenerated extends AbstractFirJsCodegenBoxTest {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/delegatedProperty/provideDelegate"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true);
}
@Test
@TestMetadata("commonCaseForInference.kt")
public void testCommonCaseForInference() throws Exception {
runTest("compiler/testData/codegen/box/delegatedProperty/provideDelegate/commonCaseForInference.kt");
}
@Test
@TestMetadata("delegatedPropertyWithIdProvideDelegate.kt")
public void testDelegatedPropertyWithIdProvideDelegate() throws Exception {
@@ -12550,6 +12556,12 @@ public class FirJsCodegenBoxTestGenerated extends AbstractFirJsCodegenBoxTest {
runTest("compiler/testData/codegen/box/delegatedProperty/provideDelegate/inClass.kt");
}
@Test
@TestMetadata("inferenceFromReceiver2.kt")
public void testInferenceFromReceiver2() throws Exception {
runTest("compiler/testData/codegen/box/delegatedProperty/provideDelegate/inferenceFromReceiver2.kt");
}
@Test
@TestMetadata("inlineProvideDelegate.kt")
public void testInlineProvideDelegate() throws Exception {
@@ -12604,6 +12616,12 @@ public class FirJsCodegenBoxTestGenerated extends AbstractFirJsCodegenBoxTest {
runTest("compiler/testData/codegen/box/delegatedProperty/provideDelegate/memberExtension.kt");
}
@Test
@TestMetadata("notNullAssertionInLocalDelegated.kt")
public void testNotNullAssertionInLocalDelegated() throws Exception {
runTest("compiler/testData/codegen/box/delegatedProperty/provideDelegate/notNullAssertionInLocalDelegated.kt");
}
@Test
@TestMetadata("propertyMetadata.kt")
public void testPropertyMetadata() throws Exception {
@@ -12615,6 +12633,12 @@ public class FirJsCodegenBoxTestGenerated extends AbstractFirJsCodegenBoxTest {
public void testProvideDelegateByExtensionFunction() throws Exception {
runTest("compiler/testData/codegen/box/delegatedProperty/provideDelegate/provideDelegateByExtensionFunction.kt");
}
@Test
@TestMetadata("setValue.kt")
public void testSetValue() throws Exception {
runTest("compiler/testData/codegen/box/delegatedProperty/provideDelegate/setValue.kt");
}
}
}
@@ -12663,6 +12687,12 @@ public class FirJsCodegenBoxTestGenerated extends AbstractFirJsCodegenBoxTest {
runTest("compiler/testData/codegen/box/delegation/hiddenSuperOverrideIn1.0.kt");
}
@Test
@TestMetadata("ifWithCallableReferenceInLazy.kt")
public void testIfWithCallableReferenceInLazy() throws Exception {
runTest("compiler/testData/codegen/box/delegation/ifWithCallableReferenceInLazy.kt");
}
@Test
@TestMetadata("inDataClass.kt")
public void testInDataClass() throws Exception {
@@ -12490,6 +12490,12 @@ public class FirJsES6CodegenBoxTestGenerated extends AbstractFirJsES6CodegenBoxT
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/delegatedProperty/provideDelegate"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true);
}
@Test
@TestMetadata("commonCaseForInference.kt")
public void testCommonCaseForInference() throws Exception {
runTest("compiler/testData/codegen/box/delegatedProperty/provideDelegate/commonCaseForInference.kt");
}
@Test
@TestMetadata("delegatedPropertyWithIdProvideDelegate.kt")
public void testDelegatedPropertyWithIdProvideDelegate() throws Exception {
@@ -12550,6 +12556,12 @@ public class FirJsES6CodegenBoxTestGenerated extends AbstractFirJsES6CodegenBoxT
runTest("compiler/testData/codegen/box/delegatedProperty/provideDelegate/inClass.kt");
}
@Test
@TestMetadata("inferenceFromReceiver2.kt")
public void testInferenceFromReceiver2() throws Exception {
runTest("compiler/testData/codegen/box/delegatedProperty/provideDelegate/inferenceFromReceiver2.kt");
}
@Test
@TestMetadata("inlineProvideDelegate.kt")
public void testInlineProvideDelegate() throws Exception {
@@ -12604,6 +12616,12 @@ public class FirJsES6CodegenBoxTestGenerated extends AbstractFirJsES6CodegenBoxT
runTest("compiler/testData/codegen/box/delegatedProperty/provideDelegate/memberExtension.kt");
}
@Test
@TestMetadata("notNullAssertionInLocalDelegated.kt")
public void testNotNullAssertionInLocalDelegated() throws Exception {
runTest("compiler/testData/codegen/box/delegatedProperty/provideDelegate/notNullAssertionInLocalDelegated.kt");
}
@Test
@TestMetadata("propertyMetadata.kt")
public void testPropertyMetadata() throws Exception {
@@ -12615,6 +12633,12 @@ public class FirJsES6CodegenBoxTestGenerated extends AbstractFirJsES6CodegenBoxT
public void testProvideDelegateByExtensionFunction() throws Exception {
runTest("compiler/testData/codegen/box/delegatedProperty/provideDelegate/provideDelegateByExtensionFunction.kt");
}
@Test
@TestMetadata("setValue.kt")
public void testSetValue() throws Exception {
runTest("compiler/testData/codegen/box/delegatedProperty/provideDelegate/setValue.kt");
}
}
}
@@ -12663,6 +12687,12 @@ public class FirJsES6CodegenBoxTestGenerated extends AbstractFirJsES6CodegenBoxT
runTest("compiler/testData/codegen/box/delegation/hiddenSuperOverrideIn1.0.kt");
}
@Test
@TestMetadata("ifWithCallableReferenceInLazy.kt")
public void testIfWithCallableReferenceInLazy() throws Exception {
runTest("compiler/testData/codegen/box/delegation/ifWithCallableReferenceInLazy.kt");
}
@Test
@TestMetadata("inDataClass.kt")
public void testInDataClass() throws Exception {
@@ -12490,6 +12490,12 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/delegatedProperty/provideDelegate"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true);
}
@Test
@TestMetadata("commonCaseForInference.kt")
public void testCommonCaseForInference() throws Exception {
runTest("compiler/testData/codegen/box/delegatedProperty/provideDelegate/commonCaseForInference.kt");
}
@Test
@TestMetadata("delegatedPropertyWithIdProvideDelegate.kt")
public void testDelegatedPropertyWithIdProvideDelegate() throws Exception {
@@ -12550,6 +12556,12 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest {
runTest("compiler/testData/codegen/box/delegatedProperty/provideDelegate/inClass.kt");
}
@Test
@TestMetadata("inferenceFromReceiver2.kt")
public void testInferenceFromReceiver2() throws Exception {
runTest("compiler/testData/codegen/box/delegatedProperty/provideDelegate/inferenceFromReceiver2.kt");
}
@Test
@TestMetadata("inlineProvideDelegate.kt")
public void testInlineProvideDelegate() throws Exception {
@@ -12604,6 +12616,12 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest {
runTest("compiler/testData/codegen/box/delegatedProperty/provideDelegate/memberExtension.kt");
}
@Test
@TestMetadata("notNullAssertionInLocalDelegated.kt")
public void testNotNullAssertionInLocalDelegated() throws Exception {
runTest("compiler/testData/codegen/box/delegatedProperty/provideDelegate/notNullAssertionInLocalDelegated.kt");
}
@Test
@TestMetadata("propertyMetadata.kt")
public void testPropertyMetadata() throws Exception {
@@ -12615,6 +12633,12 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest {
public void testProvideDelegateByExtensionFunction() throws Exception {
runTest("compiler/testData/codegen/box/delegatedProperty/provideDelegate/provideDelegateByExtensionFunction.kt");
}
@Test
@TestMetadata("setValue.kt")
public void testSetValue() throws Exception {
runTest("compiler/testData/codegen/box/delegatedProperty/provideDelegate/setValue.kt");
}
}
}
@@ -12663,6 +12687,12 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest {
runTest("compiler/testData/codegen/box/delegation/hiddenSuperOverrideIn1.0.kt");
}
@Test
@TestMetadata("ifWithCallableReferenceInLazy.kt")
public void testIfWithCallableReferenceInLazy() throws Exception {
runTest("compiler/testData/codegen/box/delegation/ifWithCallableReferenceInLazy.kt");
}
@Test
@TestMetadata("inDataClass.kt")
public void testInDataClass() throws Exception {
@@ -12490,6 +12490,12 @@ public class IrJsES6CodegenBoxTestGenerated extends AbstractIrJsES6CodegenBoxTes
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/delegatedProperty/provideDelegate"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true);
}
@Test
@TestMetadata("commonCaseForInference.kt")
public void testCommonCaseForInference() throws Exception {
runTest("compiler/testData/codegen/box/delegatedProperty/provideDelegate/commonCaseForInference.kt");
}
@Test
@TestMetadata("delegatedPropertyWithIdProvideDelegate.kt")
public void testDelegatedPropertyWithIdProvideDelegate() throws Exception {
@@ -12550,6 +12556,12 @@ public class IrJsES6CodegenBoxTestGenerated extends AbstractIrJsES6CodegenBoxTes
runTest("compiler/testData/codegen/box/delegatedProperty/provideDelegate/inClass.kt");
}
@Test
@TestMetadata("inferenceFromReceiver2.kt")
public void testInferenceFromReceiver2() throws Exception {
runTest("compiler/testData/codegen/box/delegatedProperty/provideDelegate/inferenceFromReceiver2.kt");
}
@Test
@TestMetadata("inlineProvideDelegate.kt")
public void testInlineProvideDelegate() throws Exception {
@@ -12604,6 +12616,12 @@ public class IrJsES6CodegenBoxTestGenerated extends AbstractIrJsES6CodegenBoxTes
runTest("compiler/testData/codegen/box/delegatedProperty/provideDelegate/memberExtension.kt");
}
@Test
@TestMetadata("notNullAssertionInLocalDelegated.kt")
public void testNotNullAssertionInLocalDelegated() throws Exception {
runTest("compiler/testData/codegen/box/delegatedProperty/provideDelegate/notNullAssertionInLocalDelegated.kt");
}
@Test
@TestMetadata("propertyMetadata.kt")
public void testPropertyMetadata() throws Exception {
@@ -12615,6 +12633,12 @@ public class IrJsES6CodegenBoxTestGenerated extends AbstractIrJsES6CodegenBoxTes
public void testProvideDelegateByExtensionFunction() throws Exception {
runTest("compiler/testData/codegen/box/delegatedProperty/provideDelegate/provideDelegateByExtensionFunction.kt");
}
@Test
@TestMetadata("setValue.kt")
public void testSetValue() throws Exception {
runTest("compiler/testData/codegen/box/delegatedProperty/provideDelegate/setValue.kt");
}
}
}
@@ -12663,6 +12687,12 @@ public class IrJsES6CodegenBoxTestGenerated extends AbstractIrJsES6CodegenBoxTes
runTest("compiler/testData/codegen/box/delegation/hiddenSuperOverrideIn1.0.kt");
}
@Test
@TestMetadata("ifWithCallableReferenceInLazy.kt")
public void testIfWithCallableReferenceInLazy() throws Exception {
runTest("compiler/testData/codegen/box/delegation/ifWithCallableReferenceInLazy.kt");
}
@Test
@TestMetadata("inDataClass.kt")
public void testInDataClass() throws Exception {