K1/K2: add a group of BB test around primitives in Java

Related to KT-62554, KT-63242
This commit is contained in:
Mikhail Glukhikh
2024-01-22 18:12:48 +01:00
committed by Space Team
parent e42c1be354
commit 51093a4764
27 changed files with 724 additions and 53 deletions
@@ -14826,6 +14826,16 @@ public class FirJsCodegenBoxTestGenerated extends AbstractFirJsCodegenBoxTest {
public void testToLong() throws Exception {
runTest("compiler/testData/codegen/box/fir/toLong.kt");
}
@Nested
@TestMetadata("compiler/testData/codegen/box/fir/primitivesInJava")
@TestDataPath("$PROJECT_ROOT")
public class PrimitivesInJava {
@Test
public void testAllFilesPresentInPrimitivesInJava() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/fir/primitivesInJava"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true);
}
}
}
@Nested
@@ -14826,6 +14826,16 @@ public class FirJsES6CodegenBoxTestGenerated extends AbstractFirJsES6CodegenBoxT
public void testToLong() throws Exception {
runTest("compiler/testData/codegen/box/fir/toLong.kt");
}
@Nested
@TestMetadata("compiler/testData/codegen/box/fir/primitivesInJava")
@TestDataPath("$PROJECT_ROOT")
public class PrimitivesInJava {
@Test
public void testAllFilesPresentInPrimitivesInJava() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/fir/primitivesInJava"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true);
}
}
}
@Nested
@@ -14826,6 +14826,16 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest {
public void testToLong() throws Exception {
runTest("compiler/testData/codegen/box/fir/toLong.kt");
}
@Nested
@TestMetadata("compiler/testData/codegen/box/fir/primitivesInJava")
@TestDataPath("$PROJECT_ROOT")
public class PrimitivesInJava {
@Test
public void testAllFilesPresentInPrimitivesInJava() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/fir/primitivesInJava"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true);
}
}
}
@Nested
@@ -14826,6 +14826,16 @@ public class IrJsES6CodegenBoxTestGenerated extends AbstractIrJsES6CodegenBoxTes
public void testToLong() throws Exception {
runTest("compiler/testData/codegen/box/fir/toLong.kt");
}
@Nested
@TestMetadata("compiler/testData/codegen/box/fir/primitivesInJava")
@TestDataPath("$PROJECT_ROOT")
public class PrimitivesInJava {
@Test
public void testAllFilesPresentInPrimitivesInJava() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/fir/primitivesInJava"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true);
}
}
}
@Nested