Add regression tests for KT-46890 and other stuff
This commit is contained in:
js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/es6/semantics/IrJsCodegenBoxES6TestGenerated.java
Generated
+43
@@ -14729,6 +14729,49 @@ public class IrJsCodegenBoxES6TestGenerated extends AbstractIrJsCodegenBoxES6Tes
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/codegen/box/inlineClasses/result")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class Result extends AbstractIrJsCodegenBoxES6Test {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInResult() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/inlineClasses/result"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true);
|
||||
}
|
||||
|
||||
@TestMetadata("directCall1.kt")
|
||||
public void testDirectCall1() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/inlineClasses/result/directCall1.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("directCall2.kt")
|
||||
public void testDirectCall2() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/inlineClasses/result/directCall2.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("doubleOverride.kt")
|
||||
public void testDoubleOverride() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/inlineClasses/result/doubleOverride.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("extensionOverride.kt")
|
||||
public void testExtensionOverride() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/inlineClasses/result/extensionOverride.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("inlineMethodOnResult.kt")
|
||||
public void testInlineMethodOnResult() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/inlineClasses/result/inlineMethodOnResult.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("lambdaTakesResultThroughBridge.kt")
|
||||
public void testLambdaTakesResultThroughBridge() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/inlineClasses/result/lambdaTakesResultThroughBridge.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/codegen/box/inlineClasses/returnResult")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
|
||||
Generated
+43
@@ -14135,6 +14135,49 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest {
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/codegen/box/inlineClasses/result")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class Result extends AbstractIrJsCodegenBoxTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInResult() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/inlineClasses/result"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true);
|
||||
}
|
||||
|
||||
@TestMetadata("directCall1.kt")
|
||||
public void testDirectCall1() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/inlineClasses/result/directCall1.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("directCall2.kt")
|
||||
public void testDirectCall2() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/inlineClasses/result/directCall2.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("doubleOverride.kt")
|
||||
public void testDoubleOverride() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/inlineClasses/result/doubleOverride.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("extensionOverride.kt")
|
||||
public void testExtensionOverride() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/inlineClasses/result/extensionOverride.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("inlineMethodOnResult.kt")
|
||||
public void testInlineMethodOnResult() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/inlineClasses/result/inlineMethodOnResult.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("lambdaTakesResultThroughBridge.kt")
|
||||
public void testLambdaTakesResultThroughBridge() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/inlineClasses/result/lambdaTakesResultThroughBridge.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/codegen/box/inlineClasses/returnResult")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
|
||||
Generated
+43
@@ -14200,6 +14200,49 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest {
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/codegen/box/inlineClasses/result")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class Result extends AbstractJsCodegenBoxTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInResult() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/inlineClasses/result"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS, true);
|
||||
}
|
||||
|
||||
@TestMetadata("directCall1.kt")
|
||||
public void testDirectCall1() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/inlineClasses/result/directCall1.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("directCall2.kt")
|
||||
public void testDirectCall2() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/inlineClasses/result/directCall2.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("doubleOverride.kt")
|
||||
public void testDoubleOverride() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/inlineClasses/result/doubleOverride.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("extensionOverride.kt")
|
||||
public void testExtensionOverride() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/inlineClasses/result/extensionOverride.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("inlineMethodOnResult.kt")
|
||||
public void testInlineMethodOnResult() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/inlineClasses/result/inlineMethodOnResult.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("lambdaTakesResultThroughBridge.kt")
|
||||
public void testLambdaTakesResultThroughBridge() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/inlineClasses/result/lambdaTakesResultThroughBridge.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/codegen/box/inlineClasses/returnResult")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
|
||||
js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/wasm/semantics/IrCodegenBoxWasmTestGenerated.java
Generated
+43
@@ -8065,6 +8065,49 @@ public class IrCodegenBoxWasmTestGenerated extends AbstractIrCodegenBoxWasmTest
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/codegen/box/inlineClasses/result")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class Result extends AbstractIrCodegenBoxWasmTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest0(this::doTest, TargetBackend.WASM, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInResult() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/inlineClasses/result"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.WASM, true);
|
||||
}
|
||||
|
||||
@TestMetadata("directCall1.kt")
|
||||
public void testDirectCall1() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/inlineClasses/result/directCall1.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("directCall2.kt")
|
||||
public void testDirectCall2() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/inlineClasses/result/directCall2.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("doubleOverride.kt")
|
||||
public void testDoubleOverride() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/inlineClasses/result/doubleOverride.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("extensionOverride.kt")
|
||||
public void testExtensionOverride() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/inlineClasses/result/extensionOverride.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("inlineMethodOnResult.kt")
|
||||
public void testInlineMethodOnResult() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/inlineClasses/result/inlineMethodOnResult.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("lambdaTakesResultThroughBridge.kt")
|
||||
public void testLambdaTakesResultThroughBridge() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/inlineClasses/result/lambdaTakesResultThroughBridge.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/codegen/box/inlineClasses/returnResult")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
|
||||
Reference in New Issue
Block a user