[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
@@ -13542,6 +13542,12 @@ public class FirNativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTe
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/delegatedProperty/provideDelegate"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, 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 {
@@ -13602,6 +13608,12 @@ public class FirNativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTe
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 {
@@ -13656,6 +13668,12 @@ public class FirNativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTe
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 {
@@ -13667,6 +13685,12 @@ public class FirNativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTe
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");
}
}
}
@@ -13718,6 +13742,12 @@ public class FirNativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTe
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 {
@@ -13854,6 +13854,12 @@ public class FirNativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenB
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/delegatedProperty/provideDelegate"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, 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 {
@@ -13914,6 +13920,12 @@ public class FirNativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenB
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 {
@@ -13968,6 +13980,12 @@ public class FirNativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenB
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 {
@@ -13979,6 +13997,12 @@ public class FirNativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenB
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");
}
}
}
@@ -14032,6 +14056,12 @@ public class FirNativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenB
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 {
@@ -13230,6 +13230,12 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/delegatedProperty/provideDelegate"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, 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 {
@@ -13290,6 +13296,12 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest
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 {
@@ -13344,6 +13356,12 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest
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 {
@@ -13355,6 +13373,12 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest
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");
}
}
}
@@ -13404,6 +13428,12 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest
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 {
@@ -13543,6 +13543,12 @@ public class NativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenBoxT
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/delegatedProperty/provideDelegate"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, 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 {
@@ -13603,6 +13609,12 @@ public class NativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenBoxT
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 {
@@ -13657,6 +13669,12 @@ public class NativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenBoxT
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 {
@@ -13668,6 +13686,12 @@ public class NativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenBoxT
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");
}
}
}
@@ -13719,6 +13743,12 @@ public class NativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenBoxT
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 {