[box-tests] Added a couple of multi-module box tests

This commit is contained in:
Igor Chevdar
2022-07-05 17:06:40 +03:00
committed by Space
parent 5144efc7ae
commit a61d05971e
16 changed files with 201 additions and 0 deletions
@@ -158,6 +158,18 @@ public class FirBlackBoxInlineCodegenTestGenerated extends AbstractFirBlackBoxIn
runTest("compiler/testData/codegen/boxInline/anonymousObject/defineClass.kt");
}
@Test
@TestMetadata("fakeOverrideInDefaultMultiModule.kt")
public void testFakeOverrideInDefaultMultiModule() throws Exception {
runTest("compiler/testData/codegen/boxInline/anonymousObject/fakeOverrideInDefaultMultiModule.kt");
}
@Test
@TestMetadata("fakeOverrideMultiModule.kt")
public void testFakeOverrideMultiModule() throws Exception {
runTest("compiler/testData/codegen/boxInline/anonymousObject/fakeOverrideMultiModule.kt");
}
@Test
@TestMetadata("functionExpression.kt")
public void testFunctionExpression() throws Exception {
@@ -158,6 +158,18 @@ public class FirLightTreeBlackBoxInlineCodegenTestGenerated extends AbstractFirL
runTest("compiler/testData/codegen/boxInline/anonymousObject/defineClass.kt");
}
@Test
@TestMetadata("fakeOverrideInDefaultMultiModule.kt")
public void testFakeOverrideInDefaultMultiModule() throws Exception {
runTest("compiler/testData/codegen/boxInline/anonymousObject/fakeOverrideInDefaultMultiModule.kt");
}
@Test
@TestMetadata("fakeOverrideMultiModule.kt")
public void testFakeOverrideMultiModule() throws Exception {
runTest("compiler/testData/codegen/boxInline/anonymousObject/fakeOverrideMultiModule.kt");
}
@Test
@TestMetadata("functionExpression.kt")
public void testFunctionExpression() throws Exception {
@@ -158,6 +158,18 @@ public class FirSerializeCompileKotlinAgainstInlineKotlinTestGenerated extends A
runTest("compiler/testData/codegen/boxInline/anonymousObject/defineClass.kt");
}
@Test
@TestMetadata("fakeOverrideInDefaultMultiModule.kt")
public void testFakeOverrideInDefaultMultiModule() throws Exception {
runTest("compiler/testData/codegen/boxInline/anonymousObject/fakeOverrideInDefaultMultiModule.kt");
}
@Test
@TestMetadata("fakeOverrideMultiModule.kt")
public void testFakeOverrideMultiModule() throws Exception {
runTest("compiler/testData/codegen/boxInline/anonymousObject/fakeOverrideMultiModule.kt");
}
@Test
@TestMetadata("functionExpression.kt")
public void testFunctionExpression() throws Exception {
@@ -0,0 +1,17 @@
// NO_CHECK_LAMBDA_INLINING
// MODULE: lib
// FILE: lib.kt
package lib
open class C {
fun o() = "O"
val k = "K"
}
inline fun inlineFun(f: () -> String = { val cc = object : C() {}; cc.o() + cc.k; }): String {
return f()
}
// MODULE: main(lib)
// FILE: box.kt
fun box() = lib.inlineFun()
@@ -0,0 +1,18 @@
// NO_CHECK_LAMBDA_INLINING
// MODULE: lib
// FILE: lib.kt
package lib
open class C {
fun o() = "O"
val k = "K"
}
inline fun inlineFun(): String {
val cc = object : C() {}
return cc.o() + cc.k
}
// MODULE: main(lib)
// FILE: box.kt
fun box() = lib.inlineFun()
@@ -158,6 +158,18 @@ public class BlackBoxInlineCodegenTestGenerated extends AbstractBlackBoxInlineCo
runTest("compiler/testData/codegen/boxInline/anonymousObject/defineClass.kt");
}
@Test
@TestMetadata("fakeOverrideInDefaultMultiModule.kt")
public void testFakeOverrideInDefaultMultiModule() throws Exception {
runTest("compiler/testData/codegen/boxInline/anonymousObject/fakeOverrideInDefaultMultiModule.kt");
}
@Test
@TestMetadata("fakeOverrideMultiModule.kt")
public void testFakeOverrideMultiModule() throws Exception {
runTest("compiler/testData/codegen/boxInline/anonymousObject/fakeOverrideMultiModule.kt");
}
@Test
@TestMetadata("functionExpression.kt")
public void testFunctionExpression() throws Exception {
@@ -158,6 +158,18 @@ public class CompileKotlinAgainstInlineKotlinTestGenerated extends AbstractCompi
runTest("compiler/testData/codegen/boxInline/anonymousObject/defineClass.kt");
}
@Test
@TestMetadata("fakeOverrideInDefaultMultiModule.kt")
public void testFakeOverrideInDefaultMultiModule() throws Exception {
runTest("compiler/testData/codegen/boxInline/anonymousObject/fakeOverrideInDefaultMultiModule.kt");
}
@Test
@TestMetadata("fakeOverrideMultiModule.kt")
public void testFakeOverrideMultiModule() throws Exception {
runTest("compiler/testData/codegen/boxInline/anonymousObject/fakeOverrideMultiModule.kt");
}
@Test
@TestMetadata("functionExpression.kt")
public void testFunctionExpression() throws Exception {
@@ -158,6 +158,18 @@ public class IrBlackBoxInlineCodegenTestGenerated extends AbstractIrBlackBoxInli
runTest("compiler/testData/codegen/boxInline/anonymousObject/defineClass.kt");
}
@Test
@TestMetadata("fakeOverrideInDefaultMultiModule.kt")
public void testFakeOverrideInDefaultMultiModule() throws Exception {
runTest("compiler/testData/codegen/boxInline/anonymousObject/fakeOverrideInDefaultMultiModule.kt");
}
@Test
@TestMetadata("fakeOverrideMultiModule.kt")
public void testFakeOverrideMultiModule() throws Exception {
runTest("compiler/testData/codegen/boxInline/anonymousObject/fakeOverrideMultiModule.kt");
}
@Test
@TestMetadata("functionExpression.kt")
public void testFunctionExpression() throws Exception {
@@ -158,6 +158,18 @@ public class IrCompileKotlinAgainstInlineKotlinTestGenerated extends AbstractIrC
runTest("compiler/testData/codegen/boxInline/anonymousObject/defineClass.kt");
}
@Test
@TestMetadata("fakeOverrideInDefaultMultiModule.kt")
public void testFakeOverrideInDefaultMultiModule() throws Exception {
runTest("compiler/testData/codegen/boxInline/anonymousObject/fakeOverrideInDefaultMultiModule.kt");
}
@Test
@TestMetadata("fakeOverrideMultiModule.kt")
public void testFakeOverrideMultiModule() throws Exception {
runTest("compiler/testData/codegen/boxInline/anonymousObject/fakeOverrideMultiModule.kt");
}
@Test
@TestMetadata("functionExpression.kt")
public void testFunctionExpression() throws Exception {
@@ -158,6 +158,18 @@ public class IrSerializeCompileKotlinAgainstInlineKotlinTestGenerated extends Ab
runTest("compiler/testData/codegen/boxInline/anonymousObject/defineClass.kt");
}
@Test
@TestMetadata("fakeOverrideInDefaultMultiModule.kt")
public void testFakeOverrideInDefaultMultiModule() throws Exception {
runTest("compiler/testData/codegen/boxInline/anonymousObject/fakeOverrideInDefaultMultiModule.kt");
}
@Test
@TestMetadata("fakeOverrideMultiModule.kt")
public void testFakeOverrideMultiModule() throws Exception {
runTest("compiler/testData/codegen/boxInline/anonymousObject/fakeOverrideMultiModule.kt");
}
@Test
@TestMetadata("functionExpression.kt")
public void testFunctionExpression() throws Exception {
@@ -158,6 +158,18 @@ public class JvmIrAgainstOldBoxInlineTestGenerated extends AbstractJvmIrAgainstO
runTest("compiler/testData/codegen/boxInline/anonymousObject/defineClass.kt");
}
@Test
@TestMetadata("fakeOverrideInDefaultMultiModule.kt")
public void testFakeOverrideInDefaultMultiModule() throws Exception {
runTest("compiler/testData/codegen/boxInline/anonymousObject/fakeOverrideInDefaultMultiModule.kt");
}
@Test
@TestMetadata("fakeOverrideMultiModule.kt")
public void testFakeOverrideMultiModule() throws Exception {
runTest("compiler/testData/codegen/boxInline/anonymousObject/fakeOverrideMultiModule.kt");
}
@Test
@TestMetadata("functionExpression.kt")
public void testFunctionExpression() throws Exception {
@@ -158,6 +158,18 @@ public class JvmOldAgainstIrBoxInlineTestGenerated extends AbstractJvmOldAgainst
runTest("compiler/testData/codegen/boxInline/anonymousObject/defineClass.kt");
}
@Test
@TestMetadata("fakeOverrideInDefaultMultiModule.kt")
public void testFakeOverrideInDefaultMultiModule() throws Exception {
runTest("compiler/testData/codegen/boxInline/anonymousObject/fakeOverrideInDefaultMultiModule.kt");
}
@Test
@TestMetadata("fakeOverrideMultiModule.kt")
public void testFakeOverrideMultiModule() throws Exception {
runTest("compiler/testData/codegen/boxInline/anonymousObject/fakeOverrideMultiModule.kt");
}
@Test
@TestMetadata("functionExpression.kt")
public void testFunctionExpression() throws Exception {
@@ -158,6 +158,18 @@ public class JsCodegenInlineTestGenerated extends AbstractJsCodegenInlineTest {
runTest("compiler/testData/codegen/boxInline/anonymousObject/defineClass.kt");
}
@Test
@TestMetadata("fakeOverrideInDefaultMultiModule.kt")
public void testFakeOverrideInDefaultMultiModule() throws Exception {
runTest("compiler/testData/codegen/boxInline/anonymousObject/fakeOverrideInDefaultMultiModule.kt");
}
@Test
@TestMetadata("fakeOverrideMultiModule.kt")
public void testFakeOverrideMultiModule() throws Exception {
runTest("compiler/testData/codegen/boxInline/anonymousObject/fakeOverrideMultiModule.kt");
}
@Test
@TestMetadata("functionExpression.kt")
public void testFunctionExpression() throws Exception {
@@ -158,6 +158,18 @@ public class IrJsCodegenInlineTestGenerated extends AbstractIrJsCodegenInlineTes
runTest("compiler/testData/codegen/boxInline/anonymousObject/defineClass.kt");
}
@Test
@TestMetadata("fakeOverrideInDefaultMultiModule.kt")
public void testFakeOverrideInDefaultMultiModule() throws Exception {
runTest("compiler/testData/codegen/boxInline/anonymousObject/fakeOverrideInDefaultMultiModule.kt");
}
@Test
@TestMetadata("fakeOverrideMultiModule.kt")
public void testFakeOverrideMultiModule() throws Exception {
runTest("compiler/testData/codegen/boxInline/anonymousObject/fakeOverrideMultiModule.kt");
}
@Test
@TestMetadata("functionExpression.kt")
public void testFunctionExpression() throws Exception {
@@ -150,6 +150,16 @@ public class IrCodegenBoxInlineWasmTestGenerated extends AbstractIrCodegenBoxInl
runTest("compiler/testData/codegen/boxInline/anonymousObject/defineClass.kt");
}
@TestMetadata("fakeOverrideInDefaultMultiModule.kt")
public void testFakeOverrideInDefaultMultiModule() throws Exception {
runTest("compiler/testData/codegen/boxInline/anonymousObject/fakeOverrideInDefaultMultiModule.kt");
}
@TestMetadata("fakeOverrideMultiModule.kt")
public void testFakeOverrideMultiModule() throws Exception {
runTest("compiler/testData/codegen/boxInline/anonymousObject/fakeOverrideMultiModule.kt");
}
@TestMetadata("functionExpression.kt")
public void testFunctionExpression() throws Exception {
runTest("compiler/testData/codegen/boxInline/anonymousObject/functionExpression.kt");
@@ -39230,6 +39230,18 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest
runTest("compiler/testData/codegen/boxInline/anonymousObject/defineClass.kt");
}
@Test
@TestMetadata("fakeOverrideInDefaultMultiModule.kt")
public void testFakeOverrideInDefaultMultiModule() throws Exception {
runTest("compiler/testData/codegen/boxInline/anonymousObject/fakeOverrideInDefaultMultiModule.kt");
}
@Test
@TestMetadata("fakeOverrideMultiModule.kt")
public void testFakeOverrideMultiModule() throws Exception {
runTest("compiler/testData/codegen/boxInline/anonymousObject/fakeOverrideMultiModule.kt");
}
@Test
@TestMetadata("functionExpression.kt")
public void testFunctionExpression() throws Exception {