[test] Move irText tests from fir2ir/testData to compiler/testData
Let's store them conveniently in one place!
This commit is contained in:
committed by
Space Team
parent
c1ea3e7b53
commit
ebafdd3af0
@@ -1,3 +0,0 @@
|
|||||||
FILE fqName:<root> fileName:/sample.kt
|
|
||||||
FUN name:sample visibility:public modality:FINAL <> () returnType:kotlin.Unit
|
|
||||||
BLOCK_BODY
|
|
||||||
@@ -1,2 +0,0 @@
|
|||||||
// FIR_IDENTICAL
|
|
||||||
fun sample() {}
|
|
||||||
@@ -1,2 +0,0 @@
|
|||||||
fun sample() {
|
|
||||||
}
|
|
||||||
@@ -1,3 +0,0 @@
|
|||||||
FILE fqName:<root> fileName:/sample.kt
|
|
||||||
FUN name:sample visibility:public modality:FINAL <> () returnType:kotlin.Unit
|
|
||||||
BLOCK_BODY
|
|
||||||
-77
@@ -1,77 +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.ir;
|
|
||||||
|
|
||||||
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")
|
|
||||||
@TestMetadata("compiler/fir/fir2ir/testData/ir/irText")
|
|
||||||
@TestDataPath("$PROJECT_ROOT")
|
|
||||||
public class FirLightTreeJvmIrSpecificTextTestGenerated extends AbstractFirLightTreeJvmIrTextTest {
|
|
||||||
@Test
|
|
||||||
public void testAllFilesPresentInIrText() throws Exception {
|
|
||||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/fir/fir2ir/testData/ir/irText"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Test
|
|
||||||
@TestMetadata("sample.kt")
|
|
||||||
public void testSample() throws Exception {
|
|
||||||
runTest("compiler/fir/fir2ir/testData/ir/irText/sample.kt");
|
|
||||||
}
|
|
||||||
|
|
||||||
@Nested
|
|
||||||
@TestMetadata("compiler/fir/fir2ir/testData/ir/irText/properties")
|
|
||||||
@TestDataPath("$PROJECT_ROOT")
|
|
||||||
public class Properties {
|
|
||||||
@Test
|
|
||||||
public void testAllFilesPresentInProperties() throws Exception {
|
|
||||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/fir/fir2ir/testData/ir/irText/properties"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Nested
|
|
||||||
@TestMetadata("compiler/fir/fir2ir/testData/ir/irText/properties/backingField")
|
|
||||||
@TestDataPath("$PROJECT_ROOT")
|
|
||||||
public class BackingField {
|
|
||||||
@Test
|
|
||||||
public void testAllFilesPresentInBackingField() throws Exception {
|
|
||||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/fir/fir2ir/testData/ir/irText/properties/backingField"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Test
|
|
||||||
@TestMetadata("backingFieldVisibility.kt")
|
|
||||||
public void testBackingFieldVisibility() throws Exception {
|
|
||||||
runTest("compiler/fir/fir2ir/testData/ir/irText/properties/backingField/backingFieldVisibility.kt");
|
|
||||||
}
|
|
||||||
|
|
||||||
@Test
|
|
||||||
@TestMetadata("explicitBackingFieldType.kt")
|
|
||||||
public void testExplicitBackingFieldType() throws Exception {
|
|
||||||
runTest("compiler/fir/fir2ir/testData/ir/irText/properties/backingField/explicitBackingFieldType.kt");
|
|
||||||
}
|
|
||||||
|
|
||||||
@Test
|
|
||||||
@TestMetadata("independentBackingFieldType.kt")
|
|
||||||
public void testIndependentBackingFieldType() throws Exception {
|
|
||||||
runTest("compiler/fir/fir2ir/testData/ir/irText/properties/backingField/independentBackingFieldType.kt");
|
|
||||||
}
|
|
||||||
|
|
||||||
@Test
|
|
||||||
@TestMetadata("propertyTypeNarrowing.kt")
|
|
||||||
public void testPropertyTypeNarrowing() throws Exception {
|
|
||||||
runTest("compiler/fir/fir2ir/testData/ir/irText/properties/backingField/propertyTypeNarrowing.kt");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
+44
@@ -2905,6 +2905,50 @@ public class FirLightTreeJvmIrTextTestGenerated extends AbstractFirLightTreeJvmI
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Nested
|
||||||
|
@TestMetadata("compiler/testData/ir/irText/properties")
|
||||||
|
@TestDataPath("$PROJECT_ROOT")
|
||||||
|
public class Properties {
|
||||||
|
@Test
|
||||||
|
public void testAllFilesPresentInProperties() throws Exception {
|
||||||
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/ir/irText/properties"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Nested
|
||||||
|
@TestMetadata("compiler/testData/ir/irText/properties/backingField")
|
||||||
|
@TestDataPath("$PROJECT_ROOT")
|
||||||
|
public class BackingField {
|
||||||
|
@Test
|
||||||
|
public void testAllFilesPresentInBackingField() throws Exception {
|
||||||
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/ir/irText/properties/backingField"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("backingFieldVisibility.kt")
|
||||||
|
public void testBackingFieldVisibility() throws Exception {
|
||||||
|
runTest("compiler/testData/ir/irText/properties/backingField/backingFieldVisibility.kt");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("explicitBackingFieldType.kt")
|
||||||
|
public void testExplicitBackingFieldType() throws Exception {
|
||||||
|
runTest("compiler/testData/ir/irText/properties/backingField/explicitBackingFieldType.kt");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("independentBackingFieldType.kt")
|
||||||
|
public void testIndependentBackingFieldType() throws Exception {
|
||||||
|
runTest("compiler/testData/ir/irText/properties/backingField/independentBackingFieldType.kt");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("propertyTypeNarrowing.kt")
|
||||||
|
public void testPropertyTypeNarrowing() throws Exception {
|
||||||
|
runTest("compiler/testData/ir/irText/properties/backingField/propertyTypeNarrowing.kt");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@Nested
|
@Nested
|
||||||
@TestMetadata("compiler/testData/ir/irText/regressions")
|
@TestMetadata("compiler/testData/ir/irText/regressions")
|
||||||
@TestDataPath("$PROJECT_ROOT")
|
@TestDataPath("$PROJECT_ROOT")
|
||||||
|
|||||||
-77
@@ -1,77 +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.ir;
|
|
||||||
|
|
||||||
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")
|
|
||||||
@TestMetadata("compiler/fir/fir2ir/testData/ir/irText")
|
|
||||||
@TestDataPath("$PROJECT_ROOT")
|
|
||||||
public class FirPsiJvmIrSpecificTextTestGenerated extends AbstractFirPsiJvmIrTextTest {
|
|
||||||
@Test
|
|
||||||
public void testAllFilesPresentInIrText() throws Exception {
|
|
||||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/fir/fir2ir/testData/ir/irText"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Test
|
|
||||||
@TestMetadata("sample.kt")
|
|
||||||
public void testSample() throws Exception {
|
|
||||||
runTest("compiler/fir/fir2ir/testData/ir/irText/sample.kt");
|
|
||||||
}
|
|
||||||
|
|
||||||
@Nested
|
|
||||||
@TestMetadata("compiler/fir/fir2ir/testData/ir/irText/properties")
|
|
||||||
@TestDataPath("$PROJECT_ROOT")
|
|
||||||
public class Properties {
|
|
||||||
@Test
|
|
||||||
public void testAllFilesPresentInProperties() throws Exception {
|
|
||||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/fir/fir2ir/testData/ir/irText/properties"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Nested
|
|
||||||
@TestMetadata("compiler/fir/fir2ir/testData/ir/irText/properties/backingField")
|
|
||||||
@TestDataPath("$PROJECT_ROOT")
|
|
||||||
public class BackingField {
|
|
||||||
@Test
|
|
||||||
public void testAllFilesPresentInBackingField() throws Exception {
|
|
||||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/fir/fir2ir/testData/ir/irText/properties/backingField"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Test
|
|
||||||
@TestMetadata("backingFieldVisibility.kt")
|
|
||||||
public void testBackingFieldVisibility() throws Exception {
|
|
||||||
runTest("compiler/fir/fir2ir/testData/ir/irText/properties/backingField/backingFieldVisibility.kt");
|
|
||||||
}
|
|
||||||
|
|
||||||
@Test
|
|
||||||
@TestMetadata("explicitBackingFieldType.kt")
|
|
||||||
public void testExplicitBackingFieldType() throws Exception {
|
|
||||||
runTest("compiler/fir/fir2ir/testData/ir/irText/properties/backingField/explicitBackingFieldType.kt");
|
|
||||||
}
|
|
||||||
|
|
||||||
@Test
|
|
||||||
@TestMetadata("independentBackingFieldType.kt")
|
|
||||||
public void testIndependentBackingFieldType() throws Exception {
|
|
||||||
runTest("compiler/fir/fir2ir/testData/ir/irText/properties/backingField/independentBackingFieldType.kt");
|
|
||||||
}
|
|
||||||
|
|
||||||
@Test
|
|
||||||
@TestMetadata("propertyTypeNarrowing.kt")
|
|
||||||
public void testPropertyTypeNarrowing() throws Exception {
|
|
||||||
runTest("compiler/fir/fir2ir/testData/ir/irText/properties/backingField/propertyTypeNarrowing.kt");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
compiler/fir/fir2ir/tests-gen/org/jetbrains/kotlin/test/runners/ir/FirPsiJvmIrTextTestGenerated.java
Generated
+44
@@ -2905,6 +2905,50 @@ public class FirPsiJvmIrTextTestGenerated extends AbstractFirPsiJvmIrTextTest {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Nested
|
||||||
|
@TestMetadata("compiler/testData/ir/irText/properties")
|
||||||
|
@TestDataPath("$PROJECT_ROOT")
|
||||||
|
public class Properties {
|
||||||
|
@Test
|
||||||
|
public void testAllFilesPresentInProperties() throws Exception {
|
||||||
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/ir/irText/properties"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Nested
|
||||||
|
@TestMetadata("compiler/testData/ir/irText/properties/backingField")
|
||||||
|
@TestDataPath("$PROJECT_ROOT")
|
||||||
|
public class BackingField {
|
||||||
|
@Test
|
||||||
|
public void testAllFilesPresentInBackingField() throws Exception {
|
||||||
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/ir/irText/properties/backingField"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("backingFieldVisibility.kt")
|
||||||
|
public void testBackingFieldVisibility() throws Exception {
|
||||||
|
runTest("compiler/testData/ir/irText/properties/backingField/backingFieldVisibility.kt");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("explicitBackingFieldType.kt")
|
||||||
|
public void testExplicitBackingFieldType() throws Exception {
|
||||||
|
runTest("compiler/testData/ir/irText/properties/backingField/explicitBackingFieldType.kt");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("independentBackingFieldType.kt")
|
||||||
|
public void testIndependentBackingFieldType() throws Exception {
|
||||||
|
runTest("compiler/testData/ir/irText/properties/backingField/independentBackingFieldType.kt");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("propertyTypeNarrowing.kt")
|
||||||
|
public void testPropertyTypeNarrowing() throws Exception {
|
||||||
|
runTest("compiler/testData/ir/irText/properties/backingField/propertyTypeNarrowing.kt");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@Nested
|
@Nested
|
||||||
@TestMetadata("compiler/testData/ir/irText/regressions")
|
@TestMetadata("compiler/testData/ir/irText/regressions")
|
||||||
@TestDataPath("$PROJECT_ROOT")
|
@TestDataPath("$PROJECT_ROOT")
|
||||||
|
|||||||
+44
@@ -2905,6 +2905,50 @@ public class ClassicJvmIrTextTestGenerated extends AbstractClassicJvmIrTextTest
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Nested
|
||||||
|
@TestMetadata("compiler/testData/ir/irText/properties")
|
||||||
|
@TestDataPath("$PROJECT_ROOT")
|
||||||
|
public class Properties {
|
||||||
|
@Test
|
||||||
|
public void testAllFilesPresentInProperties() throws Exception {
|
||||||
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/ir/irText/properties"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Nested
|
||||||
|
@TestMetadata("compiler/testData/ir/irText/properties/backingField")
|
||||||
|
@TestDataPath("$PROJECT_ROOT")
|
||||||
|
public class BackingField {
|
||||||
|
@Test
|
||||||
|
public void testAllFilesPresentInBackingField() throws Exception {
|
||||||
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/ir/irText/properties/backingField"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("backingFieldVisibility.kt")
|
||||||
|
public void testBackingFieldVisibility() throws Exception {
|
||||||
|
runTest("compiler/testData/ir/irText/properties/backingField/backingFieldVisibility.kt");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("explicitBackingFieldType.kt")
|
||||||
|
public void testExplicitBackingFieldType() throws Exception {
|
||||||
|
runTest("compiler/testData/ir/irText/properties/backingField/explicitBackingFieldType.kt");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("independentBackingFieldType.kt")
|
||||||
|
public void testIndependentBackingFieldType() throws Exception {
|
||||||
|
runTest("compiler/testData/ir/irText/properties/backingField/independentBackingFieldType.kt");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("propertyTypeNarrowing.kt")
|
||||||
|
public void testPropertyTypeNarrowing() throws Exception {
|
||||||
|
runTest("compiler/testData/ir/irText/properties/backingField/propertyTypeNarrowing.kt");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@Nested
|
@Nested
|
||||||
@TestMetadata("compiler/testData/ir/irText/regressions")
|
@TestMetadata("compiler/testData/ir/irText/regressions")
|
||||||
@TestDataPath("$PROJECT_ROOT")
|
@TestDataPath("$PROJECT_ROOT")
|
||||||
|
|||||||
+1
-1
@@ -137,7 +137,7 @@ open class AbstractFirIrTextTestBase(
|
|||||||
::BlackBoxCodegenSuppressor
|
::BlackBoxCodegenSuppressor
|
||||||
)
|
)
|
||||||
|
|
||||||
forTestsMatching("compiler/fir/fir2ir/testData/ir/irText/properties/backingField/*") {
|
forTestsMatching("compiler/testData/ir/irText/properties/backingField/*") {
|
||||||
defaultDirectives {
|
defaultDirectives {
|
||||||
LanguageSettingsDirectives.LANGUAGE with "+ExplicitBackingFields"
|
LanguageSettingsDirectives.LANGUAGE with "+ExplicitBackingFields"
|
||||||
}
|
}
|
||||||
|
|||||||
-12
@@ -354,18 +354,6 @@ fun generateJUnit5CompilerTests(args: Array<String>) {
|
|||||||
model("codegen/boxWithStdLib")
|
model("codegen/boxWithStdLib")
|
||||||
}
|
}
|
||||||
|
|
||||||
testClass<AbstractFirLightTreeJvmIrTextTest>(
|
|
||||||
suiteTestClassName = "FirLightTreeJvmIrSpecificTextTestGenerated"
|
|
||||||
) {
|
|
||||||
model("ir/irText")
|
|
||||||
}
|
|
||||||
|
|
||||||
testClass<AbstractFirPsiJvmIrTextTest>(
|
|
||||||
suiteTestClassName = "FirPsiJvmIrSpecificTextTestGenerated"
|
|
||||||
) {
|
|
||||||
model("ir/irText")
|
|
||||||
}
|
|
||||||
|
|
||||||
testClass<AbstractFirLightTreeBytecodeListingTest>(
|
testClass<AbstractFirLightTreeBytecodeListingTest>(
|
||||||
suiteTestClassName = "FirLightTreeSpecificBytecodeListingTestGenerated"
|
suiteTestClassName = "FirLightTreeSpecificBytecodeListingTestGenerated"
|
||||||
) {
|
) {
|
||||||
|
|||||||
+46
@@ -2104,6 +2104,52 @@ public class KlibIrTextTestCaseGenerated extends AbstractKlibIrTextTestCase {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@TestMetadata("compiler/testData/ir/irText/properties")
|
||||||
|
@TestDataPath("$PROJECT_ROOT")
|
||||||
|
@RunWith(JUnit3RunnerWithInners.class)
|
||||||
|
public static class Properties extends AbstractKlibTextTestCase {
|
||||||
|
private void runTest(String testDataFilePath) throws Exception {
|
||||||
|
KotlinTestUtils.runTest(this::doTest, TargetBackend.JS_IR, testDataFilePath);
|
||||||
|
}
|
||||||
|
|
||||||
|
public void testAllFilesPresentInProperties() throws Exception {
|
||||||
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/ir/irText/properties"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true);
|
||||||
|
}
|
||||||
|
|
||||||
|
@TestMetadata("compiler/testData/ir/irText/properties/backingField")
|
||||||
|
@TestDataPath("$PROJECT_ROOT")
|
||||||
|
@RunWith(JUnit3RunnerWithInners.class)
|
||||||
|
public static class BackingField extends AbstractKlibTextTestCase {
|
||||||
|
private void runTest(String testDataFilePath) throws Exception {
|
||||||
|
KotlinTestUtils.runTest(this::doTest, TargetBackend.JS_IR, testDataFilePath);
|
||||||
|
}
|
||||||
|
|
||||||
|
public void testAllFilesPresentInBackingField() throws Exception {
|
||||||
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/ir/irText/properties/backingField"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true);
|
||||||
|
}
|
||||||
|
|
||||||
|
@TestMetadata("backingFieldVisibility.kt")
|
||||||
|
public void testBackingFieldVisibility() throws Exception {
|
||||||
|
runTest("compiler/testData/ir/irText/properties/backingField/backingFieldVisibility.kt");
|
||||||
|
}
|
||||||
|
|
||||||
|
@TestMetadata("explicitBackingFieldType.kt")
|
||||||
|
public void testExplicitBackingFieldType() throws Exception {
|
||||||
|
runTest("compiler/testData/ir/irText/properties/backingField/explicitBackingFieldType.kt");
|
||||||
|
}
|
||||||
|
|
||||||
|
@TestMetadata("independentBackingFieldType.kt")
|
||||||
|
public void testIndependentBackingFieldType() throws Exception {
|
||||||
|
runTest("compiler/testData/ir/irText/properties/backingField/independentBackingFieldType.kt");
|
||||||
|
}
|
||||||
|
|
||||||
|
@TestMetadata("propertyTypeNarrowing.kt")
|
||||||
|
public void testPropertyTypeNarrowing() throws Exception {
|
||||||
|
runTest("compiler/testData/ir/irText/properties/backingField/propertyTypeNarrowing.kt");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@TestMetadata("compiler/testData/ir/irText/regressions")
|
@TestMetadata("compiler/testData/ir/irText/regressions")
|
||||||
@TestDataPath("$PROJECT_ROOT")
|
@TestDataPath("$PROJECT_ROOT")
|
||||||
@RunWith(JUnit3RunnerWithInners.class)
|
@RunWith(JUnit3RunnerWithInners.class)
|
||||||
|
|||||||
Reference in New Issue
Block a user