[Tests] Add test for kt33411

^KT-33411 Fixed


Merge-request: KT-MR-14782
Merged-by: Vladimir Sukharev <Vladimir.Sukharev@jetbrains.com>
This commit is contained in:
Vladimir Sukharev
2024-03-07 08:46:05 +00:00
committed by Space Team
parent 928fb94052
commit b4bc576d37
22 changed files with 366 additions and 0 deletions
@@ -28700,6 +28700,25 @@ public class FirNativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTe
}
}
@Nested
@TestMetadata("compiler/testData/codegen/box/klib")
@TestDataPath("$PROJECT_ROOT")
@Tag("frontend-fir")
@FirPipeline()
@UseExtTestCaseGroupProvider()
public class Klib {
@Test
public void testAllFilesPresentInKlib() {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/klib"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true);
}
@Test
@TestMetadata("kt33411.kt")
public void testKt33411() {
runTest("compiler/testData/codegen/box/klib/kt33411.kt");
}
}
@Nested
@TestMetadata("compiler/testData/codegen/box/ktype")
@TestDataPath("$PROJECT_ROOT")
@@ -29318,6 +29318,27 @@ public class FirNativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenB
}
}
@Nested
@TestMetadata("compiler/testData/codegen/box/klib")
@TestDataPath("$PROJECT_ROOT")
@Tag("frontend-fir")
@FirPipeline()
@UseExtTestCaseGroupProvider()
@UsePartialLinkage(mode = Mode.DISABLED)
@Tag("no-partial-linkage-may-be-skipped")
public class Klib {
@Test
public void testAllFilesPresentInKlib() {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/klib"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true);
}
@Test
@TestMetadata("kt33411.kt")
public void testKt33411() {
runTest("compiler/testData/codegen/box/klib/kt33411.kt");
}
}
@Nested
@TestMetadata("compiler/testData/codegen/box/ktype")
@TestDataPath("$PROJECT_ROOT")
@@ -28082,6 +28082,23 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest
}
}
@Nested
@TestMetadata("compiler/testData/codegen/box/klib")
@TestDataPath("$PROJECT_ROOT")
@UseExtTestCaseGroupProvider()
public class Klib {
@Test
public void testAllFilesPresentInKlib() {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/klib"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true);
}
@Test
@TestMetadata("kt33411.kt")
public void testKt33411() {
runTest("compiler/testData/codegen/box/klib/kt33411.kt");
}
}
@Nested
@TestMetadata("compiler/testData/codegen/box/ktype")
@TestDataPath("$PROJECT_ROOT")
@@ -28701,6 +28701,25 @@ public class NativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenBoxT
}
}
@Nested
@TestMetadata("compiler/testData/codegen/box/klib")
@TestDataPath("$PROJECT_ROOT")
@UseExtTestCaseGroupProvider()
@UsePartialLinkage(mode = Mode.DISABLED)
@Tag("no-partial-linkage-may-be-skipped")
public class Klib {
@Test
public void testAllFilesPresentInKlib() {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/klib"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true);
}
@Test
@TestMetadata("kt33411.kt")
public void testKt33411() {
runTest("compiler/testData/codegen/box/klib/kt33411.kt");
}
}
@Nested
@TestMetadata("compiler/testData/codegen/box/ktype")
@TestDataPath("$PROJECT_ROOT")