[Test] Regenerate tests after two previous commits
This commit is contained in:
committed by
Space Team
parent
d9beae0556
commit
acf2296590
Generated
+18
-18
@@ -22,26 +22,26 @@ import java.util.regex.Pattern;
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public class ComposeLikeIrBlackBoxCodegenTestGenerated extends AbstractComposeLikeIrBlackBoxCodegenTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath);
|
||||
}
|
||||
private void runTest(String testDataFilePath) {
|
||||
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInComposeLike() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/composeLike"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
||||
}
|
||||
public void testAllFilesPresentInComposeLike() {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/composeLike"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
||||
}
|
||||
|
||||
@TestMetadata("default.kt")
|
||||
public void testDefault() throws Exception {
|
||||
runTest("compiler/testData/codegen/composeLike/default.kt");
|
||||
}
|
||||
@TestMetadata("default.kt")
|
||||
public void testDefault() {
|
||||
runTest("compiler/testData/codegen/composeLike/default.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("defaultInline.kt")
|
||||
public void testDefaultInline() throws Exception {
|
||||
runTest("compiler/testData/codegen/composeLike/defaultInline.kt");
|
||||
}
|
||||
@TestMetadata("defaultInline.kt")
|
||||
public void testDefaultInline() {
|
||||
runTest("compiler/testData/codegen/composeLike/defaultInline.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("defaultLocal.kt")
|
||||
public void testDefaultLocal() throws Exception {
|
||||
runTest("compiler/testData/codegen/composeLike/defaultLocal.kt");
|
||||
}
|
||||
@TestMetadata("defaultLocal.kt")
|
||||
public void testDefaultLocal() {
|
||||
runTest("compiler/testData/codegen/composeLike/defaultLocal.kt");
|
||||
}
|
||||
}
|
||||
|
||||
Generated
+18
-18
@@ -22,26 +22,26 @@ import java.util.regex.Pattern;
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public class ComposeLikeIrBytecodeTextTestGenerated extends AbstractComposeLikeIrBytecodeTextTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath);
|
||||
}
|
||||
private void runTest(String testDataFilePath) {
|
||||
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInComposeLikeBytecodeText() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/composeLikeBytecodeText"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
||||
}
|
||||
public void testAllFilesPresentInComposeLikeBytecodeText() {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/composeLikeBytecodeText"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
||||
}
|
||||
|
||||
@TestMetadata("default.kt")
|
||||
public void testDefault() throws Exception {
|
||||
runTest("compiler/testData/codegen/composeLikeBytecodeText/default.kt");
|
||||
}
|
||||
@TestMetadata("default.kt")
|
||||
public void testDefault() {
|
||||
runTest("compiler/testData/codegen/composeLikeBytecodeText/default.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("defaultInline.kt")
|
||||
public void testDefaultInline() throws Exception {
|
||||
runTest("compiler/testData/codegen/composeLikeBytecodeText/defaultInline.kt");
|
||||
}
|
||||
@TestMetadata("defaultInline.kt")
|
||||
public void testDefaultInline() {
|
||||
runTest("compiler/testData/codegen/composeLikeBytecodeText/defaultInline.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("defaultLocal.kt")
|
||||
public void testDefaultLocal() throws Exception {
|
||||
runTest("compiler/testData/codegen/composeLikeBytecodeText/defaultLocal.kt");
|
||||
}
|
||||
@TestMetadata("defaultLocal.kt")
|
||||
public void testDefaultLocal() {
|
||||
runTest("compiler/testData/codegen/composeLikeBytecodeText/defaultLocal.kt");
|
||||
}
|
||||
}
|
||||
|
||||
Generated
+95
-95
@@ -22,114 +22,114 @@ import java.util.regex.Pattern;
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public class IrCheckLocalVariablesTableTestGenerated extends AbstractIrCheckLocalVariablesTableTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath);
|
||||
private void runTest(String testDataFilePath) {
|
||||
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInCheckLocalVariablesTable() {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/checkLocalVariablesTable"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
||||
}
|
||||
|
||||
@TestMetadata("destructuringInLambdas.kt")
|
||||
public void testDestructuringInLambdas() {
|
||||
runTest("compiler/testData/checkLocalVariablesTable/destructuringInLambdas.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("inlineLambdaWithItParam.kt")
|
||||
public void testInlineLambdaWithItParam() {
|
||||
runTest("compiler/testData/checkLocalVariablesTable/inlineLambdaWithItParam.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("inlineLambdaWithParam.kt")
|
||||
public void testInlineLambdaWithParam() {
|
||||
runTest("compiler/testData/checkLocalVariablesTable/inlineLambdaWithParam.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("inlineSimple.kt")
|
||||
public void testInlineSimple() {
|
||||
runTest("compiler/testData/checkLocalVariablesTable/inlineSimple.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("inlineSimpleChain.kt")
|
||||
public void testInlineSimpleChain() {
|
||||
runTest("compiler/testData/checkLocalVariablesTable/inlineSimpleChain.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("itInLambda.kt")
|
||||
public void testItInLambda() {
|
||||
runTest("compiler/testData/checkLocalVariablesTable/itInLambda.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("itInReturnedLambda.kt")
|
||||
public void testItInReturnedLambda() {
|
||||
runTest("compiler/testData/checkLocalVariablesTable/itInReturnedLambda.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt11117.kt")
|
||||
public void testKt11117() {
|
||||
runTest("compiler/testData/checkLocalVariablesTable/kt11117.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("lambdaAsVar.kt")
|
||||
public void testLambdaAsVar() {
|
||||
runTest("compiler/testData/checkLocalVariablesTable/lambdaAsVar.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("objectInLocalPropertyDelegate.kt")
|
||||
public void testObjectInLocalPropertyDelegate() {
|
||||
runTest("compiler/testData/checkLocalVariablesTable/objectInLocalPropertyDelegate.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("suspendFunctionDeadVariables.kt")
|
||||
public void testSuspendFunctionDeadVariables() {
|
||||
runTest("compiler/testData/checkLocalVariablesTable/suspendFunctionDeadVariables.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("underscoreNames.kt")
|
||||
public void testUnderscoreNames() {
|
||||
runTest("compiler/testData/checkLocalVariablesTable/underscoreNames.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/checkLocalVariablesTable/parametersInSuspendLambda")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class ParametersInSuspendLambda extends AbstractIrCheckLocalVariablesTableTest {
|
||||
private void runTest(String testDataFilePath) {
|
||||
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInCheckLocalVariablesTable() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/checkLocalVariablesTable"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
||||
public void testAllFilesPresentInParametersInSuspendLambda() {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/checkLocalVariablesTable/parametersInSuspendLambda"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
||||
}
|
||||
|
||||
@TestMetadata("destructuringInLambdas.kt")
|
||||
public void testDestructuringInLambdas() throws Exception {
|
||||
runTest("compiler/testData/checkLocalVariablesTable/destructuringInLambdas.kt");
|
||||
@TestMetadata("dataClass.kt")
|
||||
public void testDataClass() {
|
||||
runTest("compiler/testData/checkLocalVariablesTable/parametersInSuspendLambda/dataClass.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("inlineLambdaWithItParam.kt")
|
||||
public void testInlineLambdaWithItParam() throws Exception {
|
||||
runTest("compiler/testData/checkLocalVariablesTable/inlineLambdaWithItParam.kt");
|
||||
@TestMetadata("extensionComponents.kt")
|
||||
public void testExtensionComponents() {
|
||||
runTest("compiler/testData/checkLocalVariablesTable/parametersInSuspendLambda/extensionComponents.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("inlineLambdaWithParam.kt")
|
||||
public void testInlineLambdaWithParam() throws Exception {
|
||||
runTest("compiler/testData/checkLocalVariablesTable/inlineLambdaWithParam.kt");
|
||||
@TestMetadata("generic.kt")
|
||||
public void testGeneric() {
|
||||
runTest("compiler/testData/checkLocalVariablesTable/parametersInSuspendLambda/generic.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("inlineSimple.kt")
|
||||
public void testInlineSimple() throws Exception {
|
||||
runTest("compiler/testData/checkLocalVariablesTable/inlineSimple.kt");
|
||||
@TestMetadata("inline.kt")
|
||||
public void testInline() {
|
||||
runTest("compiler/testData/checkLocalVariablesTable/parametersInSuspendLambda/inline.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("inlineSimpleChain.kt")
|
||||
public void testInlineSimpleChain() throws Exception {
|
||||
runTest("compiler/testData/checkLocalVariablesTable/inlineSimpleChain.kt");
|
||||
@TestMetadata("otherParameters.kt")
|
||||
public void testOtherParameters() {
|
||||
runTest("compiler/testData/checkLocalVariablesTable/parametersInSuspendLambda/otherParameters.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("itInLambda.kt")
|
||||
public void testItInLambda() throws Exception {
|
||||
runTest("compiler/testData/checkLocalVariablesTable/itInLambda.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("itInReturnedLambda.kt")
|
||||
public void testItInReturnedLambda() throws Exception {
|
||||
runTest("compiler/testData/checkLocalVariablesTable/itInReturnedLambda.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt11117.kt")
|
||||
public void testKt11117() throws Exception {
|
||||
runTest("compiler/testData/checkLocalVariablesTable/kt11117.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("lambdaAsVar.kt")
|
||||
public void testLambdaAsVar() throws Exception {
|
||||
runTest("compiler/testData/checkLocalVariablesTable/lambdaAsVar.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("objectInLocalPropertyDelegate.kt")
|
||||
public void testObjectInLocalPropertyDelegate() throws Exception {
|
||||
runTest("compiler/testData/checkLocalVariablesTable/objectInLocalPropertyDelegate.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("suspendFunctionDeadVariables.kt")
|
||||
public void testSuspendFunctionDeadVariables() throws Exception {
|
||||
runTest("compiler/testData/checkLocalVariablesTable/suspendFunctionDeadVariables.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("underscoreNames.kt")
|
||||
public void testUnderscoreNames() throws Exception {
|
||||
runTest("compiler/testData/checkLocalVariablesTable/underscoreNames.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/checkLocalVariablesTable/parametersInSuspendLambda")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class ParametersInSuspendLambda extends AbstractIrCheckLocalVariablesTableTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInParametersInSuspendLambda() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/checkLocalVariablesTable/parametersInSuspendLambda"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
||||
}
|
||||
|
||||
@TestMetadata("dataClass.kt")
|
||||
public void testDataClass() throws Exception {
|
||||
runTest("compiler/testData/checkLocalVariablesTable/parametersInSuspendLambda/dataClass.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("extensionComponents.kt")
|
||||
public void testExtensionComponents() throws Exception {
|
||||
runTest("compiler/testData/checkLocalVariablesTable/parametersInSuspendLambda/extensionComponents.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("generic.kt")
|
||||
public void testGeneric() throws Exception {
|
||||
runTest("compiler/testData/checkLocalVariablesTable/parametersInSuspendLambda/generic.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("inline.kt")
|
||||
public void testInline() throws Exception {
|
||||
runTest("compiler/testData/checkLocalVariablesTable/parametersInSuspendLambda/inline.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("otherParameters.kt")
|
||||
public void testOtherParameters() throws Exception {
|
||||
runTest("compiler/testData/checkLocalVariablesTable/parametersInSuspendLambda/otherParameters.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("parameters.kt")
|
||||
public void testParameters() throws Exception {
|
||||
runTest("compiler/testData/checkLocalVariablesTable/parametersInSuspendLambda/parameters.kt");
|
||||
}
|
||||
@TestMetadata("parameters.kt")
|
||||
public void testParameters() {
|
||||
runTest("compiler/testData/checkLocalVariablesTable/parametersInSuspendLambda/parameters.kt");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
+242
-242
@@ -22,289 +22,289 @@ import java.util.regex.Pattern;
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public class IrScriptCodegenTestGenerated extends AbstractIrScriptCodegenTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath);
|
||||
private void runTest(String testDataFilePath) {
|
||||
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath);
|
||||
}
|
||||
|
||||
@TestMetadata("adder.kts")
|
||||
public void testAdder() {
|
||||
runTest("compiler/testData/codegen/script/adder.kts");
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInScript() {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/script"), Pattern.compile("^(.+)\\.kts$"), Pattern.compile("^(.+)\\.(reversed|fir|ll)\\.kts?$"), TargetBackend.JVM_IR, true);
|
||||
}
|
||||
|
||||
@TestMetadata("classLiteralInsideFunction.kts")
|
||||
public void testClassLiteralInsideFunction() {
|
||||
runTest("compiler/testData/codegen/script/classLiteralInsideFunction.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("destructuringDeclaration.kts")
|
||||
public void testDestructuringDeclaration() {
|
||||
runTest("compiler/testData/codegen/script/destructuringDeclaration.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("destructuringDeclarationUnderscore.kts")
|
||||
public void testDestructuringDeclarationUnderscore() {
|
||||
runTest("compiler/testData/codegen/script/destructuringDeclarationUnderscore.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("empty.kts")
|
||||
public void testEmpty() {
|
||||
runTest("compiler/testData/codegen/script/empty.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("helloWorld.kts")
|
||||
public void testHelloWorld() {
|
||||
runTest("compiler/testData/codegen/script/helloWorld.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("inline.kts")
|
||||
public void testInline() {
|
||||
runTest("compiler/testData/codegen/script/inline.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("innerClass.kts")
|
||||
public void testInnerClass() {
|
||||
runTest("compiler/testData/codegen/script/innerClass.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("kt20707.kts")
|
||||
public void testKt20707() {
|
||||
runTest("compiler/testData/codegen/script/kt20707.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("kt22029.kts")
|
||||
public void testKt22029() {
|
||||
runTest("compiler/testData/codegen/script/kt22029.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("kt48025.kts")
|
||||
public void testKt48025() {
|
||||
runTest("compiler/testData/codegen/script/kt48025.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("localDelegatedProperty.kts")
|
||||
public void testLocalDelegatedProperty() {
|
||||
runTest("compiler/testData/codegen/script/localDelegatedProperty.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("localDelegatedPropertyInLambda.kts")
|
||||
public void testLocalDelegatedPropertyInLambda() {
|
||||
runTest("compiler/testData/codegen/script/localDelegatedPropertyInLambda.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("localDelegatedPropertyNoExplicitType.kts")
|
||||
public void testLocalDelegatedPropertyNoExplicitType() {
|
||||
runTest("compiler/testData/codegen/script/localDelegatedPropertyNoExplicitType.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("localFunction.kts")
|
||||
public void testLocalFunction() {
|
||||
runTest("compiler/testData/codegen/script/localFunction.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("outerCapture.kts")
|
||||
public void testOuterCapture() {
|
||||
runTest("compiler/testData/codegen/script/outerCapture.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("parameter.kts")
|
||||
public void testParameter() {
|
||||
runTest("compiler/testData/codegen/script/parameter.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("parameterArray.kts")
|
||||
public void testParameterArray() {
|
||||
runTest("compiler/testData/codegen/script/parameterArray.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("parameterClosure.kts")
|
||||
public void testParameterClosure() {
|
||||
runTest("compiler/testData/codegen/script/parameterClosure.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("parameterLong.kts")
|
||||
public void testParameterLong() {
|
||||
runTest("compiler/testData/codegen/script/parameterLong.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("secondLevelFunction.kts")
|
||||
public void testSecondLevelFunction() {
|
||||
runTest("compiler/testData/codegen/script/secondLevelFunction.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("secondLevelFunctionClosure.kts")
|
||||
public void testSecondLevelFunctionClosure() {
|
||||
runTest("compiler/testData/codegen/script/secondLevelFunctionClosure.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("secondLevelVal.kts")
|
||||
public void testSecondLevelVal() {
|
||||
runTest("compiler/testData/codegen/script/secondLevelVal.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("simpleClass.kts")
|
||||
public void testSimpleClass() {
|
||||
runTest("compiler/testData/codegen/script/simpleClass.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("string.kts")
|
||||
public void testString() {
|
||||
runTest("compiler/testData/codegen/script/string.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("topLevelFunction.kts")
|
||||
public void testTopLevelFunction() {
|
||||
runTest("compiler/testData/codegen/script/topLevelFunction.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("topLevelFunctionClosure.kts")
|
||||
public void testTopLevelFunctionClosure() {
|
||||
runTest("compiler/testData/codegen/script/topLevelFunctionClosure.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("topLevelLocalDelegatedProperty.kts")
|
||||
public void testTopLevelLocalDelegatedProperty() {
|
||||
runTest("compiler/testData/codegen/script/topLevelLocalDelegatedProperty.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("topLevelPropertiesWithGetSet.kts")
|
||||
public void testTopLevelPropertiesWithGetSet() {
|
||||
runTest("compiler/testData/codegen/script/topLevelPropertiesWithGetSet.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("topLevelProperty.kts")
|
||||
public void testTopLevelProperty() {
|
||||
runTest("compiler/testData/codegen/script/topLevelProperty.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("topLevelPropertyWithProvideDelegate.kts")
|
||||
public void testTopLevelPropertyWithProvideDelegate() {
|
||||
runTest("compiler/testData/codegen/script/topLevelPropertyWithProvideDelegate.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("topLevelTypealias.kts")
|
||||
public void testTopLevelTypealias() {
|
||||
runTest("compiler/testData/codegen/script/topLevelTypealias.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("twoDestructuringDeclarations.kts")
|
||||
public void testTwoDestructuringDeclarations() {
|
||||
runTest("compiler/testData/codegen/script/twoDestructuringDeclarations.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/codegen/script/scriptInstanceCapturing")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class ScriptInstanceCapturing extends AbstractIrScriptCodegenTest {
|
||||
private void runTest(String testDataFilePath) {
|
||||
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath);
|
||||
}
|
||||
|
||||
@TestMetadata("adder.kts")
|
||||
public void testAdder() throws Exception {
|
||||
runTest("compiler/testData/codegen/script/adder.kts");
|
||||
public void testAllFilesPresentInScriptInstanceCapturing() {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/script/scriptInstanceCapturing"), Pattern.compile("^(.+)\\.kts$"), Pattern.compile("^(.+)\\.(reversed|fir|ll)\\.kts?$"), TargetBackend.JVM_IR, true);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInScript() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/script"), Pattern.compile("^(.+)\\.kts$"), Pattern.compile("^(.+)\\.(reversed|fir|ll)\\.kts?$"), TargetBackend.JVM_IR, true);
|
||||
@TestMetadata("anonymousObjectCapturesProperty.kts")
|
||||
public void testAnonymousObjectCapturesProperty() {
|
||||
runTest("compiler/testData/codegen/script/scriptInstanceCapturing/anonymousObjectCapturesProperty.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("classLiteralInsideFunction.kts")
|
||||
public void testClassLiteralInsideFunction() throws Exception {
|
||||
runTest("compiler/testData/codegen/script/classLiteralInsideFunction.kts");
|
||||
@TestMetadata("classCapturesExtensionIndirect.kts")
|
||||
public void testClassCapturesExtensionIndirect() {
|
||||
runTest("compiler/testData/codegen/script/scriptInstanceCapturing/classCapturesExtensionIndirect.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("destructuringDeclaration.kts")
|
||||
public void testDestructuringDeclaration() throws Exception {
|
||||
runTest("compiler/testData/codegen/script/destructuringDeclaration.kts");
|
||||
@TestMetadata("classCapturesExtensionIndirect2x.kts")
|
||||
public void testClassCapturesExtensionIndirect2x() {
|
||||
runTest("compiler/testData/codegen/script/scriptInstanceCapturing/classCapturesExtensionIndirect2x.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("destructuringDeclarationUnderscore.kts")
|
||||
public void testDestructuringDeclarationUnderscore() throws Exception {
|
||||
runTest("compiler/testData/codegen/script/destructuringDeclarationUnderscore.kts");
|
||||
@TestMetadata("classCapturesFunction.kts")
|
||||
public void testClassCapturesFunction() {
|
||||
runTest("compiler/testData/codegen/script/scriptInstanceCapturing/classCapturesFunction.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("empty.kts")
|
||||
public void testEmpty() throws Exception {
|
||||
runTest("compiler/testData/codegen/script/empty.kts");
|
||||
@TestMetadata("classCapturesProperty.kts")
|
||||
public void testClassCapturesProperty() {
|
||||
runTest("compiler/testData/codegen/script/scriptInstanceCapturing/classCapturesProperty.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("helloWorld.kts")
|
||||
public void testHelloWorld() throws Exception {
|
||||
runTest("compiler/testData/codegen/script/helloWorld.kts");
|
||||
@TestMetadata("classCapturesPropertyInStringTemplate.kts")
|
||||
public void testClassCapturesPropertyInStringTemplate() {
|
||||
runTest("compiler/testData/codegen/script/scriptInstanceCapturing/classCapturesPropertyInStringTemplate.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("inline.kts")
|
||||
public void testInline() throws Exception {
|
||||
runTest("compiler/testData/codegen/script/inline.kts");
|
||||
@TestMetadata("classCapturesPropertyIndirect.kts")
|
||||
public void testClassCapturesPropertyIndirect() {
|
||||
runTest("compiler/testData/codegen/script/scriptInstanceCapturing/classCapturesPropertyIndirect.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("innerClass.kts")
|
||||
public void testInnerClass() throws Exception {
|
||||
runTest("compiler/testData/codegen/script/innerClass.kts");
|
||||
@TestMetadata("classCapturesPropertyIndirect2x.kts")
|
||||
public void testClassCapturesPropertyIndirect2x() {
|
||||
runTest("compiler/testData/codegen/script/scriptInstanceCapturing/classCapturesPropertyIndirect2x.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("kt20707.kts")
|
||||
public void testKt20707() throws Exception {
|
||||
runTest("compiler/testData/codegen/script/kt20707.kts");
|
||||
@TestMetadata("companionCapturesProperty.kts")
|
||||
public void testCompanionCapturesProperty() {
|
||||
runTest("compiler/testData/codegen/script/scriptInstanceCapturing/companionCapturesProperty.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("kt22029.kts")
|
||||
public void testKt22029() throws Exception {
|
||||
runTest("compiler/testData/codegen/script/kt22029.kts");
|
||||
@TestMetadata("enumCapturesProperty.kts")
|
||||
public void testEnumCapturesProperty() {
|
||||
runTest("compiler/testData/codegen/script/scriptInstanceCapturing/enumCapturesProperty.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("kt48025.kts")
|
||||
public void testKt48025() throws Exception {
|
||||
runTest("compiler/testData/codegen/script/kt48025.kts");
|
||||
@TestMetadata("enumEntryCapturesProperty.kts")
|
||||
public void testEnumEntryCapturesProperty() {
|
||||
runTest("compiler/testData/codegen/script/scriptInstanceCapturing/enumEntryCapturesProperty.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("localDelegatedProperty.kts")
|
||||
public void testLocalDelegatedProperty() throws Exception {
|
||||
runTest("compiler/testData/codegen/script/localDelegatedProperty.kts");
|
||||
@TestMetadata("innerClassesHierarchyCaptureProperty.kts")
|
||||
public void testInnerClassesHierarchyCaptureProperty() {
|
||||
runTest("compiler/testData/codegen/script/scriptInstanceCapturing/innerClassesHierarchyCaptureProperty.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("localDelegatedPropertyInLambda.kts")
|
||||
public void testLocalDelegatedPropertyInLambda() throws Exception {
|
||||
runTest("compiler/testData/codegen/script/localDelegatedPropertyInLambda.kts");
|
||||
@TestMetadata("interfaceCapturesProperty.kts")
|
||||
public void testInterfaceCapturesProperty() {
|
||||
runTest("compiler/testData/codegen/script/scriptInstanceCapturing/interfaceCapturesProperty.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("localDelegatedPropertyNoExplicitType.kts")
|
||||
public void testLocalDelegatedPropertyNoExplicitType() throws Exception {
|
||||
runTest("compiler/testData/codegen/script/localDelegatedPropertyNoExplicitType.kts");
|
||||
@TestMetadata("nestedAndOuterClassesCaptureProperty.kts")
|
||||
public void testNestedAndOuterClassesCaptureProperty() {
|
||||
runTest("compiler/testData/codegen/script/scriptInstanceCapturing/nestedAndOuterClassesCaptureProperty.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("localFunction.kts")
|
||||
public void testLocalFunction() throws Exception {
|
||||
runTest("compiler/testData/codegen/script/localFunction.kts");
|
||||
@TestMetadata("nestedClassCapturesProperty.kts")
|
||||
public void testNestedClassCapturesProperty() {
|
||||
runTest("compiler/testData/codegen/script/scriptInstanceCapturing/nestedClassCapturesProperty.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("outerCapture.kts")
|
||||
public void testOuterCapture() throws Exception {
|
||||
runTest("compiler/testData/codegen/script/outerCapture.kts");
|
||||
@TestMetadata("nestedInnerClassCapturesProperty.kts")
|
||||
public void testNestedInnerClassCapturesProperty() {
|
||||
runTest("compiler/testData/codegen/script/scriptInstanceCapturing/nestedInnerClassCapturesProperty.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("parameter.kts")
|
||||
public void testParameter() throws Exception {
|
||||
runTest("compiler/testData/codegen/script/parameter.kts");
|
||||
@TestMetadata("nestedToObjectClassCapturesProperty.kts")
|
||||
public void testNestedToObjectClassCapturesProperty() {
|
||||
runTest("compiler/testData/codegen/script/scriptInstanceCapturing/nestedToObjectClassCapturesProperty.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("parameterArray.kts")
|
||||
public void testParameterArray() throws Exception {
|
||||
runTest("compiler/testData/codegen/script/parameterArray.kts");
|
||||
@TestMetadata("objectCapturesProperty.kts")
|
||||
public void testObjectCapturesProperty() {
|
||||
runTest("compiler/testData/codegen/script/scriptInstanceCapturing/objectCapturesProperty.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("parameterClosure.kts")
|
||||
public void testParameterClosure() throws Exception {
|
||||
runTest("compiler/testData/codegen/script/parameterClosure.kts");
|
||||
@TestMetadata("objectCapturesPropertyIndirect.kts")
|
||||
public void testObjectCapturesPropertyIndirect() {
|
||||
runTest("compiler/testData/codegen/script/scriptInstanceCapturing/objectCapturesPropertyIndirect.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("parameterLong.kts")
|
||||
public void testParameterLong() throws Exception {
|
||||
runTest("compiler/testData/codegen/script/parameterLong.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("secondLevelFunction.kts")
|
||||
public void testSecondLevelFunction() throws Exception {
|
||||
runTest("compiler/testData/codegen/script/secondLevelFunction.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("secondLevelFunctionClosure.kts")
|
||||
public void testSecondLevelFunctionClosure() throws Exception {
|
||||
runTest("compiler/testData/codegen/script/secondLevelFunctionClosure.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("secondLevelVal.kts")
|
||||
public void testSecondLevelVal() throws Exception {
|
||||
runTest("compiler/testData/codegen/script/secondLevelVal.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("simpleClass.kts")
|
||||
public void testSimpleClass() throws Exception {
|
||||
runTest("compiler/testData/codegen/script/simpleClass.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("string.kts")
|
||||
public void testString() throws Exception {
|
||||
runTest("compiler/testData/codegen/script/string.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("topLevelFunction.kts")
|
||||
public void testTopLevelFunction() throws Exception {
|
||||
runTest("compiler/testData/codegen/script/topLevelFunction.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("topLevelFunctionClosure.kts")
|
||||
public void testTopLevelFunctionClosure() throws Exception {
|
||||
runTest("compiler/testData/codegen/script/topLevelFunctionClosure.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("topLevelLocalDelegatedProperty.kts")
|
||||
public void testTopLevelLocalDelegatedProperty() throws Exception {
|
||||
runTest("compiler/testData/codegen/script/topLevelLocalDelegatedProperty.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("topLevelPropertiesWithGetSet.kts")
|
||||
public void testTopLevelPropertiesWithGetSet() throws Exception {
|
||||
runTest("compiler/testData/codegen/script/topLevelPropertiesWithGetSet.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("topLevelProperty.kts")
|
||||
public void testTopLevelProperty() throws Exception {
|
||||
runTest("compiler/testData/codegen/script/topLevelProperty.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("topLevelPropertyWithProvideDelegate.kts")
|
||||
public void testTopLevelPropertyWithProvideDelegate() throws Exception {
|
||||
runTest("compiler/testData/codegen/script/topLevelPropertyWithProvideDelegate.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("topLevelTypealias.kts")
|
||||
public void testTopLevelTypealias() throws Exception {
|
||||
runTest("compiler/testData/codegen/script/topLevelTypealias.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("twoDestructuringDeclarations.kts")
|
||||
public void testTwoDestructuringDeclarations() throws Exception {
|
||||
runTest("compiler/testData/codegen/script/twoDestructuringDeclarations.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/codegen/script/scriptInstanceCapturing")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class ScriptInstanceCapturing extends AbstractIrScriptCodegenTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInScriptInstanceCapturing() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/script/scriptInstanceCapturing"), Pattern.compile("^(.+)\\.kts$"), Pattern.compile("^(.+)\\.(reversed|fir|ll)\\.kts?$"), TargetBackend.JVM_IR, true);
|
||||
}
|
||||
|
||||
@TestMetadata("anonymousObjectCapturesProperty.kts")
|
||||
public void testAnonymousObjectCapturesProperty() throws Exception {
|
||||
runTest("compiler/testData/codegen/script/scriptInstanceCapturing/anonymousObjectCapturesProperty.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("classCapturesExtensionIndirect.kts")
|
||||
public void testClassCapturesExtensionIndirect() throws Exception {
|
||||
runTest("compiler/testData/codegen/script/scriptInstanceCapturing/classCapturesExtensionIndirect.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("classCapturesExtensionIndirect2x.kts")
|
||||
public void testClassCapturesExtensionIndirect2x() throws Exception {
|
||||
runTest("compiler/testData/codegen/script/scriptInstanceCapturing/classCapturesExtensionIndirect2x.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("classCapturesFunction.kts")
|
||||
public void testClassCapturesFunction() throws Exception {
|
||||
runTest("compiler/testData/codegen/script/scriptInstanceCapturing/classCapturesFunction.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("classCapturesProperty.kts")
|
||||
public void testClassCapturesProperty() throws Exception {
|
||||
runTest("compiler/testData/codegen/script/scriptInstanceCapturing/classCapturesProperty.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("classCapturesPropertyInStringTemplate.kts")
|
||||
public void testClassCapturesPropertyInStringTemplate() throws Exception {
|
||||
runTest("compiler/testData/codegen/script/scriptInstanceCapturing/classCapturesPropertyInStringTemplate.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("classCapturesPropertyIndirect.kts")
|
||||
public void testClassCapturesPropertyIndirect() throws Exception {
|
||||
runTest("compiler/testData/codegen/script/scriptInstanceCapturing/classCapturesPropertyIndirect.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("classCapturesPropertyIndirect2x.kts")
|
||||
public void testClassCapturesPropertyIndirect2x() throws Exception {
|
||||
runTest("compiler/testData/codegen/script/scriptInstanceCapturing/classCapturesPropertyIndirect2x.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("companionCapturesProperty.kts")
|
||||
public void testCompanionCapturesProperty() throws Exception {
|
||||
runTest("compiler/testData/codegen/script/scriptInstanceCapturing/companionCapturesProperty.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("enumCapturesProperty.kts")
|
||||
public void testEnumCapturesProperty() throws Exception {
|
||||
runTest("compiler/testData/codegen/script/scriptInstanceCapturing/enumCapturesProperty.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("enumEntryCapturesProperty.kts")
|
||||
public void testEnumEntryCapturesProperty() throws Exception {
|
||||
runTest("compiler/testData/codegen/script/scriptInstanceCapturing/enumEntryCapturesProperty.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("innerClassesHierarchyCaptureProperty.kts")
|
||||
public void testInnerClassesHierarchyCaptureProperty() throws Exception {
|
||||
runTest("compiler/testData/codegen/script/scriptInstanceCapturing/innerClassesHierarchyCaptureProperty.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("interfaceCapturesProperty.kts")
|
||||
public void testInterfaceCapturesProperty() throws Exception {
|
||||
runTest("compiler/testData/codegen/script/scriptInstanceCapturing/interfaceCapturesProperty.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("nestedAndOuterClassesCaptureProperty.kts")
|
||||
public void testNestedAndOuterClassesCaptureProperty() throws Exception {
|
||||
runTest("compiler/testData/codegen/script/scriptInstanceCapturing/nestedAndOuterClassesCaptureProperty.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("nestedClassCapturesProperty.kts")
|
||||
public void testNestedClassCapturesProperty() throws Exception {
|
||||
runTest("compiler/testData/codegen/script/scriptInstanceCapturing/nestedClassCapturesProperty.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("nestedInnerClassCapturesProperty.kts")
|
||||
public void testNestedInnerClassCapturesProperty() throws Exception {
|
||||
runTest("compiler/testData/codegen/script/scriptInstanceCapturing/nestedInnerClassCapturesProperty.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("nestedToObjectClassCapturesProperty.kts")
|
||||
public void testNestedToObjectClassCapturesProperty() throws Exception {
|
||||
runTest("compiler/testData/codegen/script/scriptInstanceCapturing/nestedToObjectClassCapturesProperty.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("objectCapturesProperty.kts")
|
||||
public void testObjectCapturesProperty() throws Exception {
|
||||
runTest("compiler/testData/codegen/script/scriptInstanceCapturing/objectCapturesProperty.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("objectCapturesPropertyIndirect.kts")
|
||||
public void testObjectCapturesPropertyIndirect() throws Exception {
|
||||
runTest("compiler/testData/codegen/script/scriptInstanceCapturing/objectCapturesPropertyIndirect.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("objectCapturesPropertyViaExtension.kts")
|
||||
public void testObjectCapturesPropertyViaExtension() throws Exception {
|
||||
runTest("compiler/testData/codegen/script/scriptInstanceCapturing/objectCapturesPropertyViaExtension.kts");
|
||||
}
|
||||
@TestMetadata("objectCapturesPropertyViaExtension.kts")
|
||||
public void testObjectCapturesPropertyViaExtension() {
|
||||
runTest("compiler/testData/codegen/script/scriptInstanceCapturing/objectCapturesPropertyViaExtension.kts");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
+1137
-1137
File diff suppressed because it is too large
Load Diff
+627
-627
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user