[tests] BI (1P&1TV/1TIO): add tests for basic cases
single builder parameter single postponed type variable single origin of type information relevant issues: KT-59551
This commit is contained in:
committed by
Space Team
parent
1eda35a59c
commit
b13a225949
+64
@@ -1822,6 +1822,70 @@ public class FirJsCodegenBoxTestGenerated extends AbstractFirJsCodegenBoxTest {
|
||||
}
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("compiler/testData/codegen/box/builderInference")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
public class BuilderInference {
|
||||
@Test
|
||||
public void testAllFilesPresentInBuilderInference() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/builderInference"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true);
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("compiler/testData/codegen/box/builderInference/oneParameter")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
public class OneParameter {
|
||||
@Test
|
||||
public void testAllFilesPresentInOneParameter() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/builderInference/oneParameter"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true);
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("compiler/testData/codegen/box/builderInference/oneParameter/oneTypeVariable")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
public class OneTypeVariable {
|
||||
@Test
|
||||
public void testAllFilesPresentInOneTypeVariable() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/builderInference/oneParameter/oneTypeVariable"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true);
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("compiler/testData/codegen/box/builderInference/oneParameter/oneTypeVariable/oneTypeInfoOrigin")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
public class OneTypeInfoOrigin {
|
||||
@Test
|
||||
public void testAllFilesPresentInOneTypeInfoOrigin() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/builderInference/oneParameter/oneTypeVariable/oneTypeInfoOrigin"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true);
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("AnonymousFunctionArgumentAndBuildeeParameter.kt")
|
||||
public void testAnonymousFunctionArgumentAndBuildeeParameter() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/builderInference/oneParameter/oneTypeVariable/oneTypeInfoOrigin/AnonymousFunctionArgumentAndBuildeeParameter.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("AnonymousFunctionArgumentAndBuildeeReceiver.kt")
|
||||
public void testAnonymousFunctionArgumentAndBuildeeReceiver() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/builderInference/oneParameter/oneTypeVariable/oneTypeInfoOrigin/AnonymousFunctionArgumentAndBuildeeReceiver.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("LambdaArgumentAndBuildeeParameter.kt")
|
||||
public void testLambdaArgumentAndBuildeeParameter() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/builderInference/oneParameter/oneTypeVariable/oneTypeInfoOrigin/LambdaArgumentAndBuildeeParameter.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("LambdaArgumentAndBuildeeReceiver.kt")
|
||||
public void testLambdaArgumentAndBuildeeReceiver() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/builderInference/oneParameter/oneTypeVariable/oneTypeInfoOrigin/LambdaArgumentAndBuildeeReceiver.kt");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("compiler/testData/codegen/box/builtinStubMethods")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
|
||||
+64
@@ -1822,6 +1822,70 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest {
|
||||
}
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("compiler/testData/codegen/box/builderInference")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
public class BuilderInference {
|
||||
@Test
|
||||
public void testAllFilesPresentInBuilderInference() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/builderInference"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true);
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("compiler/testData/codegen/box/builderInference/oneParameter")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
public class OneParameter {
|
||||
@Test
|
||||
public void testAllFilesPresentInOneParameter() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/builderInference/oneParameter"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true);
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("compiler/testData/codegen/box/builderInference/oneParameter/oneTypeVariable")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
public class OneTypeVariable {
|
||||
@Test
|
||||
public void testAllFilesPresentInOneTypeVariable() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/builderInference/oneParameter/oneTypeVariable"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true);
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("compiler/testData/codegen/box/builderInference/oneParameter/oneTypeVariable/oneTypeInfoOrigin")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
public class OneTypeInfoOrigin {
|
||||
@Test
|
||||
public void testAllFilesPresentInOneTypeInfoOrigin() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/builderInference/oneParameter/oneTypeVariable/oneTypeInfoOrigin"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true);
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("AnonymousFunctionArgumentAndBuildeeParameter.kt")
|
||||
public void testAnonymousFunctionArgumentAndBuildeeParameter() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/builderInference/oneParameter/oneTypeVariable/oneTypeInfoOrigin/AnonymousFunctionArgumentAndBuildeeParameter.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("AnonymousFunctionArgumentAndBuildeeReceiver.kt")
|
||||
public void testAnonymousFunctionArgumentAndBuildeeReceiver() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/builderInference/oneParameter/oneTypeVariable/oneTypeInfoOrigin/AnonymousFunctionArgumentAndBuildeeReceiver.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("LambdaArgumentAndBuildeeParameter.kt")
|
||||
public void testLambdaArgumentAndBuildeeParameter() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/builderInference/oneParameter/oneTypeVariable/oneTypeInfoOrigin/LambdaArgumentAndBuildeeParameter.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("LambdaArgumentAndBuildeeReceiver.kt")
|
||||
public void testLambdaArgumentAndBuildeeReceiver() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/builderInference/oneParameter/oneTypeVariable/oneTypeInfoOrigin/LambdaArgumentAndBuildeeReceiver.kt");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("compiler/testData/codegen/box/builtinStubMethods")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
|
||||
+64
@@ -1822,6 +1822,70 @@ public class IrJsES6CodegenBoxTestGenerated extends AbstractIrJsES6CodegenBoxTes
|
||||
}
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("compiler/testData/codegen/box/builderInference")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
public class BuilderInference {
|
||||
@Test
|
||||
public void testAllFilesPresentInBuilderInference() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/builderInference"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true);
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("compiler/testData/codegen/box/builderInference/oneParameter")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
public class OneParameter {
|
||||
@Test
|
||||
public void testAllFilesPresentInOneParameter() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/builderInference/oneParameter"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true);
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("compiler/testData/codegen/box/builderInference/oneParameter/oneTypeVariable")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
public class OneTypeVariable {
|
||||
@Test
|
||||
public void testAllFilesPresentInOneTypeVariable() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/builderInference/oneParameter/oneTypeVariable"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true);
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("compiler/testData/codegen/box/builderInference/oneParameter/oneTypeVariable/oneTypeInfoOrigin")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
public class OneTypeInfoOrigin {
|
||||
@Test
|
||||
public void testAllFilesPresentInOneTypeInfoOrigin() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/builderInference/oneParameter/oneTypeVariable/oneTypeInfoOrigin"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true);
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("AnonymousFunctionArgumentAndBuildeeParameter.kt")
|
||||
public void testAnonymousFunctionArgumentAndBuildeeParameter() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/builderInference/oneParameter/oneTypeVariable/oneTypeInfoOrigin/AnonymousFunctionArgumentAndBuildeeParameter.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("AnonymousFunctionArgumentAndBuildeeReceiver.kt")
|
||||
public void testAnonymousFunctionArgumentAndBuildeeReceiver() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/builderInference/oneParameter/oneTypeVariable/oneTypeInfoOrigin/AnonymousFunctionArgumentAndBuildeeReceiver.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("LambdaArgumentAndBuildeeParameter.kt")
|
||||
public void testLambdaArgumentAndBuildeeParameter() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/builderInference/oneParameter/oneTypeVariable/oneTypeInfoOrigin/LambdaArgumentAndBuildeeParameter.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("LambdaArgumentAndBuildeeReceiver.kt")
|
||||
public void testLambdaArgumentAndBuildeeReceiver() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/builderInference/oneParameter/oneTypeVariable/oneTypeInfoOrigin/LambdaArgumentAndBuildeeReceiver.kt");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("compiler/testData/codegen/box/builtinStubMethods")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
|
||||
Reference in New Issue
Block a user