[box-tests] Added a multi-module box test

This commit is contained in:
Igor Chevdar
2022-07-06 12:21:24 +03:00
committed by Space
parent 3471a1b899
commit e36bd5fe90
15 changed files with 101 additions and 0 deletions
@@ -3784,6 +3784,12 @@ public class FirBlackBoxInlineCodegenTestGenerated extends AbstractFirBlackBoxIn
runTest("compiler/testData/codegen/boxInline/property/reifiedVal.kt");
}
@Test
@TestMetadata("reifiedValMultiModule.kt")
public void testReifiedValMultiModule() throws Exception {
runTest("compiler/testData/codegen/boxInline/property/reifiedValMultiModule.kt");
}
@Test
@TestMetadata("reifiedVar.kt")
public void testReifiedVar() throws Exception {
@@ -3784,6 +3784,12 @@ public class FirLightTreeBlackBoxInlineCodegenTestGenerated extends AbstractFirL
runTest("compiler/testData/codegen/boxInline/property/reifiedVal.kt");
}
@Test
@TestMetadata("reifiedValMultiModule.kt")
public void testReifiedValMultiModule() throws Exception {
runTest("compiler/testData/codegen/boxInline/property/reifiedValMultiModule.kt");
}
@Test
@TestMetadata("reifiedVar.kt")
public void testReifiedVar() throws Exception {
@@ -3784,6 +3784,12 @@ public class FirSerializeCompileKotlinAgainstInlineKotlinTestGenerated extends A
runTest("compiler/testData/codegen/boxInline/property/reifiedVal.kt");
}
@Test
@TestMetadata("reifiedValMultiModule.kt")
public void testReifiedValMultiModule() throws Exception {
runTest("compiler/testData/codegen/boxInline/property/reifiedValMultiModule.kt");
}
@Test
@TestMetadata("reifiedVar.kt")
public void testReifiedVar() throws Exception {
@@ -0,0 +1,18 @@
// WITH_STDLIB
// WITH_REFLECT
// MODULE: lib
// FILE: lib.kt
package lib
inline val <reified T: Any> T.value: String
get() = T::class.simpleName!!
// MODULE: main(lib)
// FILE: box.kt
import lib.*
class OK
fun box(): String {
return OK().value ?: "fail"
}
@@ -3784,6 +3784,12 @@ public class BlackBoxInlineCodegenTestGenerated extends AbstractBlackBoxInlineCo
runTest("compiler/testData/codegen/boxInline/property/reifiedVal.kt");
}
@Test
@TestMetadata("reifiedValMultiModule.kt")
public void testReifiedValMultiModule() throws Exception {
runTest("compiler/testData/codegen/boxInline/property/reifiedValMultiModule.kt");
}
@Test
@TestMetadata("reifiedVar.kt")
public void testReifiedVar() throws Exception {
@@ -3784,6 +3784,12 @@ public class CompileKotlinAgainstInlineKotlinTestGenerated extends AbstractCompi
runTest("compiler/testData/codegen/boxInline/property/reifiedVal.kt");
}
@Test
@TestMetadata("reifiedValMultiModule.kt")
public void testReifiedValMultiModule() throws Exception {
runTest("compiler/testData/codegen/boxInline/property/reifiedValMultiModule.kt");
}
@Test
@TestMetadata("reifiedVar.kt")
public void testReifiedVar() throws Exception {
@@ -3784,6 +3784,12 @@ public class IrBlackBoxInlineCodegenTestGenerated extends AbstractIrBlackBoxInli
runTest("compiler/testData/codegen/boxInline/property/reifiedVal.kt");
}
@Test
@TestMetadata("reifiedValMultiModule.kt")
public void testReifiedValMultiModule() throws Exception {
runTest("compiler/testData/codegen/boxInline/property/reifiedValMultiModule.kt");
}
@Test
@TestMetadata("reifiedVar.kt")
public void testReifiedVar() throws Exception {
@@ -3784,6 +3784,12 @@ public class IrCompileKotlinAgainstInlineKotlinTestGenerated extends AbstractIrC
runTest("compiler/testData/codegen/boxInline/property/reifiedVal.kt");
}
@Test
@TestMetadata("reifiedValMultiModule.kt")
public void testReifiedValMultiModule() throws Exception {
runTest("compiler/testData/codegen/boxInline/property/reifiedValMultiModule.kt");
}
@Test
@TestMetadata("reifiedVar.kt")
public void testReifiedVar() throws Exception {
@@ -3784,6 +3784,12 @@ public class IrSerializeCompileKotlinAgainstInlineKotlinTestGenerated extends Ab
runTest("compiler/testData/codegen/boxInline/property/reifiedVal.kt");
}
@Test
@TestMetadata("reifiedValMultiModule.kt")
public void testReifiedValMultiModule() throws Exception {
runTest("compiler/testData/codegen/boxInline/property/reifiedValMultiModule.kt");
}
@Test
@TestMetadata("reifiedVar.kt")
public void testReifiedVar() throws Exception {
@@ -3784,6 +3784,12 @@ public class JvmIrAgainstOldBoxInlineTestGenerated extends AbstractJvmIrAgainstO
runTest("compiler/testData/codegen/boxInline/property/reifiedVal.kt");
}
@Test
@TestMetadata("reifiedValMultiModule.kt")
public void testReifiedValMultiModule() throws Exception {
runTest("compiler/testData/codegen/boxInline/property/reifiedValMultiModule.kt");
}
@Test
@TestMetadata("reifiedVar.kt")
public void testReifiedVar() throws Exception {
@@ -3784,6 +3784,12 @@ public class JvmOldAgainstIrBoxInlineTestGenerated extends AbstractJvmOldAgainst
runTest("compiler/testData/codegen/boxInline/property/reifiedVal.kt");
}
@Test
@TestMetadata("reifiedValMultiModule.kt")
public void testReifiedValMultiModule() throws Exception {
runTest("compiler/testData/codegen/boxInline/property/reifiedValMultiModule.kt");
}
@Test
@TestMetadata("reifiedVar.kt")
public void testReifiedVar() throws Exception {
@@ -3388,6 +3388,12 @@ public class JsCodegenInlineTestGenerated extends AbstractJsCodegenInlineTest {
runTest("compiler/testData/codegen/boxInline/property/reifiedVal.kt");
}
@Test
@TestMetadata("reifiedValMultiModule.kt")
public void testReifiedValMultiModule() throws Exception {
runTest("compiler/testData/codegen/boxInline/property/reifiedValMultiModule.kt");
}
@Test
@TestMetadata("reifiedVar.kt")
public void testReifiedVar() throws Exception {
@@ -3388,6 +3388,12 @@ public class IrJsCodegenInlineTestGenerated extends AbstractIrJsCodegenInlineTes
runTest("compiler/testData/codegen/boxInline/property/reifiedVal.kt");
}
@Test
@TestMetadata("reifiedValMultiModule.kt")
public void testReifiedValMultiModule() throws Exception {
runTest("compiler/testData/codegen/boxInline/property/reifiedValMultiModule.kt");
}
@Test
@TestMetadata("reifiedVar.kt")
public void testReifiedVar() throws Exception {
@@ -3103,6 +3103,11 @@ public class IrCodegenBoxInlineWasmTestGenerated extends AbstractIrCodegenBoxInl
runTest("compiler/testData/codegen/boxInline/property/reifiedVal.kt");
}
@TestMetadata("reifiedValMultiModule.kt")
public void testReifiedValMultiModule() throws Exception {
runTest("compiler/testData/codegen/boxInline/property/reifiedValMultiModule.kt");
}
@TestMetadata("reifiedVar.kt")
public void testReifiedVar() throws Exception {
runTest("compiler/testData/codegen/boxInline/property/reifiedVar.kt");
@@ -42608,6 +42608,12 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest
runTest("compiler/testData/codegen/boxInline/property/reifiedVal.kt");
}
@Test
@TestMetadata("reifiedValMultiModule.kt")
public void testReifiedValMultiModule() throws Exception {
runTest("compiler/testData/codegen/boxInline/property/reifiedValMultiModule.kt");
}
@Test
@TestMetadata("reifiedVar.kt")
public void testReifiedVar() throws Exception {