[IR] Add new tests on inline to check issues with type parameters
#KT-58241
This commit is contained in:
+46
@@ -5849,6 +5849,52 @@ public class FirLightTreeBlackBoxInlineCodegenWithBytecodeInlinerTestGenerated e
|
||||
}
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("compiler/testData/codegen/boxInline/typeParameters")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
public class TypeParameters {
|
||||
@Test
|
||||
public void testAllFilesPresentInTypeParameters() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/typeParameters"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("anonymousObject.kt")
|
||||
public void testAnonymousObject() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/typeParameters/anonymousObject.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("basic.kt")
|
||||
public void testBasic() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/typeParameters/basic.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("projectionTypeArguments.kt")
|
||||
public void testProjectionTypeArguments() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/typeParameters/projectionTypeArguments.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("severalUpperBounds.kt")
|
||||
public void testSeveralUpperBounds() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/typeParameters/severalUpperBounds.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("typeArgFromGenericBaseClass.kt")
|
||||
public void testTypeArgFromGenericBaseClass() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/typeParameters/typeArgFromGenericBaseClass.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("uncheckedCastToNothing.kt")
|
||||
public void testUncheckedCastToNothing() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/typeParameters/uncheckedCastToNothing.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("compiler/testData/codegen/boxInline/varargs")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
|
||||
+46
@@ -5849,6 +5849,52 @@ public class FirLightTreeBlackBoxInlineCodegenWithIrInlinerTestGenerated extends
|
||||
}
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("compiler/testData/codegen/boxInline/typeParameters")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
public class TypeParameters {
|
||||
@Test
|
||||
public void testAllFilesPresentInTypeParameters() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/typeParameters"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("anonymousObject.kt")
|
||||
public void testAnonymousObject() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/typeParameters/anonymousObject.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("basic.kt")
|
||||
public void testBasic() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/typeParameters/basic.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("projectionTypeArguments.kt")
|
||||
public void testProjectionTypeArguments() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/typeParameters/projectionTypeArguments.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("severalUpperBounds.kt")
|
||||
public void testSeveralUpperBounds() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/typeParameters/severalUpperBounds.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("typeArgFromGenericBaseClass.kt")
|
||||
public void testTypeArgFromGenericBaseClass() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/typeParameters/typeArgFromGenericBaseClass.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("uncheckedCastToNothing.kt")
|
||||
public void testUncheckedCastToNothing() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/typeParameters/uncheckedCastToNothing.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("compiler/testData/codegen/boxInline/varargs")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
|
||||
+46
@@ -5849,6 +5849,52 @@ public class FirLightTreeSerializeCompileKotlinAgainstInlineKotlinTestGenerated
|
||||
}
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("compiler/testData/codegen/boxInline/typeParameters")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
public class TypeParameters {
|
||||
@Test
|
||||
public void testAllFilesPresentInTypeParameters() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/typeParameters"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR_SERIALIZE, true);
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("anonymousObject.kt")
|
||||
public void testAnonymousObject() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/typeParameters/anonymousObject.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("basic.kt")
|
||||
public void testBasic() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/typeParameters/basic.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("projectionTypeArguments.kt")
|
||||
public void testProjectionTypeArguments() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/typeParameters/projectionTypeArguments.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("severalUpperBounds.kt")
|
||||
public void testSeveralUpperBounds() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/typeParameters/severalUpperBounds.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("typeArgFromGenericBaseClass.kt")
|
||||
public void testTypeArgFromGenericBaseClass() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/typeParameters/typeArgFromGenericBaseClass.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("uncheckedCastToNothing.kt")
|
||||
public void testUncheckedCastToNothing() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/typeParameters/uncheckedCastToNothing.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("compiler/testData/codegen/boxInline/varargs")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
|
||||
+46
@@ -5849,6 +5849,52 @@ public class FirPsiBlackBoxInlineCodegenWithBytecodeInlinerTestGenerated extends
|
||||
}
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("compiler/testData/codegen/boxInline/typeParameters")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
public class TypeParameters {
|
||||
@Test
|
||||
public void testAllFilesPresentInTypeParameters() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/typeParameters"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("anonymousObject.kt")
|
||||
public void testAnonymousObject() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/typeParameters/anonymousObject.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("basic.kt")
|
||||
public void testBasic() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/typeParameters/basic.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("projectionTypeArguments.kt")
|
||||
public void testProjectionTypeArguments() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/typeParameters/projectionTypeArguments.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("severalUpperBounds.kt")
|
||||
public void testSeveralUpperBounds() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/typeParameters/severalUpperBounds.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("typeArgFromGenericBaseClass.kt")
|
||||
public void testTypeArgFromGenericBaseClass() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/typeParameters/typeArgFromGenericBaseClass.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("uncheckedCastToNothing.kt")
|
||||
public void testUncheckedCastToNothing() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/typeParameters/uncheckedCastToNothing.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("compiler/testData/codegen/boxInline/varargs")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
|
||||
+46
@@ -5849,6 +5849,52 @@ public class FirPsiBlackBoxInlineCodegenWithIrInlinerTestGenerated extends Abstr
|
||||
}
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("compiler/testData/codegen/boxInline/typeParameters")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
public class TypeParameters {
|
||||
@Test
|
||||
public void testAllFilesPresentInTypeParameters() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/typeParameters"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("anonymousObject.kt")
|
||||
public void testAnonymousObject() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/typeParameters/anonymousObject.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("basic.kt")
|
||||
public void testBasic() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/typeParameters/basic.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("projectionTypeArguments.kt")
|
||||
public void testProjectionTypeArguments() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/typeParameters/projectionTypeArguments.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("severalUpperBounds.kt")
|
||||
public void testSeveralUpperBounds() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/typeParameters/severalUpperBounds.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("typeArgFromGenericBaseClass.kt")
|
||||
public void testTypeArgFromGenericBaseClass() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/typeParameters/typeArgFromGenericBaseClass.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("uncheckedCastToNothing.kt")
|
||||
public void testUncheckedCastToNothing() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/typeParameters/uncheckedCastToNothing.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("compiler/testData/codegen/boxInline/varargs")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
|
||||
+46
@@ -5849,6 +5849,52 @@ public class FirPsiSerializeCompileKotlinAgainstInlineKotlinTestGenerated extend
|
||||
}
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("compiler/testData/codegen/boxInline/typeParameters")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
public class TypeParameters {
|
||||
@Test
|
||||
public void testAllFilesPresentInTypeParameters() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/typeParameters"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR_SERIALIZE, true);
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("anonymousObject.kt")
|
||||
public void testAnonymousObject() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/typeParameters/anonymousObject.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("basic.kt")
|
||||
public void testBasic() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/typeParameters/basic.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("projectionTypeArguments.kt")
|
||||
public void testProjectionTypeArguments() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/typeParameters/projectionTypeArguments.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("severalUpperBounds.kt")
|
||||
public void testSeveralUpperBounds() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/typeParameters/severalUpperBounds.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("typeArgFromGenericBaseClass.kt")
|
||||
public void testTypeArgFromGenericBaseClass() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/typeParameters/typeArgFromGenericBaseClass.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("uncheckedCastToNothing.kt")
|
||||
public void testUncheckedCastToNothing() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/typeParameters/uncheckedCastToNothing.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("compiler/testData/codegen/boxInline/varargs")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
|
||||
Reference in New Issue
Block a user