[box-tests] Added a couple of multi-module box tests
This commit is contained in:
+12
@@ -158,6 +158,18 @@ public class FirBlackBoxInlineCodegenTestGenerated extends AbstractFirBlackBoxIn
|
|||||||
runTest("compiler/testData/codegen/boxInline/anonymousObject/defineClass.kt");
|
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
|
@Test
|
||||||
@TestMetadata("functionExpression.kt")
|
@TestMetadata("functionExpression.kt")
|
||||||
public void testFunctionExpression() throws Exception {
|
public void testFunctionExpression() throws Exception {
|
||||||
|
|||||||
+12
@@ -158,6 +158,18 @@ public class FirLightTreeBlackBoxInlineCodegenTestGenerated extends AbstractFirL
|
|||||||
runTest("compiler/testData/codegen/boxInline/anonymousObject/defineClass.kt");
|
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
|
@Test
|
||||||
@TestMetadata("functionExpression.kt")
|
@TestMetadata("functionExpression.kt")
|
||||||
public void testFunctionExpression() throws Exception {
|
public void testFunctionExpression() throws Exception {
|
||||||
|
|||||||
+12
@@ -158,6 +158,18 @@ public class FirSerializeCompileKotlinAgainstInlineKotlinTestGenerated extends A
|
|||||||
runTest("compiler/testData/codegen/boxInline/anonymousObject/defineClass.kt");
|
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
|
@Test
|
||||||
@TestMetadata("functionExpression.kt")
|
@TestMetadata("functionExpression.kt")
|
||||||
public void testFunctionExpression() throws Exception {
|
public void testFunctionExpression() throws Exception {
|
||||||
|
|||||||
+17
@@ -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()
|
||||||
+18
@@ -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()
|
||||||
+12
@@ -158,6 +158,18 @@ public class BlackBoxInlineCodegenTestGenerated extends AbstractBlackBoxInlineCo
|
|||||||
runTest("compiler/testData/codegen/boxInline/anonymousObject/defineClass.kt");
|
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
|
@Test
|
||||||
@TestMetadata("functionExpression.kt")
|
@TestMetadata("functionExpression.kt")
|
||||||
public void testFunctionExpression() throws Exception {
|
public void testFunctionExpression() throws Exception {
|
||||||
|
|||||||
+12
@@ -158,6 +158,18 @@ public class CompileKotlinAgainstInlineKotlinTestGenerated extends AbstractCompi
|
|||||||
runTest("compiler/testData/codegen/boxInline/anonymousObject/defineClass.kt");
|
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
|
@Test
|
||||||
@TestMetadata("functionExpression.kt")
|
@TestMetadata("functionExpression.kt")
|
||||||
public void testFunctionExpression() throws Exception {
|
public void testFunctionExpression() throws Exception {
|
||||||
|
|||||||
+12
@@ -158,6 +158,18 @@ public class IrBlackBoxInlineCodegenTestGenerated extends AbstractIrBlackBoxInli
|
|||||||
runTest("compiler/testData/codegen/boxInline/anonymousObject/defineClass.kt");
|
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
|
@Test
|
||||||
@TestMetadata("functionExpression.kt")
|
@TestMetadata("functionExpression.kt")
|
||||||
public void testFunctionExpression() throws Exception {
|
public void testFunctionExpression() throws Exception {
|
||||||
|
|||||||
+12
@@ -158,6 +158,18 @@ public class IrCompileKotlinAgainstInlineKotlinTestGenerated extends AbstractIrC
|
|||||||
runTest("compiler/testData/codegen/boxInline/anonymousObject/defineClass.kt");
|
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
|
@Test
|
||||||
@TestMetadata("functionExpression.kt")
|
@TestMetadata("functionExpression.kt")
|
||||||
public void testFunctionExpression() throws Exception {
|
public void testFunctionExpression() throws Exception {
|
||||||
|
|||||||
+12
@@ -158,6 +158,18 @@ public class IrSerializeCompileKotlinAgainstInlineKotlinTestGenerated extends Ab
|
|||||||
runTest("compiler/testData/codegen/boxInline/anonymousObject/defineClass.kt");
|
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
|
@Test
|
||||||
@TestMetadata("functionExpression.kt")
|
@TestMetadata("functionExpression.kt")
|
||||||
public void testFunctionExpression() throws Exception {
|
public void testFunctionExpression() throws Exception {
|
||||||
|
|||||||
+12
@@ -158,6 +158,18 @@ public class JvmIrAgainstOldBoxInlineTestGenerated extends AbstractJvmIrAgainstO
|
|||||||
runTest("compiler/testData/codegen/boxInline/anonymousObject/defineClass.kt");
|
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
|
@Test
|
||||||
@TestMetadata("functionExpression.kt")
|
@TestMetadata("functionExpression.kt")
|
||||||
public void testFunctionExpression() throws Exception {
|
public void testFunctionExpression() throws Exception {
|
||||||
|
|||||||
+12
@@ -158,6 +158,18 @@ public class JvmOldAgainstIrBoxInlineTestGenerated extends AbstractJvmOldAgainst
|
|||||||
runTest("compiler/testData/codegen/boxInline/anonymousObject/defineClass.kt");
|
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
|
@Test
|
||||||
@TestMetadata("functionExpression.kt")
|
@TestMetadata("functionExpression.kt")
|
||||||
public void testFunctionExpression() throws Exception {
|
public void testFunctionExpression() throws Exception {
|
||||||
|
|||||||
+12
@@ -158,6 +158,18 @@ public class JsCodegenInlineTestGenerated extends AbstractJsCodegenInlineTest {
|
|||||||
runTest("compiler/testData/codegen/boxInline/anonymousObject/defineClass.kt");
|
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
|
@Test
|
||||||
@TestMetadata("functionExpression.kt")
|
@TestMetadata("functionExpression.kt")
|
||||||
public void testFunctionExpression() throws Exception {
|
public void testFunctionExpression() throws Exception {
|
||||||
|
|||||||
+12
@@ -158,6 +158,18 @@ public class IrJsCodegenInlineTestGenerated extends AbstractIrJsCodegenInlineTes
|
|||||||
runTest("compiler/testData/codegen/boxInline/anonymousObject/defineClass.kt");
|
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
|
@Test
|
||||||
@TestMetadata("functionExpression.kt")
|
@TestMetadata("functionExpression.kt")
|
||||||
public void testFunctionExpression() throws Exception {
|
public void testFunctionExpression() throws Exception {
|
||||||
|
|||||||
+10
@@ -150,6 +150,16 @@ public class IrCodegenBoxInlineWasmTestGenerated extends AbstractIrCodegenBoxInl
|
|||||||
runTest("compiler/testData/codegen/boxInline/anonymousObject/defineClass.kt");
|
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")
|
@TestMetadata("functionExpression.kt")
|
||||||
public void testFunctionExpression() throws Exception {
|
public void testFunctionExpression() throws Exception {
|
||||||
runTest("compiler/testData/codegen/boxInline/anonymousObject/functionExpression.kt");
|
runTest("compiler/testData/codegen/boxInline/anonymousObject/functionExpression.kt");
|
||||||
|
|||||||
+12
@@ -39230,6 +39230,18 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest
|
|||||||
runTest("compiler/testData/codegen/boxInline/anonymousObject/defineClass.kt");
|
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
|
@Test
|
||||||
@TestMetadata("functionExpression.kt")
|
@TestMetadata("functionExpression.kt")
|
||||||
public void testFunctionExpression() throws Exception {
|
public void testFunctionExpression() throws Exception {
|
||||||
|
|||||||
Reference in New Issue
Block a user