Merge K2 box tests to main box tests

This commit is contained in:
Alexander Udalov
2023-03-23 12:28:07 +01:00
committed by Space Team
parent 14c2030595
commit d3be38476a
32 changed files with 584 additions and 402 deletions
@@ -1,15 +0,0 @@
class A {
val a: Number
private field = 1
val b: Number
internal field = a + 3
}
fun box(): String {
return if (A().b + 20 == 24) {
"OK"
} else {
"fail: A().b = " + A().b.toString()
}
}
@@ -1,8 +0,0 @@
class Base {
val x: CharSequence
internal field: String = "OK"
}
fun box(): String {
return Base().x
}
@@ -1,10 +0,0 @@
class Base {
val x: CharSequence
internal field: String = "OK"
val s: String get() = x
}
fun box(): String {
return Base().s
}
@@ -1,9 +0,0 @@
class Base {
val x: CharSequence
internal field: String = "OK"
}
val s: String get() = Base().x
fun box(): String {
return s
}
@@ -1,9 +0,0 @@
class Base {
val x: CharSequence
internal field: String = "OK"
}
val s: String = Base().x
fun box(): String {
return s
}
@@ -1,13 +0,0 @@
open class Base {
open val x: CharSequence = "BASE"
// field = "BASE"
}
class Ok : Base() {
override val x: CharSequence
internal field: String = "OK"
}
fun box(): String {
return Ok().x
}
@@ -1,59 +0,0 @@
interface I {
val number: Number
}
fun test1(): String? {
val it = object : I {
final override val number: Number
field = 10
val next get() = number + 1
}
return if (it.next != 11) {
"[1] ${it.number}, ${it.next}"
} else {
null
}
}
fun test2(): String? {
class Local : I {
final override val number: Number
internal field = 42
}
return if (Local().number + 3 != 45) {
"[2] " + Local().number.toString()
} else {
null
}
}
fun test3(): String? {
val it = object : I {
override val number: Number
field = "100"
get() {
return field.length
}
}
return if (it.number != 3) {
"[3] " + it.number.toString()
} else {
null
}
}
fun box(): String {
val problem = test1()
?: test2()
?: test3()
return if (problem != null) {
"fail: " + problem
} else {
"OK"
}
}
@@ -1,22 +0,0 @@
interface Storage {
val s: String
}
class ImmutableStorage(override val s: String) : Storage
class MutableStorage(override var s: String) : Storage {
fun asImmutable() = ImmutableStorage(s)
}
class My {
val storage: Storage
field = MutableStorage("OK")
get() = field.asImmutable()
}
fun box(): String {
val my = My()
if (my.storage is MutableStorage) {
return "MUTABLE"
}
return my.storage.s
}
@@ -1,40 +0,0 @@
fun createString() = "AAA" + "BBB"
class A {
var it: Int
field = 3.14
get() = (field + 10).toInt()
set(value) {
field = (value - 10).toDouble()
if (field < -3 || -1 < field) {
throw Exception("fail: value = $value, field = $field")
}
}
var that: Int
field = createString() + "!"
get() = field.length
set(value) {
field = value.toString()
if (field != "17") {
throw Exception("fail: value = $value, field = $field")
}
}
}
fun box(): String {
try {
val a = A()
val it: Int = A().it and 10
a.it = it
val that: Int = a.that
a.that = that + 10
} catch (e: Exception) {
return e.message ?: "fail"
}
return "OK"
}
@@ -1,16 +0,0 @@
var that: Int
lateinit field: String
get() = field.length
set(value) {
field = value.toString()
}
fun box(): String {
that = 1
return if (that == 1) {
"OK"
} else {
"fail: $that"
}
}
@@ -1,30 +0,0 @@
open class A {
open var it: Number
private field = 3
set(value) {
field = value.toInt()
}
fun test(): String {
// Note that `it` is open,
// so no smart type narrowing
// is possible, and we expect
// here a call to the possibly
// overridden getter
return if (it.toInt() + 1 == 11) {
"OK"
} else {
"fail: $it"
}
}
}
open class B : A() {
override var it: Number
get() = 10.12
set(value) {}
}
fun box(): String {
return B().test()
}
@@ -1,31 +0,0 @@
// FILE: SuperClass.java
public class SuperClass {
private String stringParam;
public SuperClass(String stringParam)
{
this.stringParam = stringParam;
}
public String getStringParam()
{
return stringParam;
}
}
// FILE: InheritedClass.java
public class InheritedClass extends SuperClass {
public InheritedClass(String stringParam) {
super(stringParam);
}
}
// FILE: test.kt
fun box(): String {
val superValue = (SuperClass::stringParam)(SuperClass("O"))
val inheritedValue = (InheritedClass("K")::stringParam)()
return superValue + inheritedValue
}
-1
View File
@@ -1 +0,0 @@
fun box() = "OK"
@@ -1,41 +0,0 @@
open class Arguments {
@GradleOption(
value = DefaultValue.BOOLEAN_FALSE_DEFAULT,
gradleInputType = GradleInputTypes.INPUT,
)
val useK2: Boolean by lazy { false }
}
class JvmArguments : Arguments() {
@GradleOption(
value = DefaultValue.BOOLEAN_FALSE_DEFAULT,
gradleInputType = GradleInputTypes.INPUT,
)
val specific: Boolean by lazy { true }
}
@Retention(AnnotationRetention.RUNTIME)
annotation class GradleOption(
val value: DefaultValue,
val gradleInputType: GradleInputTypes
)
enum class GradleInputTypes(
val typeAsString: String
) {
INPUT("org.gradle.api.tasks.Input"),
INTERNAL("org.gradle.api.tasks.Internal");
override fun toString(): String {
return typeAsString
}
}
enum class DefaultValue {
BOOLEAN_FALSE_DEFAULT,
BOOLEAN_TRUE_DEFAULT,
}
fun box(): String {
return "OK"
}
@@ -1,7 +0,0 @@
val items: List<String>
field = mutableListOf()
fun box(): String {
items.add("OK")
return items.last()
}
@@ -16809,6 +16809,12 @@ public class FirLightTreeBlackBoxCodegenTestGenerated extends AbstractFirLightTr
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
@TestMetadata("kt1119.kt")
public void testKt1119() throws Exception {
@@ -36519,6 +36525,88 @@ public class FirLightTreeBlackBoxCodegenTestGenerated extends AbstractFirLightTr
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
@TestMetadata("compiler/testData/codegen/box/properties/const")
@TestDataPath("$PROJECT_ROOT")
@@ -50453,6 +50541,12 @@ public class FirLightTreeBlackBoxCodegenTestGenerated extends AbstractFirLightTr
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
@TestMetadata("kt56154.kt")
public void testKt56154() throws Exception {
@@ -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");
}
}
}
}
}
@@ -16809,6 +16809,12 @@ public class FirPsiBlackBoxCodegenTestGenerated extends AbstractFirPsiBlackBoxCo
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
@TestMetadata("kt1119.kt")
public void testKt1119() throws Exception {
@@ -36519,6 +36525,88 @@ public class FirPsiBlackBoxCodegenTestGenerated extends AbstractFirPsiBlackBoxCo
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
@TestMetadata("compiler/testData/codegen/box/properties/const")
@TestDataPath("$PROJECT_ROOT")
@@ -50453,6 +50541,12 @@ public class FirPsiBlackBoxCodegenTestGenerated extends AbstractFirPsiBlackBoxCo
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
@TestMetadata("kt56154.kt")
public void testKt56154() throws Exception {
@@ -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");
}
}
}
}
}