[Tests] Make sure desugaring works with context receivers

This commit is contained in:
Anastasiya Shadrina
2021-11-17 17:39:49 +07:00
committed by TeamCityServer
parent 0bfea4fc52
commit 4d0eb74d79
29 changed files with 2740 additions and 0 deletions
@@ -16175,18 +16175,48 @@ public class FirBlackBoxCodegenTestGenerated extends AbstractFirBlackBoxCodegenT
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/extensionFunctions/contextReceivers"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
}
@Test
@TestMetadata("arrayAccessCompositeOperators.kt")
public void testArrayAccessCompositeOperators() throws Exception {
runTest("compiler/testData/codegen/box/extensionFunctions/contextReceivers/arrayAccessCompositeOperators.kt");
}
@Test
@TestMetadata("arrayAccessOperators.kt")
public void testArrayAccessOperators() throws Exception {
runTest("compiler/testData/codegen/box/extensionFunctions/contextReceivers/arrayAccessOperators.kt");
}
@Test
@TestMetadata("compoundAssignmentOperators.kt")
public void testCompoundAssignmentOperators() throws Exception {
runTest("compiler/testData/codegen/box/extensionFunctions/contextReceivers/compoundAssignmentOperators.kt");
}
@Test
@TestMetadata("contextAndExtensionSameName.kt")
public void testContextAndExtensionSameName() throws Exception {
runTest("compiler/testData/codegen/box/extensionFunctions/contextReceivers/contextAndExtensionSameName.kt");
}
@Test
@TestMetadata("delegatedPropertiesOperators.kt")
public void testDelegatedPropertiesOperators() throws Exception {
runTest("compiler/testData/codegen/box/extensionFunctions/contextReceivers/delegatedPropertiesOperators.kt");
}
@Test
@TestMetadata("inferGenericPropertyType.kt")
public void testInferGenericPropertyType() throws Exception {
runTest("compiler/testData/codegen/box/extensionFunctions/contextReceivers/inferGenericPropertyType.kt");
}
@Test
@TestMetadata("iteratorOperator.kt")
public void testIteratorOperator() throws Exception {
runTest("compiler/testData/codegen/box/extensionFunctions/contextReceivers/iteratorOperator.kt");
}
@Test
@TestMetadata("localDeclaration.kt")
public void testLocalDeclaration() throws Exception {
@@ -16229,6 +16259,12 @@ public class FirBlackBoxCodegenTestGenerated extends AbstractFirBlackBoxCodegenT
runTest("compiler/testData/codegen/box/extensionFunctions/contextReceivers/this.kt");
}
@Test
@TestMetadata("unaryOperators.kt")
public void testUnaryOperators() throws Exception {
runTest("compiler/testData/codegen/box/extensionFunctions/contextReceivers/unaryOperators.kt");
}
@Test
@TestMetadata("useFromAnotherModule.kt")
public void testUseFromAnotherModule() throws Exception {
@@ -751,18 +751,42 @@ public class Fir2IrTextTestGenerated extends AbstractFir2IrTextTest {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/ir/irText/declarations/contextReceivers"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_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("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 {
@@ -781,6 +805,12 @@ public class Fir2IrTextTestGenerated extends AbstractFir2IrTextTest {
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("lazy.kt")
public void testLazy() throws Exception {
@@ -823,6 +853,12 @@ public class Fir2IrTextTestGenerated extends AbstractFir2IrTextTest {
runTest("compiler/testData/ir/irText/declarations/contextReceivers/thisWithCustomLabel.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")