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
@@ -20192,12 +20192,6 @@ public class LLFirBlackBoxCodegenBasedTestGenerated extends AbstractLLFirBlackBo
runTest("compiler/testData/codegen/box/fir/notFoundClasses.kt");
}
@Test
@TestMetadata("primitiveDoubleJavaKotlinIntersection.kt")
public void testPrimitiveDoubleJavaKotlinIntersection() throws Exception {
runTest("compiler/testData/codegen/box/fir/primitiveDoubleJavaKotlinIntersection.kt");
}
@Test
@TestMetadata("publicMethodCallViaPackagePrivateCommon.kt")
public void testPublicMethodCallViaPackagePrivateCommon() throws Exception {
@@ -20329,6 +20323,58 @@ public class LLFirBlackBoxCodegenBasedTestGenerated extends AbstractLLFirBlackBo
public void testVararg() throws Exception {
runTest("compiler/testData/codegen/box/fir/vararg.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, true);
}
@Test
@TestMetadata("primitiveDoubleJavaKotlinIntersection.kt")
public void testPrimitiveDoubleJavaKotlinIntersection() throws Exception {
runTest("compiler/testData/codegen/box/fir/primitivesInJava/primitiveDoubleJavaKotlinIntersection.kt");
}
@Test
@TestMetadata("triangleWithFlexibleType.kt")
public void testTriangleWithFlexibleType() throws Exception {
runTest("compiler/testData/codegen/box/fir/primitivesInJava/triangleWithFlexibleType.kt");
}
@Test
@TestMetadata("triangleWithFlexibleTypeAndSubstitution.kt")
public void testTriangleWithFlexibleTypeAndSubstitution() throws Exception {
runTest("compiler/testData/codegen/box/fir/primitivesInJava/triangleWithFlexibleTypeAndSubstitution.kt");
}
@Test
@TestMetadata("triangleWithFlexibleTypeAndSubstitution2.kt")
public void testTriangleWithFlexibleTypeAndSubstitution2() throws Exception {
runTest("compiler/testData/codegen/box/fir/primitivesInJava/triangleWithFlexibleTypeAndSubstitution2.kt");
}
@Test
@TestMetadata("triangleWithFlexibleTypeAndSubstitution3.kt")
public void testTriangleWithFlexibleTypeAndSubstitution3() throws Exception {
runTest("compiler/testData/codegen/box/fir/primitivesInJava/triangleWithFlexibleTypeAndSubstitution3.kt");
}
@Test
@TestMetadata("triangleWithFlexibleTypeAndSubstitution5.kt")
public void testTriangleWithFlexibleTypeAndSubstitution5() throws Exception {
runTest("compiler/testData/codegen/box/fir/primitivesInJava/triangleWithFlexibleTypeAndSubstitution5.kt");
}
@Test
@TestMetadata("triangleWithNullableType.kt")
public void testTriangleWithNullableType() throws Exception {
runTest("compiler/testData/codegen/box/fir/primitivesInJava/triangleWithNullableType.kt");
}
}
}
@Nested
@@ -20192,12 +20192,6 @@ public class LLFirReversedBlackBoxCodegenBasedTestGenerated extends AbstractLLFi
runTest("compiler/testData/codegen/box/fir/notFoundClasses.kt");
}
@Test
@TestMetadata("primitiveDoubleJavaKotlinIntersection.kt")
public void testPrimitiveDoubleJavaKotlinIntersection() throws Exception {
runTest("compiler/testData/codegen/box/fir/primitiveDoubleJavaKotlinIntersection.kt");
}
@Test
@TestMetadata("publicMethodCallViaPackagePrivateCommon.kt")
public void testPublicMethodCallViaPackagePrivateCommon() throws Exception {
@@ -20329,6 +20323,58 @@ public class LLFirReversedBlackBoxCodegenBasedTestGenerated extends AbstractLLFi
public void testVararg() throws Exception {
runTest("compiler/testData/codegen/box/fir/vararg.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, true);
}
@Test
@TestMetadata("primitiveDoubleJavaKotlinIntersection.kt")
public void testPrimitiveDoubleJavaKotlinIntersection() throws Exception {
runTest("compiler/testData/codegen/box/fir/primitivesInJava/primitiveDoubleJavaKotlinIntersection.kt");
}
@Test
@TestMetadata("triangleWithFlexibleType.kt")
public void testTriangleWithFlexibleType() throws Exception {
runTest("compiler/testData/codegen/box/fir/primitivesInJava/triangleWithFlexibleType.kt");
}
@Test
@TestMetadata("triangleWithFlexibleTypeAndSubstitution.kt")
public void testTriangleWithFlexibleTypeAndSubstitution() throws Exception {
runTest("compiler/testData/codegen/box/fir/primitivesInJava/triangleWithFlexibleTypeAndSubstitution.kt");
}
@Test
@TestMetadata("triangleWithFlexibleTypeAndSubstitution2.kt")
public void testTriangleWithFlexibleTypeAndSubstitution2() throws Exception {
runTest("compiler/testData/codegen/box/fir/primitivesInJava/triangleWithFlexibleTypeAndSubstitution2.kt");
}
@Test
@TestMetadata("triangleWithFlexibleTypeAndSubstitution3.kt")
public void testTriangleWithFlexibleTypeAndSubstitution3() throws Exception {
runTest("compiler/testData/codegen/box/fir/primitivesInJava/triangleWithFlexibleTypeAndSubstitution3.kt");
}
@Test
@TestMetadata("triangleWithFlexibleTypeAndSubstitution5.kt")
public void testTriangleWithFlexibleTypeAndSubstitution5() throws Exception {
runTest("compiler/testData/codegen/box/fir/primitivesInJava/triangleWithFlexibleTypeAndSubstitution5.kt");
}
@Test
@TestMetadata("triangleWithNullableType.kt")
public void testTriangleWithNullableType() throws Exception {
runTest("compiler/testData/codegen/box/fir/primitivesInJava/triangleWithNullableType.kt");
}
}
}
@Nested
@@ -19921,12 +19921,6 @@ public class FirLightTreeBlackBoxCodegenTestGenerated extends AbstractFirLightTr
runTest("compiler/testData/codegen/box/fir/notFoundClasses.kt");
}
@Test
@TestMetadata("primitiveDoubleJavaKotlinIntersection.kt")
public void testPrimitiveDoubleJavaKotlinIntersection() throws Exception {
runTest("compiler/testData/codegen/box/fir/primitiveDoubleJavaKotlinIntersection.kt");
}
@Test
@TestMetadata("publicMethodCallViaPackagePrivateCommon.kt")
public void testPublicMethodCallViaPackagePrivateCommon() throws Exception {
@@ -20058,6 +20052,58 @@ public class FirLightTreeBlackBoxCodegenTestGenerated extends AbstractFirLightTr
public void testVararg() throws Exception {
runTest("compiler/testData/codegen/box/fir/vararg.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.JVM_IR, true);
}
@Test
@TestMetadata("primitiveDoubleJavaKotlinIntersection.kt")
public void testPrimitiveDoubleJavaKotlinIntersection() throws Exception {
runTest("compiler/testData/codegen/box/fir/primitivesInJava/primitiveDoubleJavaKotlinIntersection.kt");
}
@Test
@TestMetadata("triangleWithFlexibleType.kt")
public void testTriangleWithFlexibleType() throws Exception {
runTest("compiler/testData/codegen/box/fir/primitivesInJava/triangleWithFlexibleType.kt");
}
@Test
@TestMetadata("triangleWithFlexibleTypeAndSubstitution.kt")
public void testTriangleWithFlexibleTypeAndSubstitution() throws Exception {
runTest("compiler/testData/codegen/box/fir/primitivesInJava/triangleWithFlexibleTypeAndSubstitution.kt");
}
@Test
@TestMetadata("triangleWithFlexibleTypeAndSubstitution2.kt")
public void testTriangleWithFlexibleTypeAndSubstitution2() throws Exception {
runTest("compiler/testData/codegen/box/fir/primitivesInJava/triangleWithFlexibleTypeAndSubstitution2.kt");
}
@Test
@TestMetadata("triangleWithFlexibleTypeAndSubstitution3.kt")
public void testTriangleWithFlexibleTypeAndSubstitution3() throws Exception {
runTest("compiler/testData/codegen/box/fir/primitivesInJava/triangleWithFlexibleTypeAndSubstitution3.kt");
}
@Test
@TestMetadata("triangleWithFlexibleTypeAndSubstitution5.kt")
public void testTriangleWithFlexibleTypeAndSubstitution5() throws Exception {
runTest("compiler/testData/codegen/box/fir/primitivesInJava/triangleWithFlexibleTypeAndSubstitution5.kt");
}
@Test
@TestMetadata("triangleWithNullableType.kt")
public void testTriangleWithNullableType() throws Exception {
runTest("compiler/testData/codegen/box/fir/primitivesInJava/triangleWithNullableType.kt");
}
}
}
@Nested
@@ -19921,12 +19921,6 @@ public class FirLightTreeBlackBoxCodegenWithIrFakeOverrideGeneratorTestGenerated
runTest("compiler/testData/codegen/box/fir/notFoundClasses.kt");
}
@Test
@TestMetadata("primitiveDoubleJavaKotlinIntersection.kt")
public void testPrimitiveDoubleJavaKotlinIntersection() throws Exception {
runTest("compiler/testData/codegen/box/fir/primitiveDoubleJavaKotlinIntersection.kt");
}
@Test
@TestMetadata("publicMethodCallViaPackagePrivateCommon.kt")
public void testPublicMethodCallViaPackagePrivateCommon() throws Exception {
@@ -20058,6 +20052,58 @@ public class FirLightTreeBlackBoxCodegenWithIrFakeOverrideGeneratorTestGenerated
public void testVararg() throws Exception {
runTest("compiler/testData/codegen/box/fir/vararg.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.JVM_IR, true);
}
@Test
@TestMetadata("primitiveDoubleJavaKotlinIntersection.kt")
public void testPrimitiveDoubleJavaKotlinIntersection() throws Exception {
runTest("compiler/testData/codegen/box/fir/primitivesInJava/primitiveDoubleJavaKotlinIntersection.kt");
}
@Test
@TestMetadata("triangleWithFlexibleType.kt")
public void testTriangleWithFlexibleType() throws Exception {
runTest("compiler/testData/codegen/box/fir/primitivesInJava/triangleWithFlexibleType.kt");
}
@Test
@TestMetadata("triangleWithFlexibleTypeAndSubstitution.kt")
public void testTriangleWithFlexibleTypeAndSubstitution() throws Exception {
runTest("compiler/testData/codegen/box/fir/primitivesInJava/triangleWithFlexibleTypeAndSubstitution.kt");
}
@Test
@TestMetadata("triangleWithFlexibleTypeAndSubstitution2.kt")
public void testTriangleWithFlexibleTypeAndSubstitution2() throws Exception {
runTest("compiler/testData/codegen/box/fir/primitivesInJava/triangleWithFlexibleTypeAndSubstitution2.kt");
}
@Test
@TestMetadata("triangleWithFlexibleTypeAndSubstitution3.kt")
public void testTriangleWithFlexibleTypeAndSubstitution3() throws Exception {
runTest("compiler/testData/codegen/box/fir/primitivesInJava/triangleWithFlexibleTypeAndSubstitution3.kt");
}
@Test
@TestMetadata("triangleWithFlexibleTypeAndSubstitution5.kt")
public void testTriangleWithFlexibleTypeAndSubstitution5() throws Exception {
runTest("compiler/testData/codegen/box/fir/primitivesInJava/triangleWithFlexibleTypeAndSubstitution5.kt");
}
@Test
@TestMetadata("triangleWithNullableType.kt")
public void testTriangleWithNullableType() throws Exception {
runTest("compiler/testData/codegen/box/fir/primitivesInJava/triangleWithNullableType.kt");
}
}
}
@Nested
@@ -19921,12 +19921,6 @@ public class FirPsiBlackBoxCodegenTestGenerated extends AbstractFirPsiBlackBoxCo
runTest("compiler/testData/codegen/box/fir/notFoundClasses.kt");
}
@Test
@TestMetadata("primitiveDoubleJavaKotlinIntersection.kt")
public void testPrimitiveDoubleJavaKotlinIntersection() throws Exception {
runTest("compiler/testData/codegen/box/fir/primitiveDoubleJavaKotlinIntersection.kt");
}
@Test
@TestMetadata("publicMethodCallViaPackagePrivateCommon.kt")
public void testPublicMethodCallViaPackagePrivateCommon() throws Exception {
@@ -20058,6 +20052,58 @@ public class FirPsiBlackBoxCodegenTestGenerated extends AbstractFirPsiBlackBoxCo
public void testVararg() throws Exception {
runTest("compiler/testData/codegen/box/fir/vararg.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.JVM_IR, true);
}
@Test
@TestMetadata("primitiveDoubleJavaKotlinIntersection.kt")
public void testPrimitiveDoubleJavaKotlinIntersection() throws Exception {
runTest("compiler/testData/codegen/box/fir/primitivesInJava/primitiveDoubleJavaKotlinIntersection.kt");
}
@Test
@TestMetadata("triangleWithFlexibleType.kt")
public void testTriangleWithFlexibleType() throws Exception {
runTest("compiler/testData/codegen/box/fir/primitivesInJava/triangleWithFlexibleType.kt");
}
@Test
@TestMetadata("triangleWithFlexibleTypeAndSubstitution.kt")
public void testTriangleWithFlexibleTypeAndSubstitution() throws Exception {
runTest("compiler/testData/codegen/box/fir/primitivesInJava/triangleWithFlexibleTypeAndSubstitution.kt");
}
@Test
@TestMetadata("triangleWithFlexibleTypeAndSubstitution2.kt")
public void testTriangleWithFlexibleTypeAndSubstitution2() throws Exception {
runTest("compiler/testData/codegen/box/fir/primitivesInJava/triangleWithFlexibleTypeAndSubstitution2.kt");
}
@Test
@TestMetadata("triangleWithFlexibleTypeAndSubstitution3.kt")
public void testTriangleWithFlexibleTypeAndSubstitution3() throws Exception {
runTest("compiler/testData/codegen/box/fir/primitivesInJava/triangleWithFlexibleTypeAndSubstitution3.kt");
}
@Test
@TestMetadata("triangleWithFlexibleTypeAndSubstitution5.kt")
public void testTriangleWithFlexibleTypeAndSubstitution5() throws Exception {
runTest("compiler/testData/codegen/box/fir/primitivesInJava/triangleWithFlexibleTypeAndSubstitution5.kt");
}
@Test
@TestMetadata("triangleWithNullableType.kt")
public void testTriangleWithNullableType() throws Exception {
runTest("compiler/testData/codegen/box/fir/primitivesInJava/triangleWithNullableType.kt");
}
}
}
@Nested
@@ -0,0 +1,21 @@
// TARGET_BACKEND: JVM_IR
// ISSUE: KT-62554
// FILE: A.java
public class A {
public String foo(Integer x) {
return "FAIL";
}
}
// FILE: main.kt
interface B {
fun foo(x: Int) = "OK"
}
class C : A(), B
fun box(): String {
return C().foo(42)
}
@@ -0,0 +1,23 @@
// TARGET_BACKEND: JVM_IR
// ISSUE: KT-62554
// FILE: A.java
public class A<T> {
public T foo(Integer x) {
return null;
}
}
// FILE: main.kt
interface B {
fun foo(x: Int) = "OK"
}
open class C : A<String>()
class D : C(), B
fun box(): String {
return D().foo(42)
}
@@ -0,0 +1,25 @@
// TARGET_BACKEND: JVM_IR
// ISSUE: KT-62554
// FILE: A.java
public class A<T> {
public String foo(T x) {
return "FAIL";
}
}
// FILE: C.java
public class C extends A<Integer> {}
// FILE: main.kt
interface B {
fun foo(x: Int) = "OK"
}
class D : C(), B
fun box(): String {
return D().foo(42)
}
@@ -0,0 +1,23 @@
// TARGET_BACKEND: JVM_IR
// ISSUE: KT-62554
// FILE: A.java
public class A<T> {
public String foo(T x) {
return "FAIL";
}
}
// FILE: main.kt
interface B {
fun foo(x: Int) = "OK"
}
open class C : A<Int>()
class D : C(), B
fun box(): String {
return D().foo(42)
}
@@ -0,0 +1,23 @@
// TARGET_BACKEND: JVM_IR
// ISSUE: KT-62554
// FILE: A.java
public class A {
public String foo(Integer x) {
return "FAIL";
}
}
// FILE: main.kt
interface B<T> {
fun foo(x: T) = "OK"
}
interface D : B<Int>
class E : A(), D
fun box(): String {
return E().foo(42)
}
@@ -0,0 +1,23 @@
// TARGET_BACKEND: JVM_IR
// ISSUE: KT-62554
// FILE: A.java
import org.jetbrains.annotations.*;
public class A {
public String foo(@Nullable Integer x) {
return "FAIL";
}
}
// FILE: main.kt
interface B {
fun foo(x: Int) = "OK"
}
class C : A(), B
fun box(): String {
return C().foo(42)
}
@@ -19921,12 +19921,6 @@ public class JvmAbiConsistencyTestBoxGenerated extends AbstractJvmAbiConsistency
runTest("compiler/testData/codegen/box/fir/notFoundClasses.kt");
}
@Test
@TestMetadata("primitiveDoubleJavaKotlinIntersection.kt")
public void testPrimitiveDoubleJavaKotlinIntersection() throws Exception {
runTest("compiler/testData/codegen/box/fir/primitiveDoubleJavaKotlinIntersection.kt");
}
@Test
@TestMetadata("publicMethodCallViaPackagePrivateCommon.kt")
public void testPublicMethodCallViaPackagePrivateCommon() throws Exception {
@@ -20058,6 +20052,58 @@ public class JvmAbiConsistencyTestBoxGenerated extends AbstractJvmAbiConsistency
public void testVararg() throws Exception {
runTest("compiler/testData/codegen/box/fir/vararg.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.JVM_IR, true);
}
@Test
@TestMetadata("primitiveDoubleJavaKotlinIntersection.kt")
public void testPrimitiveDoubleJavaKotlinIntersection() throws Exception {
runTest("compiler/testData/codegen/box/fir/primitivesInJava/primitiveDoubleJavaKotlinIntersection.kt");
}
@Test
@TestMetadata("triangleWithFlexibleType.kt")
public void testTriangleWithFlexibleType() throws Exception {
runTest("compiler/testData/codegen/box/fir/primitivesInJava/triangleWithFlexibleType.kt");
}
@Test
@TestMetadata("triangleWithFlexibleTypeAndSubstitution.kt")
public void testTriangleWithFlexibleTypeAndSubstitution() throws Exception {
runTest("compiler/testData/codegen/box/fir/primitivesInJava/triangleWithFlexibleTypeAndSubstitution.kt");
}
@Test
@TestMetadata("triangleWithFlexibleTypeAndSubstitution2.kt")
public void testTriangleWithFlexibleTypeAndSubstitution2() throws Exception {
runTest("compiler/testData/codegen/box/fir/primitivesInJava/triangleWithFlexibleTypeAndSubstitution2.kt");
}
@Test
@TestMetadata("triangleWithFlexibleTypeAndSubstitution3.kt")
public void testTriangleWithFlexibleTypeAndSubstitution3() throws Exception {
runTest("compiler/testData/codegen/box/fir/primitivesInJava/triangleWithFlexibleTypeAndSubstitution3.kt");
}
@Test
@TestMetadata("triangleWithFlexibleTypeAndSubstitution5.kt")
public void testTriangleWithFlexibleTypeAndSubstitution5() throws Exception {
runTest("compiler/testData/codegen/box/fir/primitivesInJava/triangleWithFlexibleTypeAndSubstitution5.kt");
}
@Test
@TestMetadata("triangleWithNullableType.kt")
public void testTriangleWithNullableType() throws Exception {
runTest("compiler/testData/codegen/box/fir/primitivesInJava/triangleWithNullableType.kt");
}
}
}
@Nested
@@ -18948,6 +18948,16 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest {
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.JVM, true);
}
}
}
@Nested
@@ -19921,12 +19921,6 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes
runTest("compiler/testData/codegen/box/fir/notFoundClasses.kt");
}
@Test
@TestMetadata("primitiveDoubleJavaKotlinIntersection.kt")
public void testPrimitiveDoubleJavaKotlinIntersection() throws Exception {
runTest("compiler/testData/codegen/box/fir/primitiveDoubleJavaKotlinIntersection.kt");
}
@Test
@TestMetadata("publicMethodCallViaPackagePrivateCommon.kt")
public void testPublicMethodCallViaPackagePrivateCommon() throws Exception {
@@ -20058,6 +20052,58 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes
public void testVararg() throws Exception {
runTest("compiler/testData/codegen/box/fir/vararg.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.JVM_IR, true);
}
@Test
@TestMetadata("primitiveDoubleJavaKotlinIntersection.kt")
public void testPrimitiveDoubleJavaKotlinIntersection() throws Exception {
runTest("compiler/testData/codegen/box/fir/primitivesInJava/primitiveDoubleJavaKotlinIntersection.kt");
}
@Test
@TestMetadata("triangleWithFlexibleType.kt")
public void testTriangleWithFlexibleType() throws Exception {
runTest("compiler/testData/codegen/box/fir/primitivesInJava/triangleWithFlexibleType.kt");
}
@Test
@TestMetadata("triangleWithFlexibleTypeAndSubstitution.kt")
public void testTriangleWithFlexibleTypeAndSubstitution() throws Exception {
runTest("compiler/testData/codegen/box/fir/primitivesInJava/triangleWithFlexibleTypeAndSubstitution.kt");
}
@Test
@TestMetadata("triangleWithFlexibleTypeAndSubstitution2.kt")
public void testTriangleWithFlexibleTypeAndSubstitution2() throws Exception {
runTest("compiler/testData/codegen/box/fir/primitivesInJava/triangleWithFlexibleTypeAndSubstitution2.kt");
}
@Test
@TestMetadata("triangleWithFlexibleTypeAndSubstitution3.kt")
public void testTriangleWithFlexibleTypeAndSubstitution3() throws Exception {
runTest("compiler/testData/codegen/box/fir/primitivesInJava/triangleWithFlexibleTypeAndSubstitution3.kt");
}
@Test
@TestMetadata("triangleWithFlexibleTypeAndSubstitution5.kt")
public void testTriangleWithFlexibleTypeAndSubstitution5() throws Exception {
runTest("compiler/testData/codegen/box/fir/primitivesInJava/triangleWithFlexibleTypeAndSubstitution5.kt");
}
@Test
@TestMetadata("triangleWithNullableType.kt")
public void testTriangleWithNullableType() throws Exception {
runTest("compiler/testData/codegen/box/fir/primitivesInJava/triangleWithNullableType.kt");
}
}
}
@Nested
@@ -19921,12 +19921,6 @@ public class IrBlackBoxCodegenWithIrInlinerTestGenerated extends AbstractIrBlack
runTest("compiler/testData/codegen/box/fir/notFoundClasses.kt");
}
@Test
@TestMetadata("primitiveDoubleJavaKotlinIntersection.kt")
public void testPrimitiveDoubleJavaKotlinIntersection() throws Exception {
runTest("compiler/testData/codegen/box/fir/primitiveDoubleJavaKotlinIntersection.kt");
}
@Test
@TestMetadata("publicMethodCallViaPackagePrivateCommon.kt")
public void testPublicMethodCallViaPackagePrivateCommon() throws Exception {
@@ -20058,6 +20052,58 @@ public class IrBlackBoxCodegenWithIrInlinerTestGenerated extends AbstractIrBlack
public void testVararg() throws Exception {
runTest("compiler/testData/codegen/box/fir/vararg.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.JVM_IR, true);
}
@Test
@TestMetadata("primitiveDoubleJavaKotlinIntersection.kt")
public void testPrimitiveDoubleJavaKotlinIntersection() throws Exception {
runTest("compiler/testData/codegen/box/fir/primitivesInJava/primitiveDoubleJavaKotlinIntersection.kt");
}
@Test
@TestMetadata("triangleWithFlexibleType.kt")
public void testTriangleWithFlexibleType() throws Exception {
runTest("compiler/testData/codegen/box/fir/primitivesInJava/triangleWithFlexibleType.kt");
}
@Test
@TestMetadata("triangleWithFlexibleTypeAndSubstitution.kt")
public void testTriangleWithFlexibleTypeAndSubstitution() throws Exception {
runTest("compiler/testData/codegen/box/fir/primitivesInJava/triangleWithFlexibleTypeAndSubstitution.kt");
}
@Test
@TestMetadata("triangleWithFlexibleTypeAndSubstitution2.kt")
public void testTriangleWithFlexibleTypeAndSubstitution2() throws Exception {
runTest("compiler/testData/codegen/box/fir/primitivesInJava/triangleWithFlexibleTypeAndSubstitution2.kt");
}
@Test
@TestMetadata("triangleWithFlexibleTypeAndSubstitution3.kt")
public void testTriangleWithFlexibleTypeAndSubstitution3() throws Exception {
runTest("compiler/testData/codegen/box/fir/primitivesInJava/triangleWithFlexibleTypeAndSubstitution3.kt");
}
@Test
@TestMetadata("triangleWithFlexibleTypeAndSubstitution5.kt")
public void testTriangleWithFlexibleTypeAndSubstitution5() throws Exception {
runTest("compiler/testData/codegen/box/fir/primitivesInJava/triangleWithFlexibleTypeAndSubstitution5.kt");
}
@Test
@TestMetadata("triangleWithNullableType.kt")
public void testTriangleWithNullableType() throws Exception {
runTest("compiler/testData/codegen/box/fir/primitivesInJava/triangleWithNullableType.kt");
}
}
}
@Nested
@@ -16650,11 +16650,6 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes
runTest("compiler/testData/codegen/box/fir/notFoundClasses.kt");
}
@TestMetadata("primitiveDoubleJavaKotlinIntersection.kt")
public void testPrimitiveDoubleJavaKotlinIntersection() throws Exception {
runTest("compiler/testData/codegen/box/fir/primitiveDoubleJavaKotlinIntersection.kt");
}
@TestMetadata("publicMethodCallViaPackagePrivateCommon.kt")
public void testPublicMethodCallViaPackagePrivateCommon() throws Exception {
runTest("compiler/testData/codegen/box/fir/publicMethodCallViaPackagePrivateCommon.kt");
@@ -16744,6 +16739,54 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes
public void testTypeParameterInNestedClass2() throws Exception {
runTest("compiler/testData/codegen/box/fir/TypeParameterInNestedClass2.kt");
}
@TestMetadata("compiler/testData/codegen/box/fir/primitivesInJava")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class PrimitivesInJava extends AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath);
}
public void testAllFilesPresentInPrimitivesInJava() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/fir/primitivesInJava"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
}
@TestMetadata("primitiveDoubleJavaKotlinIntersection.kt")
public void testPrimitiveDoubleJavaKotlinIntersection() throws Exception {
runTest("compiler/testData/codegen/box/fir/primitivesInJava/primitiveDoubleJavaKotlinIntersection.kt");
}
@TestMetadata("triangleWithFlexibleType.kt")
public void testTriangleWithFlexibleType() throws Exception {
runTest("compiler/testData/codegen/box/fir/primitivesInJava/triangleWithFlexibleType.kt");
}
@TestMetadata("triangleWithFlexibleTypeAndSubstitution.kt")
public void testTriangleWithFlexibleTypeAndSubstitution() throws Exception {
runTest("compiler/testData/codegen/box/fir/primitivesInJava/triangleWithFlexibleTypeAndSubstitution.kt");
}
@TestMetadata("triangleWithFlexibleTypeAndSubstitution2.kt")
public void testTriangleWithFlexibleTypeAndSubstitution2() throws Exception {
runTest("compiler/testData/codegen/box/fir/primitivesInJava/triangleWithFlexibleTypeAndSubstitution2.kt");
}
@TestMetadata("triangleWithFlexibleTypeAndSubstitution3.kt")
public void testTriangleWithFlexibleTypeAndSubstitution3() throws Exception {
runTest("compiler/testData/codegen/box/fir/primitivesInJava/triangleWithFlexibleTypeAndSubstitution3.kt");
}
@TestMetadata("triangleWithFlexibleTypeAndSubstitution5.kt")
public void testTriangleWithFlexibleTypeAndSubstitution5() throws Exception {
runTest("compiler/testData/codegen/box/fir/primitivesInJava/triangleWithFlexibleTypeAndSubstitution5.kt");
}
@TestMetadata("triangleWithNullableType.kt")
public void testTriangleWithNullableType() throws Exception {
runTest("compiler/testData/codegen/box/fir/primitivesInJava/triangleWithNullableType.kt");
}
}
}
@TestMetadata("compiler/testData/codegen/box/fullJdk")
@@ -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
@@ -16688,6 +16688,19 @@ public class FirNativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTe
public void testToLong() throws Exception {
runTest("compiler/testData/codegen/box/fir/toLong.kt");
}
@Nested
@TestMetadata("compiler/testData/codegen/box/fir/primitivesInJava")
@TestDataPath("$PROJECT_ROOT")
@Tag("frontend-fir")
@FirPipeline()
@UseExtTestCaseGroupProvider()
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.NATIVE, true);
}
}
}
@Nested
@@ -17076,6 +17076,21 @@ public class FirNativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenB
public void testToLong() throws Exception {
runTest("compiler/testData/codegen/box/fir/toLong.kt");
}
@Nested
@TestMetadata("compiler/testData/codegen/box/fir/primitivesInJava")
@TestDataPath("$PROJECT_ROOT")
@Tag("frontend-fir")
@FirPipeline()
@UseExtTestCaseGroupProvider()
@UsePartialLinkage(mode = Mode.DISABLED)
@Tag("no-partial-linkage-may-be-skipped")
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.NATIVE, true);
}
}
}
@Nested
@@ -16300,6 +16300,17 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest
public void testToLong() throws Exception {
runTest("compiler/testData/codegen/box/fir/toLong.kt");
}
@Nested
@TestMetadata("compiler/testData/codegen/box/fir/primitivesInJava")
@TestDataPath("$PROJECT_ROOT")
@UseExtTestCaseGroupProvider()
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.NATIVE, true);
}
}
}
@Nested
@@ -16689,6 +16689,19 @@ public class NativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenBoxT
public void testToLong() throws Exception {
runTest("compiler/testData/codegen/box/fir/toLong.kt");
}
@Nested
@TestMetadata("compiler/testData/codegen/box/fir/primitivesInJava")
@TestDataPath("$PROJECT_ROOT")
@UseExtTestCaseGroupProvider()
@UsePartialLinkage(mode = Mode.DISABLED)
@Tag("no-partial-linkage-may-be-skipped")
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.NATIVE, true);
}
}
}
@Nested
@@ -14802,6 +14802,16 @@ public class FirWasmCodegenBoxTestGenerated extends AbstractFirWasmCodegenBoxTes
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.WASM, true);
}
}
}
@Nested
@@ -14802,6 +14802,16 @@ public class K1WasmCodegenBoxTestGenerated extends AbstractK1WasmCodegenBoxTest
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.WASM, true);
}
}
}
@Nested