Merge K2 box tests to main box tests
This commit is contained in:
committed by
Space Team
parent
14c2030595
commit
d3be38476a
@@ -1 +0,0 @@
|
|||||||
fun box() = "OK"
|
|
||||||
+94
@@ -16809,6 +16809,12 @@ public class FirLightTreeBlackBoxCodegenTestGenerated extends AbstractFirLightTr
|
|||||||
runTest("compiler/testData/codegen/box/enum/javaEnumValues3.kt");
|
runTest("compiler/testData/codegen/box/enum/javaEnumValues3.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("k54079.kt")
|
||||||
|
public void testK54079() throws Exception {
|
||||||
|
runTest("compiler/testData/codegen/box/enum/k54079.kt");
|
||||||
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@TestMetadata("kt1119.kt")
|
@TestMetadata("kt1119.kt")
|
||||||
public void testKt1119() throws Exception {
|
public void testKt1119() throws Exception {
|
||||||
@@ -36519,6 +36525,88 @@ public class FirLightTreeBlackBoxCodegenTestGenerated extends AbstractFirLightTr
|
|||||||
runTest("compiler/testData/codegen/box/properties/unreachableUninitializedProperty.kt");
|
runTest("compiler/testData/codegen/box/properties/unreachableUninitializedProperty.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Nested
|
||||||
|
@TestMetadata("compiler/testData/codegen/box/properties/backingField")
|
||||||
|
@TestDataPath("$PROJECT_ROOT")
|
||||||
|
public class BackingField {
|
||||||
|
@Test
|
||||||
|
public void testAllFilesPresentInBackingField() throws Exception {
|
||||||
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/properties/backingField"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("backingFieldVisibility.kt")
|
||||||
|
public void testBackingFieldVisibility() throws Exception {
|
||||||
|
runTest("compiler/testData/codegen/box/properties/backingField/backingFieldVisibility.kt");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("backingFieldWithSmartTypeParameters.kt")
|
||||||
|
public void testBackingFieldWithSmartTypeParameters() throws Exception {
|
||||||
|
runTest("compiler/testData/codegen/box/properties/backingField/backingFieldWithSmartTypeParameters.kt");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("charSequenceWithBackingField1.kt")
|
||||||
|
public void testCharSequenceWithBackingField1() throws Exception {
|
||||||
|
runTest("compiler/testData/codegen/box/properties/backingField/charSequenceWithBackingField1.kt");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("charSequenceWithBackingField2.kt")
|
||||||
|
public void testCharSequenceWithBackingField2() throws Exception {
|
||||||
|
runTest("compiler/testData/codegen/box/properties/backingField/charSequenceWithBackingField2.kt");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("charSequenceWithBackingField3.kt")
|
||||||
|
public void testCharSequenceWithBackingField3() throws Exception {
|
||||||
|
runTest("compiler/testData/codegen/box/properties/backingField/charSequenceWithBackingField3.kt");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("charSequenceWithBackingField4.kt")
|
||||||
|
public void testCharSequenceWithBackingField4() throws Exception {
|
||||||
|
runTest("compiler/testData/codegen/box/properties/backingField/charSequenceWithBackingField4.kt");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("charSequenceWithBackingField5.kt")
|
||||||
|
public void testCharSequenceWithBackingField5() throws Exception {
|
||||||
|
runTest("compiler/testData/codegen/box/properties/backingField/charSequenceWithBackingField5.kt");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("explicitBackingFieldInAnonymous.kt")
|
||||||
|
public void testExplicitBackingFieldInAnonymous() throws Exception {
|
||||||
|
runTest("compiler/testData/codegen/box/properties/backingField/explicitBackingFieldInAnonymous.kt");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("getterReturnTypeWithBackingField.kt")
|
||||||
|
public void testGetterReturnTypeWithBackingField() throws Exception {
|
||||||
|
runTest("compiler/testData/codegen/box/properties/backingField/getterReturnTypeWithBackingField.kt");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("independentBackingFieldType.kt")
|
||||||
|
public void testIndependentBackingFieldType() throws Exception {
|
||||||
|
runTest("compiler/testData/codegen/box/properties/backingField/independentBackingFieldType.kt");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("lateinitBackingFields.kt")
|
||||||
|
public void testLateinitBackingFields() throws Exception {
|
||||||
|
runTest("compiler/testData/codegen/box/properties/backingField/lateinitBackingFields.kt");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("overriddenPropertiesWithExplicitBackingFields.kt")
|
||||||
|
public void testOverriddenPropertiesWithExplicitBackingFields() throws Exception {
|
||||||
|
runTest("compiler/testData/codegen/box/properties/backingField/overriddenPropertiesWithExplicitBackingFields.kt");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@Nested
|
@Nested
|
||||||
@TestMetadata("compiler/testData/codegen/box/properties/const")
|
@TestMetadata("compiler/testData/codegen/box/properties/const")
|
||||||
@TestDataPath("$PROJECT_ROOT")
|
@TestDataPath("$PROJECT_ROOT")
|
||||||
@@ -50453,6 +50541,12 @@ public class FirLightTreeBlackBoxCodegenTestGenerated extends AbstractFirLightTr
|
|||||||
runTest("compiler/testData/codegen/box/syntheticExtensions/implicitReceiver.kt");
|
runTest("compiler/testData/codegen/box/syntheticExtensions/implicitReceiver.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("kt56072.kt")
|
||||||
|
public void testKt56072() throws Exception {
|
||||||
|
runTest("compiler/testData/codegen/box/syntheticExtensions/kt56072.kt");
|
||||||
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@TestMetadata("kt56154.kt")
|
@TestMetadata("kt56154.kt")
|
||||||
public void testKt56154() throws Exception {
|
public void testKt56154() throws Exception {
|
||||||
|
|||||||
-190
@@ -1,190 +0,0 @@
|
|||||||
/*
|
|
||||||
* Copyright 2010-2023 JetBrains s.r.o. and Kotlin Programming Language contributors.
|
|
||||||
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
|
|
||||||
*/
|
|
||||||
|
|
||||||
package org.jetbrains.kotlin.test.runners.codegen;
|
|
||||||
|
|
||||||
import com.intellij.testFramework.TestDataPath;
|
|
||||||
import org.jetbrains.kotlin.test.util.KtTestUtil;
|
|
||||||
import org.jetbrains.kotlin.test.TargetBackend;
|
|
||||||
import org.jetbrains.kotlin.test.TestMetadata;
|
|
||||||
import org.junit.jupiter.api.Nested;
|
|
||||||
import org.junit.jupiter.api.Test;
|
|
||||||
|
|
||||||
import java.io.File;
|
|
||||||
import java.util.regex.Pattern;
|
|
||||||
|
|
||||||
/** This class is generated by {@link org.jetbrains.kotlin.test.generators.GenerateCompilerTestsKt}. DO NOT MODIFY MANUALLY */
|
|
||||||
@SuppressWarnings("all")
|
|
||||||
public class FirLightTreeSpecificBlackBoxCodegenTestGenerated extends AbstractFirLightTreeBlackBoxCodegenTest {
|
|
||||||
@Nested
|
|
||||||
@TestMetadata("compiler/fir/fir2ir/testData/codegen/box")
|
|
||||||
@TestDataPath("$PROJECT_ROOT")
|
|
||||||
public class Box {
|
|
||||||
@Test
|
|
||||||
public void testAllFilesPresentInBox() throws Exception {
|
|
||||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/fir/fir2ir/testData/codegen/box"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Test
|
|
||||||
@TestMetadata("sample.kt")
|
|
||||||
public void testSample() throws Exception {
|
|
||||||
runTest("compiler/fir/fir2ir/testData/codegen/box/sample.kt");
|
|
||||||
}
|
|
||||||
|
|
||||||
@Nested
|
|
||||||
@TestMetadata("compiler/fir/fir2ir/testData/codegen/box/properties")
|
|
||||||
@TestDataPath("$PROJECT_ROOT")
|
|
||||||
public class Properties {
|
|
||||||
@Test
|
|
||||||
public void testAllFilesPresentInProperties() throws Exception {
|
|
||||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/fir/fir2ir/testData/codegen/box/properties"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Nested
|
|
||||||
@TestMetadata("compiler/fir/fir2ir/testData/codegen/box/properties/backingField")
|
|
||||||
@TestDataPath("$PROJECT_ROOT")
|
|
||||||
public class BackingField {
|
|
||||||
@Test
|
|
||||||
public void testAllFilesPresentInBackingField() throws Exception {
|
|
||||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/fir/fir2ir/testData/codegen/box/properties/backingField"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Test
|
|
||||||
@TestMetadata("backingFieldVisibility.kt")
|
|
||||||
public void testBackingFieldVisibility() throws Exception {
|
|
||||||
runTest("compiler/fir/fir2ir/testData/codegen/box/properties/backingField/backingFieldVisibility.kt");
|
|
||||||
}
|
|
||||||
|
|
||||||
@Test
|
|
||||||
@TestMetadata("charSequenceWithBackingField1.kt")
|
|
||||||
public void testCharSequenceWithBackingField1() throws Exception {
|
|
||||||
runTest("compiler/fir/fir2ir/testData/codegen/box/properties/backingField/charSequenceWithBackingField1.kt");
|
|
||||||
}
|
|
||||||
|
|
||||||
@Test
|
|
||||||
@TestMetadata("charSequenceWithBackingField2.kt")
|
|
||||||
public void testCharSequenceWithBackingField2() throws Exception {
|
|
||||||
runTest("compiler/fir/fir2ir/testData/codegen/box/properties/backingField/charSequenceWithBackingField2.kt");
|
|
||||||
}
|
|
||||||
|
|
||||||
@Test
|
|
||||||
@TestMetadata("charSequenceWithBackingField3.kt")
|
|
||||||
public void testCharSequenceWithBackingField3() throws Exception {
|
|
||||||
runTest("compiler/fir/fir2ir/testData/codegen/box/properties/backingField/charSequenceWithBackingField3.kt");
|
|
||||||
}
|
|
||||||
|
|
||||||
@Test
|
|
||||||
@TestMetadata("charSequenceWithBackingField4.kt")
|
|
||||||
public void testCharSequenceWithBackingField4() throws Exception {
|
|
||||||
runTest("compiler/fir/fir2ir/testData/codegen/box/properties/backingField/charSequenceWithBackingField4.kt");
|
|
||||||
}
|
|
||||||
|
|
||||||
@Test
|
|
||||||
@TestMetadata("charSequenceWithBackingField5.kt")
|
|
||||||
public void testCharSequenceWithBackingField5() throws Exception {
|
|
||||||
runTest("compiler/fir/fir2ir/testData/codegen/box/properties/backingField/charSequenceWithBackingField5.kt");
|
|
||||||
}
|
|
||||||
|
|
||||||
@Test
|
|
||||||
@TestMetadata("explicitBackingFieldInAnonymous.kt")
|
|
||||||
public void testExplicitBackingFieldInAnonymous() throws Exception {
|
|
||||||
runTest("compiler/fir/fir2ir/testData/codegen/box/properties/backingField/explicitBackingFieldInAnonymous.kt");
|
|
||||||
}
|
|
||||||
|
|
||||||
@Test
|
|
||||||
@TestMetadata("getterReturnTypeWithBackingField.kt")
|
|
||||||
public void testGetterReturnTypeWithBackingField() throws Exception {
|
|
||||||
runTest("compiler/fir/fir2ir/testData/codegen/box/properties/backingField/getterReturnTypeWithBackingField.kt");
|
|
||||||
}
|
|
||||||
|
|
||||||
@Test
|
|
||||||
@TestMetadata("independentBackingFieldType.kt")
|
|
||||||
public void testIndependentBackingFieldType() throws Exception {
|
|
||||||
runTest("compiler/fir/fir2ir/testData/codegen/box/properties/backingField/independentBackingFieldType.kt");
|
|
||||||
}
|
|
||||||
|
|
||||||
@Test
|
|
||||||
@TestMetadata("lateinitBackingFields.kt")
|
|
||||||
public void testLateinitBackingFields() throws Exception {
|
|
||||||
runTest("compiler/fir/fir2ir/testData/codegen/box/properties/backingField/lateinitBackingFields.kt");
|
|
||||||
}
|
|
||||||
|
|
||||||
@Test
|
|
||||||
@TestMetadata("overriddenPropertiesWithExplicitBackingFields.kt")
|
|
||||||
public void testOverriddenPropertiesWithExplicitBackingFields() throws Exception {
|
|
||||||
runTest("compiler/fir/fir2ir/testData/codegen/box/properties/backingField/overriddenPropertiesWithExplicitBackingFields.kt");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@Nested
|
|
||||||
@TestMetadata("compiler/fir/fir2ir/testData/codegen/box/properties/synthetic")
|
|
||||||
@TestDataPath("$PROJECT_ROOT")
|
|
||||||
public class Synthetic {
|
|
||||||
@Test
|
|
||||||
public void testAllFilesPresentInSynthetic() throws Exception {
|
|
||||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/fir/fir2ir/testData/codegen/box/properties/synthetic"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Test
|
|
||||||
@TestMetadata("kt56072.kt")
|
|
||||||
public void testKt56072() throws Exception {
|
|
||||||
runTest("compiler/fir/fir2ir/testData/codegen/box/properties/synthetic/kt56072.kt");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@Nested
|
|
||||||
@TestMetadata("compiler/fir/fir2ir/testData/codegen/boxWithStdLib")
|
|
||||||
@TestDataPath("$PROJECT_ROOT")
|
|
||||||
public class BoxWithStdLib {
|
|
||||||
@Test
|
|
||||||
public void testAllFilesPresentInBoxWithStdLib() throws Exception {
|
|
||||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/fir/fir2ir/testData/codegen/boxWithStdLib"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Nested
|
|
||||||
@TestMetadata("compiler/fir/fir2ir/testData/codegen/boxWithStdLib/enum")
|
|
||||||
@TestDataPath("$PROJECT_ROOT")
|
|
||||||
public class Enum {
|
|
||||||
@Test
|
|
||||||
public void testAllFilesPresentInEnum() throws Exception {
|
|
||||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/fir/fir2ir/testData/codegen/boxWithStdLib/enum"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Test
|
|
||||||
@TestMetadata("k54079.kt")
|
|
||||||
public void testK54079() throws Exception {
|
|
||||||
runTest("compiler/fir/fir2ir/testData/codegen/boxWithStdLib/enum/k54079.kt");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@Nested
|
|
||||||
@TestMetadata("compiler/fir/fir2ir/testData/codegen/boxWithStdLib/properties")
|
|
||||||
@TestDataPath("$PROJECT_ROOT")
|
|
||||||
public class Properties {
|
|
||||||
@Test
|
|
||||||
public void testAllFilesPresentInProperties() throws Exception {
|
|
||||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/fir/fir2ir/testData/codegen/boxWithStdLib/properties"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Nested
|
|
||||||
@TestMetadata("compiler/fir/fir2ir/testData/codegen/boxWithStdLib/properties/backingField")
|
|
||||||
@TestDataPath("$PROJECT_ROOT")
|
|
||||||
public class BackingField {
|
|
||||||
@Test
|
|
||||||
public void testAllFilesPresentInBackingField() throws Exception {
|
|
||||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/fir/fir2ir/testData/codegen/boxWithStdLib/properties/backingField"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Test
|
|
||||||
@TestMetadata("backingFieldWithSmartTypeParameters.kt")
|
|
||||||
public void testBackingFieldWithSmartTypeParameters() throws Exception {
|
|
||||||
runTest("compiler/fir/fir2ir/testData/codegen/boxWithStdLib/properties/backingField/backingFieldWithSmartTypeParameters.kt");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
+94
@@ -16809,6 +16809,12 @@ public class FirPsiBlackBoxCodegenTestGenerated extends AbstractFirPsiBlackBoxCo
|
|||||||
runTest("compiler/testData/codegen/box/enum/javaEnumValues3.kt");
|
runTest("compiler/testData/codegen/box/enum/javaEnumValues3.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("k54079.kt")
|
||||||
|
public void testK54079() throws Exception {
|
||||||
|
runTest("compiler/testData/codegen/box/enum/k54079.kt");
|
||||||
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@TestMetadata("kt1119.kt")
|
@TestMetadata("kt1119.kt")
|
||||||
public void testKt1119() throws Exception {
|
public void testKt1119() throws Exception {
|
||||||
@@ -36519,6 +36525,88 @@ public class FirPsiBlackBoxCodegenTestGenerated extends AbstractFirPsiBlackBoxCo
|
|||||||
runTest("compiler/testData/codegen/box/properties/unreachableUninitializedProperty.kt");
|
runTest("compiler/testData/codegen/box/properties/unreachableUninitializedProperty.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Nested
|
||||||
|
@TestMetadata("compiler/testData/codegen/box/properties/backingField")
|
||||||
|
@TestDataPath("$PROJECT_ROOT")
|
||||||
|
public class BackingField {
|
||||||
|
@Test
|
||||||
|
public void testAllFilesPresentInBackingField() throws Exception {
|
||||||
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/properties/backingField"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("backingFieldVisibility.kt")
|
||||||
|
public void testBackingFieldVisibility() throws Exception {
|
||||||
|
runTest("compiler/testData/codegen/box/properties/backingField/backingFieldVisibility.kt");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("backingFieldWithSmartTypeParameters.kt")
|
||||||
|
public void testBackingFieldWithSmartTypeParameters() throws Exception {
|
||||||
|
runTest("compiler/testData/codegen/box/properties/backingField/backingFieldWithSmartTypeParameters.kt");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("charSequenceWithBackingField1.kt")
|
||||||
|
public void testCharSequenceWithBackingField1() throws Exception {
|
||||||
|
runTest("compiler/testData/codegen/box/properties/backingField/charSequenceWithBackingField1.kt");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("charSequenceWithBackingField2.kt")
|
||||||
|
public void testCharSequenceWithBackingField2() throws Exception {
|
||||||
|
runTest("compiler/testData/codegen/box/properties/backingField/charSequenceWithBackingField2.kt");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("charSequenceWithBackingField3.kt")
|
||||||
|
public void testCharSequenceWithBackingField3() throws Exception {
|
||||||
|
runTest("compiler/testData/codegen/box/properties/backingField/charSequenceWithBackingField3.kt");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("charSequenceWithBackingField4.kt")
|
||||||
|
public void testCharSequenceWithBackingField4() throws Exception {
|
||||||
|
runTest("compiler/testData/codegen/box/properties/backingField/charSequenceWithBackingField4.kt");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("charSequenceWithBackingField5.kt")
|
||||||
|
public void testCharSequenceWithBackingField5() throws Exception {
|
||||||
|
runTest("compiler/testData/codegen/box/properties/backingField/charSequenceWithBackingField5.kt");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("explicitBackingFieldInAnonymous.kt")
|
||||||
|
public void testExplicitBackingFieldInAnonymous() throws Exception {
|
||||||
|
runTest("compiler/testData/codegen/box/properties/backingField/explicitBackingFieldInAnonymous.kt");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("getterReturnTypeWithBackingField.kt")
|
||||||
|
public void testGetterReturnTypeWithBackingField() throws Exception {
|
||||||
|
runTest("compiler/testData/codegen/box/properties/backingField/getterReturnTypeWithBackingField.kt");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("independentBackingFieldType.kt")
|
||||||
|
public void testIndependentBackingFieldType() throws Exception {
|
||||||
|
runTest("compiler/testData/codegen/box/properties/backingField/independentBackingFieldType.kt");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("lateinitBackingFields.kt")
|
||||||
|
public void testLateinitBackingFields() throws Exception {
|
||||||
|
runTest("compiler/testData/codegen/box/properties/backingField/lateinitBackingFields.kt");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("overriddenPropertiesWithExplicitBackingFields.kt")
|
||||||
|
public void testOverriddenPropertiesWithExplicitBackingFields() throws Exception {
|
||||||
|
runTest("compiler/testData/codegen/box/properties/backingField/overriddenPropertiesWithExplicitBackingFields.kt");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@Nested
|
@Nested
|
||||||
@TestMetadata("compiler/testData/codegen/box/properties/const")
|
@TestMetadata("compiler/testData/codegen/box/properties/const")
|
||||||
@TestDataPath("$PROJECT_ROOT")
|
@TestDataPath("$PROJECT_ROOT")
|
||||||
@@ -50453,6 +50541,12 @@ public class FirPsiBlackBoxCodegenTestGenerated extends AbstractFirPsiBlackBoxCo
|
|||||||
runTest("compiler/testData/codegen/box/syntheticExtensions/implicitReceiver.kt");
|
runTest("compiler/testData/codegen/box/syntheticExtensions/implicitReceiver.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("kt56072.kt")
|
||||||
|
public void testKt56072() throws Exception {
|
||||||
|
runTest("compiler/testData/codegen/box/syntheticExtensions/kt56072.kt");
|
||||||
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@TestMetadata("kt56154.kt")
|
@TestMetadata("kt56154.kt")
|
||||||
public void testKt56154() throws Exception {
|
public void testKt56154() throws Exception {
|
||||||
|
|||||||
-190
@@ -1,190 +0,0 @@
|
|||||||
/*
|
|
||||||
* Copyright 2010-2023 JetBrains s.r.o. and Kotlin Programming Language contributors.
|
|
||||||
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
|
|
||||||
*/
|
|
||||||
|
|
||||||
package org.jetbrains.kotlin.test.runners.codegen;
|
|
||||||
|
|
||||||
import com.intellij.testFramework.TestDataPath;
|
|
||||||
import org.jetbrains.kotlin.test.util.KtTestUtil;
|
|
||||||
import org.jetbrains.kotlin.test.TargetBackend;
|
|
||||||
import org.jetbrains.kotlin.test.TestMetadata;
|
|
||||||
import org.junit.jupiter.api.Nested;
|
|
||||||
import org.junit.jupiter.api.Test;
|
|
||||||
|
|
||||||
import java.io.File;
|
|
||||||
import java.util.regex.Pattern;
|
|
||||||
|
|
||||||
/** This class is generated by {@link org.jetbrains.kotlin.test.generators.GenerateCompilerTestsKt}. DO NOT MODIFY MANUALLY */
|
|
||||||
@SuppressWarnings("all")
|
|
||||||
public class FirPsiSpecificBlackBoxCodegenTestGenerated extends AbstractFirPsiBlackBoxCodegenTest {
|
|
||||||
@Nested
|
|
||||||
@TestMetadata("compiler/fir/fir2ir/testData/codegen/box")
|
|
||||||
@TestDataPath("$PROJECT_ROOT")
|
|
||||||
public class Box {
|
|
||||||
@Test
|
|
||||||
public void testAllFilesPresentInBox() throws Exception {
|
|
||||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/fir/fir2ir/testData/codegen/box"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Test
|
|
||||||
@TestMetadata("sample.kt")
|
|
||||||
public void testSample() throws Exception {
|
|
||||||
runTest("compiler/fir/fir2ir/testData/codegen/box/sample.kt");
|
|
||||||
}
|
|
||||||
|
|
||||||
@Nested
|
|
||||||
@TestMetadata("compiler/fir/fir2ir/testData/codegen/box/properties")
|
|
||||||
@TestDataPath("$PROJECT_ROOT")
|
|
||||||
public class Properties {
|
|
||||||
@Test
|
|
||||||
public void testAllFilesPresentInProperties() throws Exception {
|
|
||||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/fir/fir2ir/testData/codegen/box/properties"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Nested
|
|
||||||
@TestMetadata("compiler/fir/fir2ir/testData/codegen/box/properties/backingField")
|
|
||||||
@TestDataPath("$PROJECT_ROOT")
|
|
||||||
public class BackingField {
|
|
||||||
@Test
|
|
||||||
public void testAllFilesPresentInBackingField() throws Exception {
|
|
||||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/fir/fir2ir/testData/codegen/box/properties/backingField"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Test
|
|
||||||
@TestMetadata("backingFieldVisibility.kt")
|
|
||||||
public void testBackingFieldVisibility() throws Exception {
|
|
||||||
runTest("compiler/fir/fir2ir/testData/codegen/box/properties/backingField/backingFieldVisibility.kt");
|
|
||||||
}
|
|
||||||
|
|
||||||
@Test
|
|
||||||
@TestMetadata("charSequenceWithBackingField1.kt")
|
|
||||||
public void testCharSequenceWithBackingField1() throws Exception {
|
|
||||||
runTest("compiler/fir/fir2ir/testData/codegen/box/properties/backingField/charSequenceWithBackingField1.kt");
|
|
||||||
}
|
|
||||||
|
|
||||||
@Test
|
|
||||||
@TestMetadata("charSequenceWithBackingField2.kt")
|
|
||||||
public void testCharSequenceWithBackingField2() throws Exception {
|
|
||||||
runTest("compiler/fir/fir2ir/testData/codegen/box/properties/backingField/charSequenceWithBackingField2.kt");
|
|
||||||
}
|
|
||||||
|
|
||||||
@Test
|
|
||||||
@TestMetadata("charSequenceWithBackingField3.kt")
|
|
||||||
public void testCharSequenceWithBackingField3() throws Exception {
|
|
||||||
runTest("compiler/fir/fir2ir/testData/codegen/box/properties/backingField/charSequenceWithBackingField3.kt");
|
|
||||||
}
|
|
||||||
|
|
||||||
@Test
|
|
||||||
@TestMetadata("charSequenceWithBackingField4.kt")
|
|
||||||
public void testCharSequenceWithBackingField4() throws Exception {
|
|
||||||
runTest("compiler/fir/fir2ir/testData/codegen/box/properties/backingField/charSequenceWithBackingField4.kt");
|
|
||||||
}
|
|
||||||
|
|
||||||
@Test
|
|
||||||
@TestMetadata("charSequenceWithBackingField5.kt")
|
|
||||||
public void testCharSequenceWithBackingField5() throws Exception {
|
|
||||||
runTest("compiler/fir/fir2ir/testData/codegen/box/properties/backingField/charSequenceWithBackingField5.kt");
|
|
||||||
}
|
|
||||||
|
|
||||||
@Test
|
|
||||||
@TestMetadata("explicitBackingFieldInAnonymous.kt")
|
|
||||||
public void testExplicitBackingFieldInAnonymous() throws Exception {
|
|
||||||
runTest("compiler/fir/fir2ir/testData/codegen/box/properties/backingField/explicitBackingFieldInAnonymous.kt");
|
|
||||||
}
|
|
||||||
|
|
||||||
@Test
|
|
||||||
@TestMetadata("getterReturnTypeWithBackingField.kt")
|
|
||||||
public void testGetterReturnTypeWithBackingField() throws Exception {
|
|
||||||
runTest("compiler/fir/fir2ir/testData/codegen/box/properties/backingField/getterReturnTypeWithBackingField.kt");
|
|
||||||
}
|
|
||||||
|
|
||||||
@Test
|
|
||||||
@TestMetadata("independentBackingFieldType.kt")
|
|
||||||
public void testIndependentBackingFieldType() throws Exception {
|
|
||||||
runTest("compiler/fir/fir2ir/testData/codegen/box/properties/backingField/independentBackingFieldType.kt");
|
|
||||||
}
|
|
||||||
|
|
||||||
@Test
|
|
||||||
@TestMetadata("lateinitBackingFields.kt")
|
|
||||||
public void testLateinitBackingFields() throws Exception {
|
|
||||||
runTest("compiler/fir/fir2ir/testData/codegen/box/properties/backingField/lateinitBackingFields.kt");
|
|
||||||
}
|
|
||||||
|
|
||||||
@Test
|
|
||||||
@TestMetadata("overriddenPropertiesWithExplicitBackingFields.kt")
|
|
||||||
public void testOverriddenPropertiesWithExplicitBackingFields() throws Exception {
|
|
||||||
runTest("compiler/fir/fir2ir/testData/codegen/box/properties/backingField/overriddenPropertiesWithExplicitBackingFields.kt");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@Nested
|
|
||||||
@TestMetadata("compiler/fir/fir2ir/testData/codegen/box/properties/synthetic")
|
|
||||||
@TestDataPath("$PROJECT_ROOT")
|
|
||||||
public class Synthetic {
|
|
||||||
@Test
|
|
||||||
public void testAllFilesPresentInSynthetic() throws Exception {
|
|
||||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/fir/fir2ir/testData/codegen/box/properties/synthetic"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Test
|
|
||||||
@TestMetadata("kt56072.kt")
|
|
||||||
public void testKt56072() throws Exception {
|
|
||||||
runTest("compiler/fir/fir2ir/testData/codegen/box/properties/synthetic/kt56072.kt");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@Nested
|
|
||||||
@TestMetadata("compiler/fir/fir2ir/testData/codegen/boxWithStdLib")
|
|
||||||
@TestDataPath("$PROJECT_ROOT")
|
|
||||||
public class BoxWithStdLib {
|
|
||||||
@Test
|
|
||||||
public void testAllFilesPresentInBoxWithStdLib() throws Exception {
|
|
||||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/fir/fir2ir/testData/codegen/boxWithStdLib"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Nested
|
|
||||||
@TestMetadata("compiler/fir/fir2ir/testData/codegen/boxWithStdLib/enum")
|
|
||||||
@TestDataPath("$PROJECT_ROOT")
|
|
||||||
public class Enum {
|
|
||||||
@Test
|
|
||||||
public void testAllFilesPresentInEnum() throws Exception {
|
|
||||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/fir/fir2ir/testData/codegen/boxWithStdLib/enum"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Test
|
|
||||||
@TestMetadata("k54079.kt")
|
|
||||||
public void testK54079() throws Exception {
|
|
||||||
runTest("compiler/fir/fir2ir/testData/codegen/boxWithStdLib/enum/k54079.kt");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@Nested
|
|
||||||
@TestMetadata("compiler/fir/fir2ir/testData/codegen/boxWithStdLib/properties")
|
|
||||||
@TestDataPath("$PROJECT_ROOT")
|
|
||||||
public class Properties {
|
|
||||||
@Test
|
|
||||||
public void testAllFilesPresentInProperties() throws Exception {
|
|
||||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/fir/fir2ir/testData/codegen/boxWithStdLib/properties"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Nested
|
|
||||||
@TestMetadata("compiler/fir/fir2ir/testData/codegen/boxWithStdLib/properties/backingField")
|
|
||||||
@TestDataPath("$PROJECT_ROOT")
|
|
||||||
public class BackingField {
|
|
||||||
@Test
|
|
||||||
public void testAllFilesPresentInBackingField() throws Exception {
|
|
||||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/fir/fir2ir/testData/codegen/boxWithStdLib/properties/backingField"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Test
|
|
||||||
@TestMetadata("backingFieldWithSmartTypeParameters.kt")
|
|
||||||
public void testBackingFieldWithSmartTypeParameters() throws Exception {
|
|
||||||
runTest("compiler/fir/fir2ir/testData/codegen/boxWithStdLib/properties/backingField/backingFieldWithSmartTypeParameters.kt");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
+2
@@ -1,3 +1,5 @@
|
|||||||
|
// WITH_STDLIB
|
||||||
|
|
||||||
open class Arguments {
|
open class Arguments {
|
||||||
@GradleOption(
|
@GradleOption(
|
||||||
value = DefaultValue.BOOLEAN_FALSE_DEFAULT,
|
value = DefaultValue.BOOLEAN_FALSE_DEFAULT,
|
||||||
+3
@@ -1,3 +1,6 @@
|
|||||||
|
// TARGET_BACKEND: JVM_IR
|
||||||
|
// IGNORE_BACKEND_K1: JVM_IR
|
||||||
|
|
||||||
class A {
|
class A {
|
||||||
val a: Number
|
val a: Number
|
||||||
private field = 1
|
private field = 1
|
||||||
+4
@@ -1,3 +1,7 @@
|
|||||||
|
// TARGET_BACKEND: JVM_IR
|
||||||
|
// IGNORE_BACKEND_K1: JVM_IR
|
||||||
|
// WITH_STDLIB
|
||||||
|
|
||||||
val items: List<String>
|
val items: List<String>
|
||||||
field = mutableListOf()
|
field = mutableListOf()
|
||||||
|
|
||||||
+3
@@ -1,3 +1,6 @@
|
|||||||
|
// TARGET_BACKEND: JVM_IR
|
||||||
|
// IGNORE_BACKEND_K1: JVM_IR
|
||||||
|
|
||||||
class Base {
|
class Base {
|
||||||
val x: CharSequence
|
val x: CharSequence
|
||||||
internal field: String = "OK"
|
internal field: String = "OK"
|
||||||
+3
@@ -1,3 +1,6 @@
|
|||||||
|
// TARGET_BACKEND: JVM_IR
|
||||||
|
// IGNORE_BACKEND_K1: JVM_IR
|
||||||
|
|
||||||
class Base {
|
class Base {
|
||||||
val x: CharSequence
|
val x: CharSequence
|
||||||
internal field: String = "OK"
|
internal field: String = "OK"
|
||||||
+3
@@ -1,3 +1,6 @@
|
|||||||
|
// TARGET_BACKEND: JVM_IR
|
||||||
|
// IGNORE_BACKEND_K1: JVM_IR
|
||||||
|
|
||||||
class Base {
|
class Base {
|
||||||
val x: CharSequence
|
val x: CharSequence
|
||||||
internal field: String = "OK"
|
internal field: String = "OK"
|
||||||
+3
@@ -1,3 +1,6 @@
|
|||||||
|
// TARGET_BACKEND: JVM_IR
|
||||||
|
// IGNORE_BACKEND_K1: JVM_IR
|
||||||
|
|
||||||
class Base {
|
class Base {
|
||||||
val x: CharSequence
|
val x: CharSequence
|
||||||
internal field: String = "OK"
|
internal field: String = "OK"
|
||||||
+3
@@ -1,3 +1,6 @@
|
|||||||
|
// TARGET_BACKEND: JVM_IR
|
||||||
|
// IGNORE_BACKEND_K1: JVM_IR
|
||||||
|
|
||||||
open class Base {
|
open class Base {
|
||||||
open val x: CharSequence = "BASE"
|
open val x: CharSequence = "BASE"
|
||||||
// field = "BASE"
|
// field = "BASE"
|
||||||
+3
@@ -1,3 +1,6 @@
|
|||||||
|
// TARGET_BACKEND: JVM_IR
|
||||||
|
// IGNORE_BACKEND_K1: JVM_IR
|
||||||
|
|
||||||
interface I {
|
interface I {
|
||||||
val number: Number
|
val number: Number
|
||||||
}
|
}
|
||||||
+3
@@ -1,3 +1,6 @@
|
|||||||
|
// TARGET_BACKEND: JVM_IR
|
||||||
|
// IGNORE_BACKEND_K1: JVM_IR
|
||||||
|
|
||||||
interface Storage {
|
interface Storage {
|
||||||
val s: String
|
val s: String
|
||||||
}
|
}
|
||||||
+3
@@ -1,3 +1,6 @@
|
|||||||
|
// TARGET_BACKEND: JVM_IR
|
||||||
|
// IGNORE_BACKEND_K1: JVM_IR
|
||||||
|
|
||||||
fun createString() = "AAA" + "BBB"
|
fun createString() = "AAA" + "BBB"
|
||||||
|
|
||||||
class A {
|
class A {
|
||||||
+3
@@ -1,3 +1,6 @@
|
|||||||
|
// TARGET_BACKEND: JVM_IR
|
||||||
|
// IGNORE_BACKEND_K1: JVM_IR
|
||||||
|
|
||||||
var that: Int
|
var that: Int
|
||||||
lateinit field: String
|
lateinit field: String
|
||||||
get() = field.length
|
get() = field.length
|
||||||
+3
@@ -1,3 +1,6 @@
|
|||||||
|
// TARGET_BACKEND: JVM_IR
|
||||||
|
// IGNORE_BACKEND_K1: JVM_IR
|
||||||
|
|
||||||
open class A {
|
open class A {
|
||||||
open var it: Number
|
open var it: Number
|
||||||
private field = 3
|
private field = 3
|
||||||
+1
@@ -1,3 +1,4 @@
|
|||||||
|
// TARGET_BACKEND: JVM
|
||||||
// FILE: SuperClass.java
|
// FILE: SuperClass.java
|
||||||
|
|
||||||
public class SuperClass {
|
public class SuperClass {
|
||||||
+22
@@ -16455,6 +16455,12 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest {
|
|||||||
runTest("compiler/testData/codegen/box/enum/javaEnumValues3.kt");
|
runTest("compiler/testData/codegen/box/enum/javaEnumValues3.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("k54079.kt")
|
||||||
|
public void testK54079() throws Exception {
|
||||||
|
runTest("compiler/testData/codegen/box/enum/k54079.kt");
|
||||||
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@TestMetadata("kt1119.kt")
|
@TestMetadata("kt1119.kt")
|
||||||
public void testKt1119() throws Exception {
|
public void testKt1119() throws Exception {
|
||||||
@@ -35109,6 +35115,16 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest {
|
|||||||
runTest("compiler/testData/codegen/box/properties/unreachableUninitializedProperty.kt");
|
runTest("compiler/testData/codegen/box/properties/unreachableUninitializedProperty.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Nested
|
||||||
|
@TestMetadata("compiler/testData/codegen/box/properties/backingField")
|
||||||
|
@TestDataPath("$PROJECT_ROOT")
|
||||||
|
public class BackingField {
|
||||||
|
@Test
|
||||||
|
public void testAllFilesPresentInBackingField() throws Exception {
|
||||||
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/properties/backingField"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@Nested
|
@Nested
|
||||||
@TestMetadata("compiler/testData/codegen/box/properties/const")
|
@TestMetadata("compiler/testData/codegen/box/properties/const")
|
||||||
@TestDataPath("$PROJECT_ROOT")
|
@TestDataPath("$PROJECT_ROOT")
|
||||||
@@ -48059,6 +48075,12 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest {
|
|||||||
runTest("compiler/testData/codegen/box/syntheticExtensions/implicitReceiver.kt");
|
runTest("compiler/testData/codegen/box/syntheticExtensions/implicitReceiver.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("kt56072.kt")
|
||||||
|
public void testKt56072() throws Exception {
|
||||||
|
runTest("compiler/testData/codegen/box/syntheticExtensions/kt56072.kt");
|
||||||
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@TestMetadata("overrideKotlinPropertyByJavaMethod.kt")
|
@TestMetadata("overrideKotlinPropertyByJavaMethod.kt")
|
||||||
public void testOverrideKotlinPropertyByJavaMethod() throws Exception {
|
public void testOverrideKotlinPropertyByJavaMethod() throws Exception {
|
||||||
|
|||||||
+94
@@ -16809,6 +16809,12 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes
|
|||||||
runTest("compiler/testData/codegen/box/enum/javaEnumValues3.kt");
|
runTest("compiler/testData/codegen/box/enum/javaEnumValues3.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("k54079.kt")
|
||||||
|
public void testK54079() throws Exception {
|
||||||
|
runTest("compiler/testData/codegen/box/enum/k54079.kt");
|
||||||
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@TestMetadata("kt1119.kt")
|
@TestMetadata("kt1119.kt")
|
||||||
public void testKt1119() throws Exception {
|
public void testKt1119() throws Exception {
|
||||||
@@ -36519,6 +36525,88 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes
|
|||||||
runTest("compiler/testData/codegen/box/properties/unreachableUninitializedProperty.kt");
|
runTest("compiler/testData/codegen/box/properties/unreachableUninitializedProperty.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Nested
|
||||||
|
@TestMetadata("compiler/testData/codegen/box/properties/backingField")
|
||||||
|
@TestDataPath("$PROJECT_ROOT")
|
||||||
|
public class BackingField {
|
||||||
|
@Test
|
||||||
|
public void testAllFilesPresentInBackingField() throws Exception {
|
||||||
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/properties/backingField"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("backingFieldVisibility.kt")
|
||||||
|
public void testBackingFieldVisibility() throws Exception {
|
||||||
|
runTest("compiler/testData/codegen/box/properties/backingField/backingFieldVisibility.kt");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("backingFieldWithSmartTypeParameters.kt")
|
||||||
|
public void testBackingFieldWithSmartTypeParameters() throws Exception {
|
||||||
|
runTest("compiler/testData/codegen/box/properties/backingField/backingFieldWithSmartTypeParameters.kt");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("charSequenceWithBackingField1.kt")
|
||||||
|
public void testCharSequenceWithBackingField1() throws Exception {
|
||||||
|
runTest("compiler/testData/codegen/box/properties/backingField/charSequenceWithBackingField1.kt");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("charSequenceWithBackingField2.kt")
|
||||||
|
public void testCharSequenceWithBackingField2() throws Exception {
|
||||||
|
runTest("compiler/testData/codegen/box/properties/backingField/charSequenceWithBackingField2.kt");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("charSequenceWithBackingField3.kt")
|
||||||
|
public void testCharSequenceWithBackingField3() throws Exception {
|
||||||
|
runTest("compiler/testData/codegen/box/properties/backingField/charSequenceWithBackingField3.kt");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("charSequenceWithBackingField4.kt")
|
||||||
|
public void testCharSequenceWithBackingField4() throws Exception {
|
||||||
|
runTest("compiler/testData/codegen/box/properties/backingField/charSequenceWithBackingField4.kt");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("charSequenceWithBackingField5.kt")
|
||||||
|
public void testCharSequenceWithBackingField5() throws Exception {
|
||||||
|
runTest("compiler/testData/codegen/box/properties/backingField/charSequenceWithBackingField5.kt");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("explicitBackingFieldInAnonymous.kt")
|
||||||
|
public void testExplicitBackingFieldInAnonymous() throws Exception {
|
||||||
|
runTest("compiler/testData/codegen/box/properties/backingField/explicitBackingFieldInAnonymous.kt");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("getterReturnTypeWithBackingField.kt")
|
||||||
|
public void testGetterReturnTypeWithBackingField() throws Exception {
|
||||||
|
runTest("compiler/testData/codegen/box/properties/backingField/getterReturnTypeWithBackingField.kt");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("independentBackingFieldType.kt")
|
||||||
|
public void testIndependentBackingFieldType() throws Exception {
|
||||||
|
runTest("compiler/testData/codegen/box/properties/backingField/independentBackingFieldType.kt");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("lateinitBackingFields.kt")
|
||||||
|
public void testLateinitBackingFields() throws Exception {
|
||||||
|
runTest("compiler/testData/codegen/box/properties/backingField/lateinitBackingFields.kt");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("overriddenPropertiesWithExplicitBackingFields.kt")
|
||||||
|
public void testOverriddenPropertiesWithExplicitBackingFields() throws Exception {
|
||||||
|
runTest("compiler/testData/codegen/box/properties/backingField/overriddenPropertiesWithExplicitBackingFields.kt");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@Nested
|
@Nested
|
||||||
@TestMetadata("compiler/testData/codegen/box/properties/const")
|
@TestMetadata("compiler/testData/codegen/box/properties/const")
|
||||||
@TestDataPath("$PROJECT_ROOT")
|
@TestDataPath("$PROJECT_ROOT")
|
||||||
@@ -50453,6 +50541,12 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes
|
|||||||
runTest("compiler/testData/codegen/box/syntheticExtensions/implicitReceiver.kt");
|
runTest("compiler/testData/codegen/box/syntheticExtensions/implicitReceiver.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("kt56072.kt")
|
||||||
|
public void testKt56072() throws Exception {
|
||||||
|
runTest("compiler/testData/codegen/box/syntheticExtensions/kt56072.kt");
|
||||||
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@TestMetadata("kt56154.kt")
|
@TestMetadata("kt56154.kt")
|
||||||
public void testKt56154() throws Exception {
|
public void testKt56154() throws Exception {
|
||||||
|
|||||||
+94
@@ -16809,6 +16809,12 @@ public class IrBlackBoxCodegenWithIrInlinerTestGenerated extends AbstractIrBlack
|
|||||||
runTest("compiler/testData/codegen/box/enum/javaEnumValues3.kt");
|
runTest("compiler/testData/codegen/box/enum/javaEnumValues3.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("k54079.kt")
|
||||||
|
public void testK54079() throws Exception {
|
||||||
|
runTest("compiler/testData/codegen/box/enum/k54079.kt");
|
||||||
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@TestMetadata("kt1119.kt")
|
@TestMetadata("kt1119.kt")
|
||||||
public void testKt1119() throws Exception {
|
public void testKt1119() throws Exception {
|
||||||
@@ -36519,6 +36525,88 @@ public class IrBlackBoxCodegenWithIrInlinerTestGenerated extends AbstractIrBlack
|
|||||||
runTest("compiler/testData/codegen/box/properties/unreachableUninitializedProperty.kt");
|
runTest("compiler/testData/codegen/box/properties/unreachableUninitializedProperty.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Nested
|
||||||
|
@TestMetadata("compiler/testData/codegen/box/properties/backingField")
|
||||||
|
@TestDataPath("$PROJECT_ROOT")
|
||||||
|
public class BackingField {
|
||||||
|
@Test
|
||||||
|
public void testAllFilesPresentInBackingField() throws Exception {
|
||||||
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/properties/backingField"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("backingFieldVisibility.kt")
|
||||||
|
public void testBackingFieldVisibility() throws Exception {
|
||||||
|
runTest("compiler/testData/codegen/box/properties/backingField/backingFieldVisibility.kt");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("backingFieldWithSmartTypeParameters.kt")
|
||||||
|
public void testBackingFieldWithSmartTypeParameters() throws Exception {
|
||||||
|
runTest("compiler/testData/codegen/box/properties/backingField/backingFieldWithSmartTypeParameters.kt");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("charSequenceWithBackingField1.kt")
|
||||||
|
public void testCharSequenceWithBackingField1() throws Exception {
|
||||||
|
runTest("compiler/testData/codegen/box/properties/backingField/charSequenceWithBackingField1.kt");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("charSequenceWithBackingField2.kt")
|
||||||
|
public void testCharSequenceWithBackingField2() throws Exception {
|
||||||
|
runTest("compiler/testData/codegen/box/properties/backingField/charSequenceWithBackingField2.kt");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("charSequenceWithBackingField3.kt")
|
||||||
|
public void testCharSequenceWithBackingField3() throws Exception {
|
||||||
|
runTest("compiler/testData/codegen/box/properties/backingField/charSequenceWithBackingField3.kt");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("charSequenceWithBackingField4.kt")
|
||||||
|
public void testCharSequenceWithBackingField4() throws Exception {
|
||||||
|
runTest("compiler/testData/codegen/box/properties/backingField/charSequenceWithBackingField4.kt");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("charSequenceWithBackingField5.kt")
|
||||||
|
public void testCharSequenceWithBackingField5() throws Exception {
|
||||||
|
runTest("compiler/testData/codegen/box/properties/backingField/charSequenceWithBackingField5.kt");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("explicitBackingFieldInAnonymous.kt")
|
||||||
|
public void testExplicitBackingFieldInAnonymous() throws Exception {
|
||||||
|
runTest("compiler/testData/codegen/box/properties/backingField/explicitBackingFieldInAnonymous.kt");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("getterReturnTypeWithBackingField.kt")
|
||||||
|
public void testGetterReturnTypeWithBackingField() throws Exception {
|
||||||
|
runTest("compiler/testData/codegen/box/properties/backingField/getterReturnTypeWithBackingField.kt");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("independentBackingFieldType.kt")
|
||||||
|
public void testIndependentBackingFieldType() throws Exception {
|
||||||
|
runTest("compiler/testData/codegen/box/properties/backingField/independentBackingFieldType.kt");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("lateinitBackingFields.kt")
|
||||||
|
public void testLateinitBackingFields() throws Exception {
|
||||||
|
runTest("compiler/testData/codegen/box/properties/backingField/lateinitBackingFields.kt");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("overriddenPropertiesWithExplicitBackingFields.kt")
|
||||||
|
public void testOverriddenPropertiesWithExplicitBackingFields() throws Exception {
|
||||||
|
runTest("compiler/testData/codegen/box/properties/backingField/overriddenPropertiesWithExplicitBackingFields.kt");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@Nested
|
@Nested
|
||||||
@TestMetadata("compiler/testData/codegen/box/properties/const")
|
@TestMetadata("compiler/testData/codegen/box/properties/const")
|
||||||
@TestDataPath("$PROJECT_ROOT")
|
@TestDataPath("$PROJECT_ROOT")
|
||||||
@@ -50453,6 +50541,12 @@ public class IrBlackBoxCodegenWithIrInlinerTestGenerated extends AbstractIrBlack
|
|||||||
runTest("compiler/testData/codegen/box/syntheticExtensions/implicitReceiver.kt");
|
runTest("compiler/testData/codegen/box/syntheticExtensions/implicitReceiver.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("kt56072.kt")
|
||||||
|
public void testKt56072() throws Exception {
|
||||||
|
runTest("compiler/testData/codegen/box/syntheticExtensions/kt56072.kt");
|
||||||
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@TestMetadata("kt56154.kt")
|
@TestMetadata("kt56154.kt")
|
||||||
public void testKt56154() throws Exception {
|
public void testKt56154() throws Exception {
|
||||||
|
|||||||
+2
-5
@@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright 2010-2020 JetBrains s.r.o. and Kotlin Programming Language contributors.
|
* Copyright 2010-2023 JetBrains s.r.o. and Kotlin Programming Language contributors.
|
||||||
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
|
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@@ -71,10 +71,7 @@ abstract class AbstractFirBlackBoxCodegenTestBase(
|
|||||||
|
|
||||||
configureDumpHandlersForCodegenTest()
|
configureDumpHandlersForCodegenTest()
|
||||||
|
|
||||||
forTestsMatching(
|
forTestsMatching("compiler/testData/codegen/box/properties/backingField/*") {
|
||||||
"compiler/fir/fir2ir/testData/codegen/box/properties/backingField/*" or
|
|
||||||
"compiler/fir/fir2ir/testData/codegen/boxWithStdLib/properties/backingField/*"
|
|
||||||
) {
|
|
||||||
defaultDirectives {
|
defaultDirectives {
|
||||||
LanguageSettingsDirectives.LANGUAGE with "+ExplicitBackingFields"
|
LanguageSettingsDirectives.LANGUAGE with "+ExplicitBackingFields"
|
||||||
}
|
}
|
||||||
|
|||||||
-16
@@ -339,22 +339,6 @@ fun generateJUnit5CompilerTests(args: Array<String>) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
testGroup(testsRoot = "compiler/fir/fir2ir/tests-gen", testDataRoot = "compiler/fir/fir2ir/testData") {
|
|
||||||
testClass<AbstractFirLightTreeBlackBoxCodegenTest>(
|
|
||||||
suiteTestClassName = "FirLightTreeSpecificBlackBoxCodegenTestGenerated"
|
|
||||||
) {
|
|
||||||
model("codegen/box")
|
|
||||||
model("codegen/boxWithStdLib")
|
|
||||||
}
|
|
||||||
|
|
||||||
testClass<AbstractFirPsiBlackBoxCodegenTest>(
|
|
||||||
suiteTestClassName = "FirPsiSpecificBlackBoxCodegenTestGenerated"
|
|
||||||
) {
|
|
||||||
model("codegen/box")
|
|
||||||
model("codegen/boxWithStdLib")
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
testGroup("compiler/fir/analysis-tests/tests-gen", "compiler/fir/analysis-tests/testData") {
|
testGroup("compiler/fir/analysis-tests/tests-gen", "compiler/fir/analysis-tests/testData") {
|
||||||
testClass<AbstractFirPsiDiagnosticTest> {
|
testClass<AbstractFirPsiDiagnosticTest> {
|
||||||
model("resolve", pattern = TestGeneratorUtil.KT_WITHOUT_DOTS_IN_NAME)
|
model("resolve", pattern = TestGeneratorUtil.KT_WITHOUT_DOTS_IN_NAME)
|
||||||
|
|||||||
+23
@@ -13564,6 +13564,11 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes
|
|||||||
runTest("compiler/testData/codegen/box/enum/javaEnumValues3.kt");
|
runTest("compiler/testData/codegen/box/enum/javaEnumValues3.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@TestMetadata("k54079.kt")
|
||||||
|
public void testK54079() throws Exception {
|
||||||
|
runTest("compiler/testData/codegen/box/enum/k54079.kt");
|
||||||
|
}
|
||||||
|
|
||||||
@TestMetadata("kt1119.kt")
|
@TestMetadata("kt1119.kt")
|
||||||
public void testKt1119() throws Exception {
|
public void testKt1119() throws Exception {
|
||||||
runTest("compiler/testData/codegen/box/enum/kt1119.kt");
|
runTest("compiler/testData/codegen/box/enum/kt1119.kt");
|
||||||
@@ -29959,6 +29964,19 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes
|
|||||||
runTest("compiler/testData/codegen/box/properties/unreachableUninitializedProperty.kt");
|
runTest("compiler/testData/codegen/box/properties/unreachableUninitializedProperty.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@TestMetadata("compiler/testData/codegen/box/properties/backingField")
|
||||||
|
@TestDataPath("$PROJECT_ROOT")
|
||||||
|
@RunWith(JUnit3RunnerWithInners.class)
|
||||||
|
public static class BackingField extends AbstractLightAnalysisModeTest {
|
||||||
|
private void runTest(String testDataFilePath) throws Exception {
|
||||||
|
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
|
||||||
|
}
|
||||||
|
|
||||||
|
public void testAllFilesPresentInBackingField() throws Exception {
|
||||||
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/properties/backingField"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@TestMetadata("compiler/testData/codegen/box/properties/const")
|
@TestMetadata("compiler/testData/codegen/box/properties/const")
|
||||||
@TestDataPath("$PROJECT_ROOT")
|
@TestDataPath("$PROJECT_ROOT")
|
||||||
@RunWith(JUnit3RunnerWithInners.class)
|
@RunWith(JUnit3RunnerWithInners.class)
|
||||||
@@ -38994,6 +39012,11 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes
|
|||||||
runTest("compiler/testData/codegen/box/syntheticExtensions/implicitReceiver.kt");
|
runTest("compiler/testData/codegen/box/syntheticExtensions/implicitReceiver.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@TestMetadata("kt56072.kt")
|
||||||
|
public void testKt56072() throws Exception {
|
||||||
|
runTest("compiler/testData/codegen/box/syntheticExtensions/kt56072.kt");
|
||||||
|
}
|
||||||
|
|
||||||
@TestMetadata("overrideKotlinPropertyByJavaMethod.kt")
|
@TestMetadata("overrideKotlinPropertyByJavaMethod.kt")
|
||||||
public void testOverrideKotlinPropertyByJavaMethod() throws Exception {
|
public void testOverrideKotlinPropertyByJavaMethod() throws Exception {
|
||||||
runTest("compiler/testData/codegen/box/syntheticExtensions/overrideKotlinPropertyByJavaMethod.kt");
|
runTest("compiler/testData/codegen/box/syntheticExtensions/overrideKotlinPropertyByJavaMethod.kt");
|
||||||
|
|||||||
+16
@@ -12689,6 +12689,12 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest {
|
|||||||
runTest("compiler/testData/codegen/box/enum/innerWithExistingClassObject.kt");
|
runTest("compiler/testData/codegen/box/enum/innerWithExistingClassObject.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("k54079.kt")
|
||||||
|
public void testK54079() throws Exception {
|
||||||
|
runTest("compiler/testData/codegen/box/enum/k54079.kt");
|
||||||
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@TestMetadata("kt1119.kt")
|
@TestMetadata("kt1119.kt")
|
||||||
public void testKt1119() throws Exception {
|
public void testKt1119() throws Exception {
|
||||||
@@ -25835,6 +25841,16 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest {
|
|||||||
runTest("compiler/testData/codegen/box/properties/unreachableUninitializedProperty.kt");
|
runTest("compiler/testData/codegen/box/properties/unreachableUninitializedProperty.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Nested
|
||||||
|
@TestMetadata("compiler/testData/codegen/box/properties/backingField")
|
||||||
|
@TestDataPath("$PROJECT_ROOT")
|
||||||
|
public class BackingField {
|
||||||
|
@Test
|
||||||
|
public void testAllFilesPresentInBackingField() throws Exception {
|
||||||
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/properties/backingField"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS, true);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@Nested
|
@Nested
|
||||||
@TestMetadata("compiler/testData/codegen/box/properties/const")
|
@TestMetadata("compiler/testData/codegen/box/properties/const")
|
||||||
@TestDataPath("$PROJECT_ROOT")
|
@TestDataPath("$PROJECT_ROOT")
|
||||||
|
|||||||
+16
@@ -12785,6 +12785,12 @@ public class FirJsCodegenBoxTestGenerated extends AbstractFirJsCodegenBoxTest {
|
|||||||
runTest("compiler/testData/codegen/box/enum/innerWithExistingClassObject.kt");
|
runTest("compiler/testData/codegen/box/enum/innerWithExistingClassObject.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("k54079.kt")
|
||||||
|
public void testK54079() throws Exception {
|
||||||
|
runTest("compiler/testData/codegen/box/enum/k54079.kt");
|
||||||
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@TestMetadata("kt1119.kt")
|
@TestMetadata("kt1119.kt")
|
||||||
public void testKt1119() throws Exception {
|
public void testKt1119() throws Exception {
|
||||||
@@ -25979,6 +25985,16 @@ public class FirJsCodegenBoxTestGenerated extends AbstractFirJsCodegenBoxTest {
|
|||||||
runTest("compiler/testData/codegen/box/properties/unreachableUninitializedProperty.kt");
|
runTest("compiler/testData/codegen/box/properties/unreachableUninitializedProperty.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Nested
|
||||||
|
@TestMetadata("compiler/testData/codegen/box/properties/backingField")
|
||||||
|
@TestDataPath("$PROJECT_ROOT")
|
||||||
|
public class BackingField {
|
||||||
|
@Test
|
||||||
|
public void testAllFilesPresentInBackingField() throws Exception {
|
||||||
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/properties/backingField"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@Nested
|
@Nested
|
||||||
@TestMetadata("compiler/testData/codegen/box/properties/const")
|
@TestMetadata("compiler/testData/codegen/box/properties/const")
|
||||||
@TestDataPath("$PROJECT_ROOT")
|
@TestDataPath("$PROJECT_ROOT")
|
||||||
|
|||||||
+16
@@ -12785,6 +12785,12 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest {
|
|||||||
runTest("compiler/testData/codegen/box/enum/innerWithExistingClassObject.kt");
|
runTest("compiler/testData/codegen/box/enum/innerWithExistingClassObject.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("k54079.kt")
|
||||||
|
public void testK54079() throws Exception {
|
||||||
|
runTest("compiler/testData/codegen/box/enum/k54079.kt");
|
||||||
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@TestMetadata("kt1119.kt")
|
@TestMetadata("kt1119.kt")
|
||||||
public void testKt1119() throws Exception {
|
public void testKt1119() throws Exception {
|
||||||
@@ -25979,6 +25985,16 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest {
|
|||||||
runTest("compiler/testData/codegen/box/properties/unreachableUninitializedProperty.kt");
|
runTest("compiler/testData/codegen/box/properties/unreachableUninitializedProperty.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Nested
|
||||||
|
@TestMetadata("compiler/testData/codegen/box/properties/backingField")
|
||||||
|
@TestDataPath("$PROJECT_ROOT")
|
||||||
|
public class BackingField {
|
||||||
|
@Test
|
||||||
|
public void testAllFilesPresentInBackingField() throws Exception {
|
||||||
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/properties/backingField"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@Nested
|
@Nested
|
||||||
@TestMetadata("compiler/testData/codegen/box/properties/const")
|
@TestMetadata("compiler/testData/codegen/box/properties/const")
|
||||||
@TestDataPath("$PROJECT_ROOT")
|
@TestDataPath("$PROJECT_ROOT")
|
||||||
|
|||||||
+16
@@ -12785,6 +12785,12 @@ public class IrJsES6CodegenBoxTestGenerated extends AbstractIrJsES6CodegenBoxTes
|
|||||||
runTest("compiler/testData/codegen/box/enum/innerWithExistingClassObject.kt");
|
runTest("compiler/testData/codegen/box/enum/innerWithExistingClassObject.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("k54079.kt")
|
||||||
|
public void testK54079() throws Exception {
|
||||||
|
runTest("compiler/testData/codegen/box/enum/k54079.kt");
|
||||||
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@TestMetadata("kt1119.kt")
|
@TestMetadata("kt1119.kt")
|
||||||
public void testKt1119() throws Exception {
|
public void testKt1119() throws Exception {
|
||||||
@@ -25979,6 +25985,16 @@ public class IrJsES6CodegenBoxTestGenerated extends AbstractIrJsES6CodegenBoxTes
|
|||||||
runTest("compiler/testData/codegen/box/properties/unreachableUninitializedProperty.kt");
|
runTest("compiler/testData/codegen/box/properties/unreachableUninitializedProperty.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Nested
|
||||||
|
@TestMetadata("compiler/testData/codegen/box/properties/backingField")
|
||||||
|
@TestDataPath("$PROJECT_ROOT")
|
||||||
|
public class BackingField {
|
||||||
|
@Test
|
||||||
|
public void testAllFilesPresentInBackingField() throws Exception {
|
||||||
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/properties/backingField"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@Nested
|
@Nested
|
||||||
@TestMetadata("compiler/testData/codegen/box/properties/const")
|
@TestMetadata("compiler/testData/codegen/box/properties/const")
|
||||||
@TestDataPath("$PROJECT_ROOT")
|
@TestDataPath("$PROJECT_ROOT")
|
||||||
|
|||||||
+20
@@ -14126,6 +14126,12 @@ public class FirNativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTe
|
|||||||
runTest("compiler/testData/codegen/box/enum/innerWithExistingClassObject.kt");
|
runTest("compiler/testData/codegen/box/enum/innerWithExistingClassObject.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("k54079.kt")
|
||||||
|
public void testK54079() throws Exception {
|
||||||
|
runTest("compiler/testData/codegen/box/enum/k54079.kt");
|
||||||
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@TestMetadata("kt1119.kt")
|
@TestMetadata("kt1119.kt")
|
||||||
public void testKt1119() throws Exception {
|
public void testKt1119() throws Exception {
|
||||||
@@ -29469,6 +29475,20 @@ public class FirNativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTe
|
|||||||
runTest("compiler/testData/codegen/box/properties/unreachableUninitializedProperty.kt");
|
runTest("compiler/testData/codegen/box/properties/unreachableUninitializedProperty.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Nested
|
||||||
|
@TestMetadata("compiler/testData/codegen/box/properties/backingField")
|
||||||
|
@TestDataPath("$PROJECT_ROOT")
|
||||||
|
@Tag("codegenK2")
|
||||||
|
@Tag("firCodegen")
|
||||||
|
@UseExtTestCaseGroupProvider()
|
||||||
|
@FirPipeline()
|
||||||
|
public class BackingField {
|
||||||
|
@Test
|
||||||
|
public void testAllFilesPresentInBackingField() throws Exception {
|
||||||
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/properties/backingField"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@Nested
|
@Nested
|
||||||
@TestMetadata("compiler/testData/codegen/box/properties/const")
|
@TestMetadata("compiler/testData/codegen/box/properties/const")
|
||||||
@TestDataPath("$PROJECT_ROOT")
|
@TestDataPath("$PROJECT_ROOT")
|
||||||
|
|||||||
+19
@@ -13963,6 +13963,12 @@ public class K1NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTes
|
|||||||
runTest("compiler/testData/codegen/box/enum/innerWithExistingClassObject.kt");
|
runTest("compiler/testData/codegen/box/enum/innerWithExistingClassObject.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("k54079.kt")
|
||||||
|
public void testK54079() throws Exception {
|
||||||
|
runTest("compiler/testData/codegen/box/enum/k54079.kt");
|
||||||
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@TestMetadata("kt1119.kt")
|
@TestMetadata("kt1119.kt")
|
||||||
public void testKt1119() throws Exception {
|
public void testKt1119() throws Exception {
|
||||||
@@ -29141,6 +29147,19 @@ public class K1NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTes
|
|||||||
runTest("compiler/testData/codegen/box/properties/unreachableUninitializedProperty.kt");
|
runTest("compiler/testData/codegen/box/properties/unreachableUninitializedProperty.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Nested
|
||||||
|
@TestMetadata("compiler/testData/codegen/box/properties/backingField")
|
||||||
|
@TestDataPath("$PROJECT_ROOT")
|
||||||
|
@Tag("codegen")
|
||||||
|
@Tag("k1Codegen")
|
||||||
|
@UseExtTestCaseGroupProvider()
|
||||||
|
public class BackingField {
|
||||||
|
@Test
|
||||||
|
public void testAllFilesPresentInBackingField() throws Exception {
|
||||||
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/properties/backingField"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@Nested
|
@Nested
|
||||||
@TestMetadata("compiler/testData/codegen/box/properties/const")
|
@TestMetadata("compiler/testData/codegen/box/properties/const")
|
||||||
@TestDataPath("$PROJECT_ROOT")
|
@TestDataPath("$PROJECT_ROOT")
|
||||||
|
|||||||
Generated
+18
@@ -11334,6 +11334,11 @@ public class IrCodegenBoxWasmTestGenerated extends AbstractIrCodegenBoxWasmTest
|
|||||||
runTest("compiler/testData/codegen/box/enum/innerWithExistingClassObject.kt");
|
runTest("compiler/testData/codegen/box/enum/innerWithExistingClassObject.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@TestMetadata("k54079.kt")
|
||||||
|
public void testK54079() throws Exception {
|
||||||
|
runTest("compiler/testData/codegen/box/enum/k54079.kt");
|
||||||
|
}
|
||||||
|
|
||||||
@TestMetadata("kt1119.kt")
|
@TestMetadata("kt1119.kt")
|
||||||
public void testKt1119() throws Exception {
|
public void testKt1119() throws Exception {
|
||||||
runTest("compiler/testData/codegen/box/enum/kt1119.kt");
|
runTest("compiler/testData/codegen/box/enum/kt1119.kt");
|
||||||
@@ -23087,6 +23092,19 @@ public class IrCodegenBoxWasmTestGenerated extends AbstractIrCodegenBoxWasmTest
|
|||||||
runTest("compiler/testData/codegen/box/properties/unreachableUninitializedProperty.kt");
|
runTest("compiler/testData/codegen/box/properties/unreachableUninitializedProperty.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@TestMetadata("compiler/testData/codegen/box/properties/backingField")
|
||||||
|
@TestDataPath("$PROJECT_ROOT")
|
||||||
|
@RunWith(JUnit3RunnerWithInners.class)
|
||||||
|
public static class BackingField extends AbstractIrCodegenBoxWasmTest {
|
||||||
|
private void runTest(String testDataFilePath) throws Exception {
|
||||||
|
KotlinTestUtils.runTest0(this::doTest, TargetBackend.WASM, testDataFilePath);
|
||||||
|
}
|
||||||
|
|
||||||
|
public void testAllFilesPresentInBackingField() throws Exception {
|
||||||
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/properties/backingField"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.WASM, true);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@TestMetadata("compiler/testData/codegen/box/properties/const")
|
@TestMetadata("compiler/testData/codegen/box/properties/const")
|
||||||
@TestDataPath("$PROJECT_ROOT")
|
@TestDataPath("$PROJECT_ROOT")
|
||||||
@RunWith(JUnit3RunnerWithInners.class)
|
@RunWith(JUnit3RunnerWithInners.class)
|
||||||
|
|||||||
Reference in New Issue
Block a user