[Test] Convert IGNORE: NATIVE directives in box tests from A to C
^KT-59057 Merge-request: KT-MR-10747 Merged-by: Vladimir Sukharev <Vladimir.Sukharev@jetbrains.com>
This commit is contained in:
committed by
Space Team
parent
2da0e622c0
commit
3d60ed8874
+18
-16
@@ -1969,6 +1969,12 @@ public class FirLightTreeBlackBoxCodegenTestGenerated extends AbstractFirLightTr
|
||||
runTest("compiler/testData/codegen/box/boxingOptimization/checkcastAndInstanceOf.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("checkcastAndInstanceOf2.kt")
|
||||
public void testCheckcastAndInstanceOf2() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/boxingOptimization/checkcastAndInstanceOf2.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("explicitEqualsOnDouble.kt")
|
||||
public void testExplicitEqualsOnDouble() throws Exception {
|
||||
@@ -5060,6 +5066,18 @@ public class FirLightTreeBlackBoxCodegenTestGenerated extends AbstractFirLightTr
|
||||
runTest("compiler/testData/codegen/box/casts/functions/isFunKSmall.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("isFunKSmallJVM.kt")
|
||||
public void testIsFunKSmallJVM() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/casts/functions/isFunKSmallJVM.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("isFunKSmallNonJS.kt")
|
||||
public void testIsFunKSmallNonJS() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/casts/functions/isFunKSmallNonJS.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("javaTypeIsFunK.kt")
|
||||
public void testJavaTypeIsFunK() throws Exception {
|
||||
@@ -12754,22 +12772,6 @@ public class FirLightTreeBlackBoxCodegenTestGenerated extends AbstractFirLightTr
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/coroutines/localFunctions"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("compiler/testData/codegen/box/coroutines/localFunctions/anonymous")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
public class Anonymous {
|
||||
@Test
|
||||
public void testAllFilesPresentInAnonymous() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/coroutines/localFunctions/anonymous"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("simple.kt")
|
||||
public void testSimple() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/coroutines/localFunctions/anonymous/simple.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("compiler/testData/codegen/box/coroutines/localFunctions/named")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
|
||||
+18
-16
@@ -1969,6 +1969,12 @@ public class FirPsiBlackBoxCodegenTestGenerated extends AbstractFirPsiBlackBoxCo
|
||||
runTest("compiler/testData/codegen/box/boxingOptimization/checkcastAndInstanceOf.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("checkcastAndInstanceOf2.kt")
|
||||
public void testCheckcastAndInstanceOf2() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/boxingOptimization/checkcastAndInstanceOf2.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("explicitEqualsOnDouble.kt")
|
||||
public void testExplicitEqualsOnDouble() throws Exception {
|
||||
@@ -5060,6 +5066,18 @@ public class FirPsiBlackBoxCodegenTestGenerated extends AbstractFirPsiBlackBoxCo
|
||||
runTest("compiler/testData/codegen/box/casts/functions/isFunKSmall.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("isFunKSmallJVM.kt")
|
||||
public void testIsFunKSmallJVM() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/casts/functions/isFunKSmallJVM.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("isFunKSmallNonJS.kt")
|
||||
public void testIsFunKSmallNonJS() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/casts/functions/isFunKSmallNonJS.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("javaTypeIsFunK.kt")
|
||||
public void testJavaTypeIsFunK() throws Exception {
|
||||
@@ -12754,22 +12772,6 @@ public class FirPsiBlackBoxCodegenTestGenerated extends AbstractFirPsiBlackBoxCo
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/coroutines/localFunctions"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("compiler/testData/codegen/box/coroutines/localFunctions/anonymous")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
public class Anonymous {
|
||||
@Test
|
||||
public void testAllFilesPresentInAnonymous() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/coroutines/localFunctions/anonymous"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("simple.kt")
|
||||
public void testSimple() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/coroutines/localFunctions/anonymous/simple.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("compiler/testData/codegen/box/coroutines/localFunctions/named")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
|
||||
+2
-6
@@ -1,9 +1,5 @@
|
||||
// IGNORE_BACKEND: WASM
|
||||
// WASM_MUTE_REASON: IGNORED_IN_JS
|
||||
// IGNORE_BACKEND: JS_IR
|
||||
// IGNORE_BACKEND: JS_IR_ES6
|
||||
// TODO: muted automatically, investigate should it be ran for JS or not
|
||||
// IGNORE_BACKEND: JS, NATIVE
|
||||
// TARGET_BACKEND: JVM
|
||||
// TARGET_BACKEND: JVM_IR
|
||||
|
||||
// WITH_REFLECT
|
||||
|
||||
|
||||
@@ -1,9 +1,5 @@
|
||||
// IGNORE_BACKEND: WASM
|
||||
// WASM_MUTE_REASON: IGNORED_IN_JS
|
||||
// IGNORE_BACKEND: JS_IR
|
||||
// IGNORE_BACKEND: JS_IR_ES6
|
||||
// TODO: muted automatically, investigate should it be ran for JS or not
|
||||
// IGNORE_BACKEND: JS, NATIVE
|
||||
// TARGET_BACKEND: JVM
|
||||
// TARGET_BACKEND: JVM_IR
|
||||
|
||||
fun foo(x: Cloneable) = x
|
||||
|
||||
|
||||
+2
-6
@@ -1,9 +1,5 @@
|
||||
// IGNORE_BACKEND: WASM
|
||||
// WASM_MUTE_REASON: IGNORED_IN_JS
|
||||
// IGNORE_BACKEND: JS_IR
|
||||
// IGNORE_BACKEND: JS_IR_ES6
|
||||
// TODO: muted automatically, investigate should it be ran for JS or not
|
||||
// IGNORE_BACKEND: JS, NATIVE
|
||||
// TARGET_BACKEND: JVM
|
||||
// TARGET_BACKEND: JVM_IR
|
||||
|
||||
// WITH_STDLIB
|
||||
|
||||
|
||||
@@ -1,9 +1,5 @@
|
||||
// IGNORE_BACKEND: WASM
|
||||
// WASM_MUTE_REASON: IGNORED_IN_JS
|
||||
// IGNORE_BACKEND: JS_IR
|
||||
// IGNORE_BACKEND: JS_IR_ES6
|
||||
// TODO: muted automatically, investigate should it be ran for JS or not
|
||||
// IGNORE_BACKEND: JS, NATIVE
|
||||
// TARGET_BACKEND: JVM
|
||||
// TARGET_BACKEND: JVM_IR
|
||||
|
||||
// WITH_STDLIB
|
||||
|
||||
|
||||
@@ -1,9 +1,5 @@
|
||||
// IGNORE_BACKEND: WASM
|
||||
// WASM_MUTE_REASON: IGNORED_IN_JS
|
||||
// IGNORE_BACKEND: JS_IR
|
||||
// IGNORE_BACKEND: JS_IR_ES6
|
||||
// TODO: muted automatically, investigate should it be ran for JS or not
|
||||
// IGNORE_BACKEND: JS, NATIVE
|
||||
// TARGET_BACKEND: JVM
|
||||
// TARGET_BACKEND: JVM_IR
|
||||
|
||||
// WITH_STDLIB
|
||||
|
||||
|
||||
@@ -0,0 +1,23 @@
|
||||
// WITH_STDLIB
|
||||
|
||||
import kotlin.test.assertEquals
|
||||
|
||||
inline fun <R, T> foo(x : R, y : R, block : (R) -> T) : T {
|
||||
val a = x is Number
|
||||
val b = x is Any
|
||||
|
||||
val b1 = x as Any
|
||||
|
||||
if (a && b) {
|
||||
return block(x)
|
||||
} else {
|
||||
return block(y)
|
||||
}
|
||||
}
|
||||
|
||||
fun box() : String {
|
||||
assertEquals(1, foo(1, 2) { x -> x as Int })
|
||||
assertEquals("def", foo("abc", "def") { x -> x as String })
|
||||
|
||||
return "OK"
|
||||
}
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
// IGNORE_BACKEND: WASM
|
||||
// WASM_MUTE_REASON: STDLIB_COLLECTION_INHERITANCE
|
||||
// KJS_WITH_FULL_RUNTIME
|
||||
// IGNORE_BACKEND: NATIVE
|
||||
// DONT_TARGET_EXACT_BACKEND: NATIVE
|
||||
|
||||
open class BaseStringList: ArrayList<String>() {
|
||||
}
|
||||
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
// IGNORE_BACKEND: WASM
|
||||
// WASM_MUTE_REASON: STDLIB_COLLECTION_INHERITANCE
|
||||
// KJS_WITH_FULL_RUNTIME
|
||||
// IGNORE_BACKEND: NATIVE
|
||||
// DONT_TARGET_EXACT_BACKEND: NATIVE
|
||||
class A : HashSet<Long>()
|
||||
|
||||
fun box(): String {
|
||||
|
||||
+1
-2
@@ -1,8 +1,7 @@
|
||||
// IGNORE_BACKEND: WASM
|
||||
// WASM_MUTE_REASON: STDLIB_COLLECTION_INHERITANCE
|
||||
// KJS_WITH_FULL_RUNTIME
|
||||
// KT-6042 java.lang.UnsupportedOperationException with ArrayList
|
||||
// IGNORE_BACKEND: NATIVE
|
||||
// DONT_TARGET_EXACT_BACKEND: NATIVE
|
||||
class A : ArrayList<String>()
|
||||
|
||||
fun box(): String {
|
||||
|
||||
Vendored
+1
-1
@@ -1,7 +1,7 @@
|
||||
// WITH_STDLIB
|
||||
// IGNORE_BACKEND: WASM
|
||||
// WASM_MUTE_REASON: STDLIB_COLLECTION_INHERITANCE
|
||||
// IGNORE_BACKEND: NATIVE
|
||||
// DONT_TARGET_EXACT_BACKEND: NATIVE
|
||||
|
||||
open class A : ArrayList<String>()
|
||||
|
||||
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
// IGNORE_BACKEND: WASM
|
||||
// WASM_MUTE_REASON: STDLIB_COLLECTION_INHERITANCE
|
||||
// KJS_WITH_FULL_RUNTIME
|
||||
// IGNORE_BACKEND: NATIVE
|
||||
// DONT_TARGET_EXACT_BACKEND: NATIVE
|
||||
class A : HashMap<String, Double>()
|
||||
|
||||
fun box(): String {
|
||||
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
// IGNORE_BACKEND: WASM
|
||||
// WASM_MUTE_REASON: STDLIB_COLLECTION_INHERITANCE
|
||||
// KJS_WITH_FULL_RUNTIME
|
||||
// IGNORE_BACKEND: NATIVE
|
||||
// DONT_TARGET_EXACT_BACKEND: NATIVE
|
||||
class A : HashSet<Long>()
|
||||
|
||||
fun box(): String {
|
||||
|
||||
+2
-6
@@ -1,9 +1,5 @@
|
||||
// IGNORE_BACKEND: WASM
|
||||
// WASM_MUTE_REASON: IGNORED_IN_JS
|
||||
// IGNORE_BACKEND: JS_IR
|
||||
// IGNORE_BACKEND: JS_IR_ES6
|
||||
// TODO: investigate should it be ran for JS or not
|
||||
// IGNORE_BACKEND: JS, NATIVE
|
||||
// TARGET_BACKEND: JVM
|
||||
// TARGET_BACKEND: JVM_IR
|
||||
|
||||
// WITH_REFLECT
|
||||
|
||||
|
||||
Vendored
+3
-6
@@ -1,8 +1,5 @@
|
||||
// IGNORE_BACKEND: WASM
|
||||
// WASM_MUTE_REASON: IGNORED_IN_JS
|
||||
// IGNORE_BACKEND: JS_IR
|
||||
// IGNORE_BACKEND: JS_IR_ES6
|
||||
// IGNORE_BACKEND: JS, NATIVE
|
||||
// TARGET_BACKEND: JVM
|
||||
// TARGET_BACKEND: JVM_IR
|
||||
|
||||
// WITH_STDLIB
|
||||
// WITH_REFLECT
|
||||
@@ -25,7 +22,7 @@ inline fun <reified T, reified R> check(f: (T) -> R, g: (T) -> R, tType: String,
|
||||
fun box(): String {
|
||||
check("", 1, ::foo, "String", "Int")
|
||||
check("", 1, ::fooReturnInt, "String", "Int")
|
||||
check("", "", ::fooReturnInt, "String", "Any")
|
||||
check("", "", ::fooReturnInt, "String", "Any") // KT-59348 Non-JVM backends have not "Any", but "Comparable" as common parent for Int and String
|
||||
|
||||
check(Int::toString, ::foo, "Int", "String")
|
||||
|
||||
|
||||
Vendored
+30
@@ -0,0 +1,30 @@
|
||||
// DONT_TARGET_EXACT_BACKEND: JVM
|
||||
// DONT_TARGET_EXACT_BACKEND: JVM_IR
|
||||
|
||||
// WITH_STDLIB
|
||||
// WITH_REFLECT
|
||||
|
||||
import kotlin.test.assertEquals
|
||||
|
||||
fun <T, R> foo(x: T): R = TODO()
|
||||
fun <T> fooReturnInt(x: T): Int = 1
|
||||
|
||||
inline fun <reified T, reified R> check(x: T, y: R, f: (T) -> R, tType: String, rType: String) {
|
||||
assertEquals(tType, T::class.simpleName)
|
||||
assertEquals(rType, R::class.simpleName)
|
||||
}
|
||||
|
||||
inline fun <reified T, reified R> check(f: (T) -> R, g: (T) -> R, tType: String, rType: String) {
|
||||
assertEquals(tType, T::class.simpleName)
|
||||
assertEquals(rType, R::class.simpleName)
|
||||
}
|
||||
|
||||
fun box(): String {
|
||||
check("", 1, ::foo, "String", "Int")
|
||||
check("", 1, ::fooReturnInt, "String", "Int")
|
||||
check("", "", ::fooReturnInt, "String", "Comparable") // KT-59348 JVM backends have not "Comparable", but "Any" as common parent for Int and String
|
||||
|
||||
check(Int::toString, ::foo, "Int", "String")
|
||||
|
||||
return "OK"
|
||||
}
|
||||
Vendored
+2
-6
@@ -1,9 +1,5 @@
|
||||
// IGNORE_BACKEND: WASM
|
||||
// WASM_MUTE_REASON: IGNORED_IN_JS
|
||||
// IGNORE_BACKEND: JS_IR
|
||||
// IGNORE_BACKEND: JS_IR_ES6
|
||||
// TODO: muted automatically, investigate should it be ran for JS or not
|
||||
// IGNORE_BACKEND: JS, NATIVE
|
||||
// TARGET_BACKEND: JVM
|
||||
// TARGET_BACKEND: JVM_IR
|
||||
|
||||
class Test {
|
||||
private var iv = 1
|
||||
|
||||
+2
-6
@@ -1,9 +1,5 @@
|
||||
// IGNORE_BACKEND: WASM
|
||||
// WASM_MUTE_REASON: IGNORED_IN_JS
|
||||
// IGNORE_BACKEND: JS_IR
|
||||
// IGNORE_BACKEND: JS_IR_ES6
|
||||
// TODO: muted automatically, investigate should it be ran for JS or not
|
||||
// IGNORE_BACKEND: JS, NATIVE
|
||||
// TARGET_BACKEND: JVM
|
||||
// TARGET_BACKEND: JVM_IR
|
||||
|
||||
fun foo(x: Any) = x as Runnable
|
||||
|
||||
|
||||
+2
-6
@@ -1,9 +1,5 @@
|
||||
// IGNORE_BACKEND: WASM
|
||||
// WASM_MUTE_REASON: IGNORED_IN_JS
|
||||
// IGNORE_BACKEND: JS_IR
|
||||
// IGNORE_BACKEND: JS_IR_ES6
|
||||
// TODO: muted automatically, investigate should it be ran for JS or not
|
||||
// IGNORE_BACKEND: JS, NATIVE
|
||||
// TARGET_BACKEND: JVM
|
||||
// TARGET_BACKEND: JVM_IR
|
||||
|
||||
fun foo(x: Any) = x as? Runnable
|
||||
|
||||
|
||||
@@ -1,10 +1,3 @@
|
||||
// IGNORE_BACKEND: WASM
|
||||
// WASM_MUTE_REASON: IGNORED_IN_JS
|
||||
// IGNORE_BACKEND: JS_IR
|
||||
// IGNORE_BACKEND: JS_IR_ES6
|
||||
// TODO: muted automatically, investigate should it be ran for JS or not
|
||||
// IGNORE_BACKEND: JS, NATIVE
|
||||
|
||||
// WITH_REFLECT
|
||||
|
||||
fun fn0() {}
|
||||
@@ -15,10 +8,6 @@ val lambda1 = { x: Any -> } as (Any) -> Unit
|
||||
|
||||
fun Any.extFun() {}
|
||||
|
||||
var Any.extProp: String
|
||||
get() = "extProp"
|
||||
set(x: String) {}
|
||||
|
||||
class A {
|
||||
fun foo() {}
|
||||
}
|
||||
@@ -28,8 +17,6 @@ fun box(): String {
|
||||
val f1 = ::fn1 as Any
|
||||
|
||||
val ef = Any::extFun as Any
|
||||
val epg = Any::extProp.getter
|
||||
val eps = Any::extProp.setter
|
||||
|
||||
val afoo = A::foo
|
||||
|
||||
@@ -38,27 +25,19 @@ fun box(): String {
|
||||
|
||||
val localFun0 = ::local0 as Any
|
||||
val localFun1 = ::local1 as Any
|
||||
|
||||
assert(f0 is Function0<*>) { "Failed: f0 is Function0<*>" }
|
||||
assert(f1 is Function1<*, *>) { "Failed: f1 is Function1<*, *>" }
|
||||
assert(f0 !is Function1<*, *>) { "Failed: f0 !is Function1<*, *>" }
|
||||
assert(f1 !is Function0<*>) { "Failed: f1 !is Function0<*>" }
|
||||
|
||||
assert(lambda0 is Function0<*>) { "Failed: lambda0 is Function0<*>" }
|
||||
assert(lambda1 is Function1<*, *>) { "Failed: lambda1 is Function1<*, *>" }
|
||||
assert(lambda0 !is Function1<*, *>) { "Failed: lambda0 !is Function1<*, *>" }
|
||||
assert(lambda1 !is Function0<*>) { "Failed: lambda1 !is Function0<*>" }
|
||||
if (f0 !is Function0<*>) return "Failed: f0 is Function0<*>"
|
||||
if (f1 !is Function1<*, *>) return "Failed: f1 is Function1<*, *>"
|
||||
|
||||
assert(localFun0 is Function0<*>) { "Failed: localFun0 is Function0<*>" }
|
||||
assert(localFun1 is Function1<*, *>) { "Failed: localFun1 is Function1<*, *>" }
|
||||
assert(localFun0 !is Function1<*, *>) { "Failed: localFun0 !is Function1<*, *>" }
|
||||
assert(localFun1 !is Function0<*>) { "Failed: localFun1 !is Function0<*>" }
|
||||
if (lambda0 !is Function0<*>) return "Failed: lambda0 is Function0<*>"
|
||||
if (lambda1 !is Function1<*, *>) return "Failed: lambda1 is Function1<*, *>"
|
||||
|
||||
assert(ef is Function1<*, *>) { "Failed: ef is Function1<*, *>" }
|
||||
assert(epg is Function1<*, *>) { "Failed: epg is Function1<*, *>"}
|
||||
assert(eps is Function2<*, *, *>) { "Failed: eps is Function2<*, *, *>"}
|
||||
if (localFun0 !is Function0<*>) return "Failed: localFun0 is Function0<*>"
|
||||
if (localFun1 !is Function1<*, *>) return "Failed: localFun1 is Function1<*, *>"
|
||||
|
||||
assert(afoo is Function1<*, *>) { "afoo is Function1<*, *>" }
|
||||
if (ef !is Function1<*, *>) return "Failed: ef is Function1<*, *>"
|
||||
|
||||
if (afoo !is Function1<*, *>) return "afoo is Function1<*, *>"
|
||||
|
||||
return "OK"
|
||||
}
|
||||
|
||||
@@ -0,0 +1,46 @@
|
||||
// TARGET_BACKEND: JS
|
||||
// TARGET_BACKEND: JS_IR
|
||||
// TARGET_BACKEND: JS_IR_ES6
|
||||
// WITH_REFLECT
|
||||
|
||||
fun fn0() {}
|
||||
fun fn1(x: Any) {}
|
||||
|
||||
val lambda0 = {} as () -> Unit
|
||||
val lambda1 = { x: Any -> } as (Any) -> Unit
|
||||
|
||||
fun Any.extFun() {}
|
||||
|
||||
var Any.extProp: String
|
||||
get() = "extProp"
|
||||
set(x: String) {}
|
||||
|
||||
class A {
|
||||
fun foo() {}
|
||||
}
|
||||
|
||||
fun box(): String {
|
||||
val f0 = ::fn0 as Any
|
||||
val f1 = ::fn1 as Any
|
||||
|
||||
val ef = Any::extFun as Any
|
||||
|
||||
val afoo = A::foo
|
||||
|
||||
fun local0() {}
|
||||
fun local1(x: Any) {}
|
||||
|
||||
val localFun0 = ::local0 as Any
|
||||
val localFun1 = ::local1 as Any
|
||||
|
||||
if (f0 !is Function1<*, *>) return "Failed: f0 is Function1<*, *>"
|
||||
if (f1 !is Function0<*>) return "Failed: f1 is Function0<*>"
|
||||
|
||||
if (lambda0 !is Function1<*, *>) return "Failed: lambda0 is Function1<*, *>"
|
||||
if (lambda1 !is Function0<*>) return "Failed: lambda1 is Function0<*>"
|
||||
|
||||
if (localFun0 !is Function1<*, *>) return "Failed: localFun0 is Function1<*, *>"
|
||||
if (localFun1 !is Function0<*>) return "Failed: localFun1 is Function0<*>"
|
||||
|
||||
return "OK"
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
// TARGET_BACKEND: JVM
|
||||
// TARGET_BACKEND: JVM_IR
|
||||
|
||||
// WITH_REFLECT
|
||||
|
||||
var Any.extProp: String
|
||||
get() = "extProp"
|
||||
set(x: String) {}
|
||||
|
||||
fun box(): String {
|
||||
val epg = Any::extProp.getter
|
||||
val eps = Any::extProp.setter
|
||||
|
||||
if (epg !is Function1<*, *>) return "Failed: epg is Function1<*, *>"
|
||||
if (eps !is Function2<*, *, *>) return "Failed: eps is Function2<*, *, *>"
|
||||
|
||||
return "OK"
|
||||
}
|
||||
@@ -0,0 +1,46 @@
|
||||
// DONT_TARGET_EXACT_BACKEND: JS
|
||||
// DONT_TARGET_EXACT_BACKEND: JS_IR
|
||||
// DONT_TARGET_EXACT_BACKEND: JS_IR_ES6
|
||||
// WITH_REFLECT
|
||||
|
||||
fun fn0() {}
|
||||
fun fn1(x: Any) {}
|
||||
|
||||
val lambda0 = {} as () -> Unit
|
||||
val lambda1 = { x: Any -> } as (Any) -> Unit
|
||||
|
||||
fun Any.extFun() {}
|
||||
|
||||
var Any.extProp: String
|
||||
get() = "extProp"
|
||||
set(x: String) {}
|
||||
|
||||
class A {
|
||||
fun foo() {}
|
||||
}
|
||||
|
||||
fun box(): String {
|
||||
val f0 = ::fn0 as Any
|
||||
val f1 = ::fn1 as Any
|
||||
|
||||
val ef = Any::extFun as Any
|
||||
|
||||
val afoo = A::foo
|
||||
|
||||
fun local0() {}
|
||||
fun local1(x: Any) {}
|
||||
|
||||
val localFun0 = ::local0 as Any
|
||||
val localFun1 = ::local1 as Any
|
||||
|
||||
if (f0 is Function1<*, *>) return "Failed: f0 !is Function1<*, *>"
|
||||
if (f1 is Function0<*>) return "Failed: f1 !is Function0<*>"
|
||||
|
||||
if (lambda0 is Function1<*, *>) return "Failed: lambda0 !is Function1<*, *>"
|
||||
if (lambda1 is Function0<*>) "Failed: lambda1 !is Function0<*>"
|
||||
|
||||
if (localFun0 is Function1<*, *>) return "Failed: localFun0 !is Function1<*, *>"
|
||||
if (localFun1 is Function0<*>) return "Failed: localFun1 !is Function0<*>"
|
||||
|
||||
return "OK"
|
||||
}
|
||||
+2
-6
@@ -1,9 +1,5 @@
|
||||
// IGNORE_BACKEND: WASM
|
||||
// WASM_MUTE_REASON: IGNORED_IN_JS
|
||||
// IGNORE_BACKEND: JS_IR
|
||||
// IGNORE_BACKEND: JS_IR_ES6
|
||||
// TODO: muted automatically, investigate should it be ran for JS or not
|
||||
// IGNORE_BACKEND: JS, NATIVE
|
||||
// TARGET_BACKEND: JVM
|
||||
// TARGET_BACKEND: JVM_IR
|
||||
|
||||
fun foo(x: Any) = x is Runnable
|
||||
|
||||
|
||||
+2
-6
@@ -1,9 +1,5 @@
|
||||
// IGNORE_BACKEND: WASM
|
||||
// WASM_MUTE_REASON: IGNORED_IN_JS
|
||||
// IGNORE_BACKEND: JS_IR
|
||||
// IGNORE_BACKEND: JS_IR_ES6
|
||||
// TODO: muted automatically, investigate should it be ran for JS or not
|
||||
// IGNORE_BACKEND: JS, NATIVE
|
||||
// TARGET_BACKEND: JVM
|
||||
// TARGET_BACKEND: JVM_IR
|
||||
|
||||
fun foo(x: Any) = x !is Runnable
|
||||
|
||||
|
||||
@@ -1,8 +1,3 @@
|
||||
// IGNORE_BACKEND: JS_IR
|
||||
// IGNORE_BACKEND: JS_IR_ES6
|
||||
// TODO: muted automatically, investigate should it be ran for JS or not
|
||||
// IGNORE_BACKEND: JS, NATIVE, WASM
|
||||
|
||||
fun box(): String {
|
||||
var x = 42
|
||||
|
||||
@@ -11,8 +6,8 @@ fun box(): String {
|
||||
if (x != 43) return "Fail 2: $x"
|
||||
|
||||
val k2 = { x *= 2; x }()::class
|
||||
// Note that k2 is the class of the wrapper type java.lang.Integer
|
||||
if (k2 != Integer::class) return "Fail 3: $k2"
|
||||
// Note that k2 is the class of the wrapper type Int
|
||||
if (k2 != Int::class) return "Fail 3: $k2"
|
||||
if (x != 86) return "Fail 4: $x"
|
||||
|
||||
return "OK"
|
||||
|
||||
@@ -1,7 +1,5 @@
|
||||
// IGNORE_BACKEND: JS_IR
|
||||
// IGNORE_BACKEND: JS_IR_ES6
|
||||
// TODO: muted automatically, investigate should it be ran for JS or not
|
||||
// IGNORE_BACKEND: JS, NATIVE, WASM
|
||||
// TARGET_BACKEND: JVM
|
||||
// TARGET_BACKEND: JVM_IR
|
||||
|
||||
// WITH_STDLIB
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
// IGNORE_BACKEND: WASM
|
||||
// WASM_MUTE_REASON: IGNORED_IN_JS
|
||||
// WASM_MUTE_REASON: Wrong box result 'fail2: global = AD'; Expected "OK"
|
||||
var global = "A"
|
||||
|
||||
class C {
|
||||
|
||||
+2
-5
@@ -1,9 +1,6 @@
|
||||
// IGNORE_BACKEND: WASM
|
||||
// WASM_MUTE_REASON: IGNORED_IN_JS
|
||||
// IGNORE_BACKEND: JS_IR
|
||||
// IGNORE_BACKEND: JS_IR_ES6
|
||||
// TARGET_BACKEND: JVM
|
||||
// TARGET_BACKEND: JVM_IR
|
||||
// Enable for JS when it supports Java class library.
|
||||
// IGNORE_BACKEND: JS, NATIVE
|
||||
|
||||
class TestJava(r : Runnable) : Runnable by r {}
|
||||
class TestRunnable() : Runnable {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
// IGNORE_BACKEND: WASM
|
||||
// WASM_MUTE_REASON: STDLIB_COLLECTION_INHERITANCE
|
||||
// KJS_WITH_FULL_RUNTIME
|
||||
// IGNORE_BACKEND: NATIVE
|
||||
// DONT_TARGET_EXACT_BACKEND: NATIVE
|
||||
|
||||
interface A : Set<String>
|
||||
|
||||
|
||||
+2
-6
@@ -1,10 +1,6 @@
|
||||
// IGNORE_BACKEND: WASM
|
||||
// WASM_MUTE_REASON: IGNORED_IN_JS
|
||||
// IGNORE_BACKEND: JS_IR
|
||||
// IGNORE_BACKEND: JS_IR_ES6
|
||||
// Won't ever work with JS backend.
|
||||
// TARGET_BACKEND: JVM
|
||||
// TARGET_BACKEND: JVM_IR
|
||||
// TODO: Consider rewriting this test without using threads, since the issue is not about threads at all.
|
||||
// IGNORE_BACKEND: JS, NATIVE
|
||||
|
||||
object RefreshQueue {
|
||||
val any = Any()
|
||||
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
// IGNORE_BACKEND: WASM
|
||||
// IGNORE_BACKEND: NATIVE
|
||||
// DONT_TARGET_EXACT_BACKEND: NATIVE
|
||||
// WASM_MUTE_REASON: STDLIB_COLLECTION_INHERITANCE
|
||||
// WITH_STDLIB
|
||||
|
||||
|
||||
+3
-5
@@ -1,8 +1,6 @@
|
||||
// IGNORE_BACKEND: WASM
|
||||
// WASM_MUTE_REASON: FAILS_IN_JS_IR
|
||||
// IGNORE_BACKEND: JS, JS_IR, NATIVE
|
||||
// IGNORE_BACKEND: JS_IR_ES6
|
||||
// IGNORE_BACKEND_K2: JVM_IR, NATIVE
|
||||
// TARGET_BACKEND: JVM
|
||||
// TARGET_BACKEND: JVM_IR
|
||||
// IGNORE_BACKEND_K2: JVM_IR
|
||||
// FIR status: value: 0 should have type Long
|
||||
// WITH_STDLIB
|
||||
|
||||
|
||||
@@ -1,28 +0,0 @@
|
||||
// IGNORE_BACKEND: JVM_IR, JS_IR
|
||||
// FIR status: not supported in JVM
|
||||
// IGNORE_BACKEND: JS_IR_ES6
|
||||
// IGNORE_BACKEND: JVM, JS, NATIVE
|
||||
// IGNORE_BACKEND: WASM
|
||||
// WASM_MUTE_REASON: IGNORED_IN_JS
|
||||
// WITH_STDLIB
|
||||
// WITH_COROUTINES
|
||||
import helpers.*
|
||||
import kotlin.coroutines.*
|
||||
import kotlin.coroutines.intrinsics.*
|
||||
|
||||
suspend fun callLocal(): String {
|
||||
val local = suspend fun() = "OK"
|
||||
return local()
|
||||
}
|
||||
|
||||
fun builder(c: suspend () -> Unit) {
|
||||
c.startCoroutine(EmptyContinuation)
|
||||
}
|
||||
|
||||
fun box(): String {
|
||||
var res = "FAIL"
|
||||
builder {
|
||||
res = callLocal()
|
||||
}
|
||||
return res
|
||||
}
|
||||
+18
-16
@@ -1813,6 +1813,12 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest {
|
||||
runTest("compiler/testData/codegen/box/boxingOptimization/checkcastAndInstanceOf.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("checkcastAndInstanceOf2.kt")
|
||||
public void testCheckcastAndInstanceOf2() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/boxingOptimization/checkcastAndInstanceOf2.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("explicitEqualsOnDouble.kt")
|
||||
public void testExplicitEqualsOnDouble() throws Exception {
|
||||
@@ -4856,6 +4862,18 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest {
|
||||
runTest("compiler/testData/codegen/box/casts/functions/isFunKSmall.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("isFunKSmallJVM.kt")
|
||||
public void testIsFunKSmallJVM() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/casts/functions/isFunKSmallJVM.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("isFunKSmallNonJS.kt")
|
||||
public void testIsFunKSmallNonJS() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/casts/functions/isFunKSmallNonJS.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("javaTypeIsFunK.kt")
|
||||
public void testJavaTypeIsFunK() throws Exception {
|
||||
@@ -12484,22 +12502,6 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/coroutines/localFunctions"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("compiler/testData/codegen/box/coroutines/localFunctions/anonymous")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
public class Anonymous {
|
||||
@Test
|
||||
public void testAllFilesPresentInAnonymous() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/coroutines/localFunctions/anonymous"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("simple.kt")
|
||||
public void testSimple() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/coroutines/localFunctions/anonymous/simple.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("compiler/testData/codegen/box/coroutines/localFunctions/named")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
|
||||
+18
-16
@@ -1969,6 +1969,12 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes
|
||||
runTest("compiler/testData/codegen/box/boxingOptimization/checkcastAndInstanceOf.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("checkcastAndInstanceOf2.kt")
|
||||
public void testCheckcastAndInstanceOf2() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/boxingOptimization/checkcastAndInstanceOf2.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("explicitEqualsOnDouble.kt")
|
||||
public void testExplicitEqualsOnDouble() throws Exception {
|
||||
@@ -5060,6 +5066,18 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes
|
||||
runTest("compiler/testData/codegen/box/casts/functions/isFunKSmall.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("isFunKSmallJVM.kt")
|
||||
public void testIsFunKSmallJVM() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/casts/functions/isFunKSmallJVM.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("isFunKSmallNonJS.kt")
|
||||
public void testIsFunKSmallNonJS() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/casts/functions/isFunKSmallNonJS.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("javaTypeIsFunK.kt")
|
||||
public void testJavaTypeIsFunK() throws Exception {
|
||||
@@ -12754,22 +12772,6 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/coroutines/localFunctions"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("compiler/testData/codegen/box/coroutines/localFunctions/anonymous")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
public class Anonymous {
|
||||
@Test
|
||||
public void testAllFilesPresentInAnonymous() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/coroutines/localFunctions/anonymous"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("simple.kt")
|
||||
public void testSimple() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/coroutines/localFunctions/anonymous/simple.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("compiler/testData/codegen/box/coroutines/localFunctions/named")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
|
||||
+18
-16
@@ -1969,6 +1969,12 @@ public class IrBlackBoxCodegenWithIrInlinerTestGenerated extends AbstractIrBlack
|
||||
runTest("compiler/testData/codegen/box/boxingOptimization/checkcastAndInstanceOf.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("checkcastAndInstanceOf2.kt")
|
||||
public void testCheckcastAndInstanceOf2() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/boxingOptimization/checkcastAndInstanceOf2.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("explicitEqualsOnDouble.kt")
|
||||
public void testExplicitEqualsOnDouble() throws Exception {
|
||||
@@ -5060,6 +5066,18 @@ public class IrBlackBoxCodegenWithIrInlinerTestGenerated extends AbstractIrBlack
|
||||
runTest("compiler/testData/codegen/box/casts/functions/isFunKSmall.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("isFunKSmallJVM.kt")
|
||||
public void testIsFunKSmallJVM() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/casts/functions/isFunKSmallJVM.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("isFunKSmallNonJS.kt")
|
||||
public void testIsFunKSmallNonJS() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/casts/functions/isFunKSmallNonJS.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("javaTypeIsFunK.kt")
|
||||
public void testJavaTypeIsFunK() throws Exception {
|
||||
@@ -12754,22 +12772,6 @@ public class IrBlackBoxCodegenWithIrInlinerTestGenerated extends AbstractIrBlack
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/coroutines/localFunctions"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("compiler/testData/codegen/box/coroutines/localFunctions/anonymous")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
public class Anonymous {
|
||||
@Test
|
||||
public void testAllFilesPresentInAnonymous() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/coroutines/localFunctions/anonymous"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("simple.kt")
|
||||
public void testSimple() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/coroutines/localFunctions/anonymous/simple.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("compiler/testData/codegen/box/coroutines/localFunctions/named")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
|
||||
+15
-18
@@ -1604,6 +1604,11 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes
|
||||
runTest("compiler/testData/codegen/box/boxingOptimization/checkcastAndInstanceOf.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("checkcastAndInstanceOf2.kt")
|
||||
public void testCheckcastAndInstanceOf2() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/boxingOptimization/checkcastAndInstanceOf2.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("explicitEqualsOnDouble.kt")
|
||||
public void testExplicitEqualsOnDouble() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/boxingOptimization/explicitEqualsOnDouble.kt");
|
||||
@@ -4233,6 +4238,16 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes
|
||||
runTest("compiler/testData/codegen/box/casts/functions/isFunKSmall.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("isFunKSmallJVM.kt")
|
||||
public void testIsFunKSmallJVM() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/casts/functions/isFunKSmallJVM.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("isFunKSmallNonJS.kt")
|
||||
public void testIsFunKSmallNonJS() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/casts/functions/isFunKSmallNonJS.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("javaTypeIsFunK.kt")
|
||||
public void testJavaTypeIsFunK() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/casts/functions/javaTypeIsFunK.kt");
|
||||
@@ -10036,24 +10051,6 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/coroutines/localFunctions"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/codegen/box/coroutines/localFunctions/anonymous")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class Anonymous extends AbstractLightAnalysisModeTest {
|
||||
@TestMetadata("simple.kt")
|
||||
public void ignoreSimple() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/coroutines/localFunctions/anonymous/simple.kt");
|
||||
}
|
||||
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInAnonymous() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/coroutines/localFunctions/anonymous"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/codegen/box/coroutines/localFunctions/named")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
|
||||
+12
-106
@@ -53,12 +53,6 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest {
|
||||
runTest("compiler/testData/codegen/box/annotations/nestedClassesInAnnotations.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("parameters.kt")
|
||||
public void testParameters() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/annotations/parameters.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("resolveWithLowPriorityAnnotation.kt")
|
||||
public void testResolveWithLowPriorityAnnotation() throws Exception {
|
||||
@@ -291,24 +285,6 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest {
|
||||
runTest("compiler/testData/codegen/box/arrays/arrayPlusAssign.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("arraysAreCloneable.kt")
|
||||
public void testArraysAreCloneable() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/arrays/arraysAreCloneable.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("cloneArray.kt")
|
||||
public void testCloneArray() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/arrays/cloneArray.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("clonePrimitiveArrays.kt")
|
||||
public void testClonePrimitiveArrays() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/arrays/clonePrimitiveArrays.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("collectionAssignGetMultiIndex.kt")
|
||||
public void testCollectionAssignGetMultiIndex() throws Exception {
|
||||
@@ -1118,9 +1094,9 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest {
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("checkcastAndInstanceOf.kt")
|
||||
public void testCheckcastAndInstanceOf() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/boxingOptimization/checkcastAndInstanceOf.kt");
|
||||
@TestMetadata("checkcastAndInstanceOf2.kt")
|
||||
public void testCheckcastAndInstanceOf2() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/boxingOptimization/checkcastAndInstanceOf2.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@@ -2500,12 +2476,6 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest {
|
||||
public void testReceiverInEquals() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/callableReference/bound/equals/receiverInEquals.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("reflectionReference.kt")
|
||||
public void testReflectionReference() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/callableReference/bound/equals/reflectionReference.kt");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2779,9 +2749,9 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest {
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("genericCallableReferenceArguments.kt")
|
||||
public void testGenericCallableReferenceArguments() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/callableReference/function/genericCallableReferenceArguments.kt");
|
||||
@TestMetadata("genericCallableReferenceArgumentsNonJVM.kt")
|
||||
public void testGenericCallableReferenceArgumentsNonJVM() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/callableReference/function/genericCallableReferenceArgumentsNonJVM.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@@ -3218,12 +3188,6 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest {
|
||||
runTest("compiler/testData/codegen/box/callableReference/property/kt15447.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt6870_privatePropertyReference.kt")
|
||||
public void testKt6870_privatePropertyReference() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/callableReference/property/kt6870_privatePropertyReference.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("listOfStringsMapLength.kt")
|
||||
public void testListOfStringsMapLength() throws Exception {
|
||||
@@ -3329,24 +3293,12 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/casts"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS, true);
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("as.kt")
|
||||
public void testAs() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/casts/as.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("asForConstants.kt")
|
||||
public void testAsForConstants() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/casts/asForConstants.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("asSafe.kt")
|
||||
public void testAsSafe() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/casts/asSafe.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("asSafeFail.kt")
|
||||
public void testAsSafeFail() throws Exception {
|
||||
@@ -3425,12 +3377,6 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest {
|
||||
runTest("compiler/testData/codegen/box/casts/intersectionTypeWithoutGenericsAsReceiver.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("is.kt")
|
||||
public void testIs() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/casts/is.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("isNullablePrimitive.kt")
|
||||
public void testIsNullablePrimitive() throws Exception {
|
||||
@@ -3485,12 +3431,6 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest {
|
||||
runTest("compiler/testData/codegen/box/casts/lambdaToUnitCast.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("notIs.kt")
|
||||
public void testNotIs() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/casts/notIs.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("nullableSafeCastToTypeParameterWithInterfaceUpperBound.kt")
|
||||
public void testNullableSafeCastToTypeParameterWithInterfaceUpperBound() throws Exception {
|
||||
@@ -3554,6 +3494,12 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest {
|
||||
runTest("compiler/testData/codegen/box/casts/functions/isFunKSmall.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("isFunKSmallJS.kt")
|
||||
public void testIsFunKSmallJS() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/casts/functions/isFunKSmallJS.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("reifiedAsFunKBig.kt")
|
||||
public void testReifiedAsFunKBig() throws Exception {
|
||||
@@ -3825,12 +3771,6 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest {
|
||||
public void testAllFilesPresentInJava() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/classLiteral/java"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS, true);
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt11943.kt")
|
||||
public void testKt11943() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/classLiteral/java/kt11943.kt");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3957,12 +3897,6 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest {
|
||||
runTest("compiler/testData/codegen/box/classes/delegationGenericLongArg.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("delegationJava.kt")
|
||||
public void testDelegationJava() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/classes/delegationJava.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("delegationMethodsWithArgs.kt")
|
||||
public void testDelegationMethodsWithArgs() throws Exception {
|
||||
@@ -4053,12 +3987,6 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest {
|
||||
runTest("compiler/testData/codegen/box/classes/kt1018.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt1120.kt")
|
||||
public void testKt1120() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/classes/kt1120.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt1157.kt")
|
||||
public void testKt1157() throws Exception {
|
||||
@@ -5429,12 +5357,6 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest {
|
||||
runTest("compiler/testData/codegen/box/constants/long.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("numberLiteralCoercionToInferredType.kt")
|
||||
public void testNumberLiteralCoercionToInferredType() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/constants/numberLiteralCoercionToInferredType.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("privateConst.kt")
|
||||
public void testPrivateConst() throws Exception {
|
||||
@@ -9298,22 +9220,6 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/coroutines/localFunctions"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS, true);
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("compiler/testData/codegen/box/coroutines/localFunctions/anonymous")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
public class Anonymous {
|
||||
@Test
|
||||
public void testAllFilesPresentInAnonymous() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/coroutines/localFunctions/anonymous"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS, true);
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("simple.kt")
|
||||
public void testSimple() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/coroutines/localFunctions/anonymous/simple.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("compiler/testData/codegen/box/coroutines/localFunctions/named")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
|
||||
Generated
-18
@@ -61,24 +61,6 @@ public class JsLegacyPrimitiveArraysBoxTestGenerated extends AbstractJsLegacyPri
|
||||
runTest("compiler/testData/codegen/box/arrays/arrayPlusAssign.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("arraysAreCloneable.kt")
|
||||
public void testArraysAreCloneable() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/arrays/arraysAreCloneable.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("cloneArray.kt")
|
||||
public void testCloneArray() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/arrays/cloneArray.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("clonePrimitiveArrays.kt")
|
||||
public void testClonePrimitiveArrays() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/arrays/clonePrimitiveArrays.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("collectionAssignGetMultiIndex.kt")
|
||||
public void testCollectionAssignGetMultiIndex() throws Exception {
|
||||
|
||||
+12
-106
@@ -53,12 +53,6 @@ public class FirJsCodegenBoxTestGenerated extends AbstractFirJsCodegenBoxTest {
|
||||
runTest("compiler/testData/codegen/box/annotations/nestedClassesInAnnotations.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("parameters.kt")
|
||||
public void testParameters() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/annotations/parameters.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("resolveWithLowPriorityAnnotation.kt")
|
||||
public void testResolveWithLowPriorityAnnotation() throws Exception {
|
||||
@@ -345,24 +339,6 @@ public class FirJsCodegenBoxTestGenerated extends AbstractFirJsCodegenBoxTest {
|
||||
runTest("compiler/testData/codegen/box/arrays/arrayPlusAssign.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("arraysAreCloneable.kt")
|
||||
public void testArraysAreCloneable() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/arrays/arraysAreCloneable.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("cloneArray.kt")
|
||||
public void testCloneArray() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/arrays/cloneArray.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("clonePrimitiveArrays.kt")
|
||||
public void testClonePrimitiveArrays() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/arrays/clonePrimitiveArrays.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("collectionAssignGetMultiIndex.kt")
|
||||
public void testCollectionAssignGetMultiIndex() throws Exception {
|
||||
@@ -1172,9 +1148,9 @@ public class FirJsCodegenBoxTestGenerated extends AbstractFirJsCodegenBoxTest {
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("checkcastAndInstanceOf.kt")
|
||||
public void testCheckcastAndInstanceOf() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/boxingOptimization/checkcastAndInstanceOf.kt");
|
||||
@TestMetadata("checkcastAndInstanceOf2.kt")
|
||||
public void testCheckcastAndInstanceOf2() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/boxingOptimization/checkcastAndInstanceOf2.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@@ -2560,12 +2536,6 @@ public class FirJsCodegenBoxTestGenerated extends AbstractFirJsCodegenBoxTest {
|
||||
public void testReceiverInEquals() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/callableReference/bound/equals/receiverInEquals.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("reflectionReference.kt")
|
||||
public void testReflectionReference() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/callableReference/bound/equals/reflectionReference.kt");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2839,9 +2809,9 @@ public class FirJsCodegenBoxTestGenerated extends AbstractFirJsCodegenBoxTest {
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("genericCallableReferenceArguments.kt")
|
||||
public void testGenericCallableReferenceArguments() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/callableReference/function/genericCallableReferenceArguments.kt");
|
||||
@TestMetadata("genericCallableReferenceArgumentsNonJVM.kt")
|
||||
public void testGenericCallableReferenceArgumentsNonJVM() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/callableReference/function/genericCallableReferenceArgumentsNonJVM.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@@ -3278,12 +3248,6 @@ public class FirJsCodegenBoxTestGenerated extends AbstractFirJsCodegenBoxTest {
|
||||
runTest("compiler/testData/codegen/box/callableReference/property/kt15447.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt6870_privatePropertyReference.kt")
|
||||
public void testKt6870_privatePropertyReference() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/callableReference/property/kt6870_privatePropertyReference.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("listOfStringsMapLength.kt")
|
||||
public void testListOfStringsMapLength() throws Exception {
|
||||
@@ -3389,24 +3353,12 @@ public class FirJsCodegenBoxTestGenerated extends AbstractFirJsCodegenBoxTest {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/casts"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true);
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("as.kt")
|
||||
public void testAs() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/casts/as.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("asForConstants.kt")
|
||||
public void testAsForConstants() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/casts/asForConstants.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("asSafe.kt")
|
||||
public void testAsSafe() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/casts/asSafe.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("asSafeFail.kt")
|
||||
public void testAsSafeFail() throws Exception {
|
||||
@@ -3485,12 +3437,6 @@ public class FirJsCodegenBoxTestGenerated extends AbstractFirJsCodegenBoxTest {
|
||||
runTest("compiler/testData/codegen/box/casts/intersectionTypeWithoutGenericsAsReceiver.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("is.kt")
|
||||
public void testIs() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/casts/is.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("isNullablePrimitive.kt")
|
||||
public void testIsNullablePrimitive() throws Exception {
|
||||
@@ -3551,12 +3497,6 @@ public class FirJsCodegenBoxTestGenerated extends AbstractFirJsCodegenBoxTest {
|
||||
runTest("compiler/testData/codegen/box/casts/lambdaToUnitCast.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("notIs.kt")
|
||||
public void testNotIs() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/casts/notIs.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("nullableSafeCastToTypeParameterWithInterfaceUpperBound.kt")
|
||||
public void testNullableSafeCastToTypeParameterWithInterfaceUpperBound() throws Exception {
|
||||
@@ -3620,6 +3560,12 @@ public class FirJsCodegenBoxTestGenerated extends AbstractFirJsCodegenBoxTest {
|
||||
runTest("compiler/testData/codegen/box/casts/functions/isFunKSmall.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("isFunKSmallJS.kt")
|
||||
public void testIsFunKSmallJS() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/casts/functions/isFunKSmallJS.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("reifiedAsFunKBig.kt")
|
||||
public void testReifiedAsFunKBig() throws Exception {
|
||||
@@ -3891,12 +3837,6 @@ public class FirJsCodegenBoxTestGenerated extends AbstractFirJsCodegenBoxTest {
|
||||
public void testAllFilesPresentInJava() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/classLiteral/java"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true);
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt11943.kt")
|
||||
public void testKt11943() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/classLiteral/java/kt11943.kt");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -4023,12 +3963,6 @@ public class FirJsCodegenBoxTestGenerated extends AbstractFirJsCodegenBoxTest {
|
||||
runTest("compiler/testData/codegen/box/classes/delegationGenericLongArg.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("delegationJava.kt")
|
||||
public void testDelegationJava() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/classes/delegationJava.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("delegationMethodsWithArgs.kt")
|
||||
public void testDelegationMethodsWithArgs() throws Exception {
|
||||
@@ -4119,12 +4053,6 @@ public class FirJsCodegenBoxTestGenerated extends AbstractFirJsCodegenBoxTest {
|
||||
runTest("compiler/testData/codegen/box/classes/kt1018.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt1120.kt")
|
||||
public void testKt1120() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/classes/kt1120.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt1157.kt")
|
||||
public void testKt1157() throws Exception {
|
||||
@@ -5495,12 +5423,6 @@ public class FirJsCodegenBoxTestGenerated extends AbstractFirJsCodegenBoxTest {
|
||||
runTest("compiler/testData/codegen/box/constants/long.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("numberLiteralCoercionToInferredType.kt")
|
||||
public void testNumberLiteralCoercionToInferredType() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/constants/numberLiteralCoercionToInferredType.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("privateConst.kt")
|
||||
public void testPrivateConst() throws Exception {
|
||||
@@ -9400,22 +9322,6 @@ public class FirJsCodegenBoxTestGenerated extends AbstractFirJsCodegenBoxTest {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/coroutines/localFunctions"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true);
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("compiler/testData/codegen/box/coroutines/localFunctions/anonymous")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
public class Anonymous {
|
||||
@Test
|
||||
public void testAllFilesPresentInAnonymous() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/coroutines/localFunctions/anonymous"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true);
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("simple.kt")
|
||||
public void testSimple() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/coroutines/localFunctions/anonymous/simple.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("compiler/testData/codegen/box/coroutines/localFunctions/named")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
|
||||
+12
-106
@@ -53,12 +53,6 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest {
|
||||
runTest("compiler/testData/codegen/box/annotations/nestedClassesInAnnotations.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("parameters.kt")
|
||||
public void testParameters() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/annotations/parameters.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("resolveWithLowPriorityAnnotation.kt")
|
||||
public void testResolveWithLowPriorityAnnotation() throws Exception {
|
||||
@@ -345,24 +339,6 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest {
|
||||
runTest("compiler/testData/codegen/box/arrays/arrayPlusAssign.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("arraysAreCloneable.kt")
|
||||
public void testArraysAreCloneable() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/arrays/arraysAreCloneable.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("cloneArray.kt")
|
||||
public void testCloneArray() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/arrays/cloneArray.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("clonePrimitiveArrays.kt")
|
||||
public void testClonePrimitiveArrays() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/arrays/clonePrimitiveArrays.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("collectionAssignGetMultiIndex.kt")
|
||||
public void testCollectionAssignGetMultiIndex() throws Exception {
|
||||
@@ -1172,9 +1148,9 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest {
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("checkcastAndInstanceOf.kt")
|
||||
public void testCheckcastAndInstanceOf() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/boxingOptimization/checkcastAndInstanceOf.kt");
|
||||
@TestMetadata("checkcastAndInstanceOf2.kt")
|
||||
public void testCheckcastAndInstanceOf2() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/boxingOptimization/checkcastAndInstanceOf2.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@@ -2560,12 +2536,6 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest {
|
||||
public void testReceiverInEquals() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/callableReference/bound/equals/receiverInEquals.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("reflectionReference.kt")
|
||||
public void testReflectionReference() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/callableReference/bound/equals/reflectionReference.kt");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2839,9 +2809,9 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest {
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("genericCallableReferenceArguments.kt")
|
||||
public void testGenericCallableReferenceArguments() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/callableReference/function/genericCallableReferenceArguments.kt");
|
||||
@TestMetadata("genericCallableReferenceArgumentsNonJVM.kt")
|
||||
public void testGenericCallableReferenceArgumentsNonJVM() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/callableReference/function/genericCallableReferenceArgumentsNonJVM.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@@ -3278,12 +3248,6 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest {
|
||||
runTest("compiler/testData/codegen/box/callableReference/property/kt15447.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt6870_privatePropertyReference.kt")
|
||||
public void testKt6870_privatePropertyReference() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/callableReference/property/kt6870_privatePropertyReference.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("listOfStringsMapLength.kt")
|
||||
public void testListOfStringsMapLength() throws Exception {
|
||||
@@ -3389,24 +3353,12 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/casts"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true);
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("as.kt")
|
||||
public void testAs() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/casts/as.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("asForConstants.kt")
|
||||
public void testAsForConstants() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/casts/asForConstants.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("asSafe.kt")
|
||||
public void testAsSafe() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/casts/asSafe.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("asSafeFail.kt")
|
||||
public void testAsSafeFail() throws Exception {
|
||||
@@ -3485,12 +3437,6 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest {
|
||||
runTest("compiler/testData/codegen/box/casts/intersectionTypeWithoutGenericsAsReceiver.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("is.kt")
|
||||
public void testIs() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/casts/is.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("isNullablePrimitive.kt")
|
||||
public void testIsNullablePrimitive() throws Exception {
|
||||
@@ -3551,12 +3497,6 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest {
|
||||
runTest("compiler/testData/codegen/box/casts/lambdaToUnitCast.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("notIs.kt")
|
||||
public void testNotIs() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/casts/notIs.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("nullableSafeCastToTypeParameterWithInterfaceUpperBound.kt")
|
||||
public void testNullableSafeCastToTypeParameterWithInterfaceUpperBound() throws Exception {
|
||||
@@ -3620,6 +3560,12 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest {
|
||||
runTest("compiler/testData/codegen/box/casts/functions/isFunKSmall.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("isFunKSmallJS.kt")
|
||||
public void testIsFunKSmallJS() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/casts/functions/isFunKSmallJS.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("reifiedAsFunKBig.kt")
|
||||
public void testReifiedAsFunKBig() throws Exception {
|
||||
@@ -3891,12 +3837,6 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest {
|
||||
public void testAllFilesPresentInJava() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/classLiteral/java"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true);
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt11943.kt")
|
||||
public void testKt11943() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/classLiteral/java/kt11943.kt");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -4023,12 +3963,6 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest {
|
||||
runTest("compiler/testData/codegen/box/classes/delegationGenericLongArg.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("delegationJava.kt")
|
||||
public void testDelegationJava() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/classes/delegationJava.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("delegationMethodsWithArgs.kt")
|
||||
public void testDelegationMethodsWithArgs() throws Exception {
|
||||
@@ -4119,12 +4053,6 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest {
|
||||
runTest("compiler/testData/codegen/box/classes/kt1018.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt1120.kt")
|
||||
public void testKt1120() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/classes/kt1120.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt1157.kt")
|
||||
public void testKt1157() throws Exception {
|
||||
@@ -5495,12 +5423,6 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest {
|
||||
runTest("compiler/testData/codegen/box/constants/long.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("numberLiteralCoercionToInferredType.kt")
|
||||
public void testNumberLiteralCoercionToInferredType() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/constants/numberLiteralCoercionToInferredType.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("privateConst.kt")
|
||||
public void testPrivateConst() throws Exception {
|
||||
@@ -9400,22 +9322,6 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/coroutines/localFunctions"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true);
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("compiler/testData/codegen/box/coroutines/localFunctions/anonymous")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
public class Anonymous {
|
||||
@Test
|
||||
public void testAllFilesPresentInAnonymous() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/coroutines/localFunctions/anonymous"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true);
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("simple.kt")
|
||||
public void testSimple() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/coroutines/localFunctions/anonymous/simple.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("compiler/testData/codegen/box/coroutines/localFunctions/named")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
|
||||
+12
-106
@@ -53,12 +53,6 @@ public class IrJsES6CodegenBoxTestGenerated extends AbstractIrJsES6CodegenBoxTes
|
||||
runTest("compiler/testData/codegen/box/annotations/nestedClassesInAnnotations.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("parameters.kt")
|
||||
public void testParameters() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/annotations/parameters.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("resolveWithLowPriorityAnnotation.kt")
|
||||
public void testResolveWithLowPriorityAnnotation() throws Exception {
|
||||
@@ -345,24 +339,6 @@ public class IrJsES6CodegenBoxTestGenerated extends AbstractIrJsES6CodegenBoxTes
|
||||
runTest("compiler/testData/codegen/box/arrays/arrayPlusAssign.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("arraysAreCloneable.kt")
|
||||
public void testArraysAreCloneable() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/arrays/arraysAreCloneable.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("cloneArray.kt")
|
||||
public void testCloneArray() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/arrays/cloneArray.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("clonePrimitiveArrays.kt")
|
||||
public void testClonePrimitiveArrays() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/arrays/clonePrimitiveArrays.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("collectionAssignGetMultiIndex.kt")
|
||||
public void testCollectionAssignGetMultiIndex() throws Exception {
|
||||
@@ -1172,9 +1148,9 @@ public class IrJsES6CodegenBoxTestGenerated extends AbstractIrJsES6CodegenBoxTes
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("checkcastAndInstanceOf.kt")
|
||||
public void testCheckcastAndInstanceOf() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/boxingOptimization/checkcastAndInstanceOf.kt");
|
||||
@TestMetadata("checkcastAndInstanceOf2.kt")
|
||||
public void testCheckcastAndInstanceOf2() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/boxingOptimization/checkcastAndInstanceOf2.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@@ -2560,12 +2536,6 @@ public class IrJsES6CodegenBoxTestGenerated extends AbstractIrJsES6CodegenBoxTes
|
||||
public void testReceiverInEquals() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/callableReference/bound/equals/receiverInEquals.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("reflectionReference.kt")
|
||||
public void testReflectionReference() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/callableReference/bound/equals/reflectionReference.kt");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2839,9 +2809,9 @@ public class IrJsES6CodegenBoxTestGenerated extends AbstractIrJsES6CodegenBoxTes
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("genericCallableReferenceArguments.kt")
|
||||
public void testGenericCallableReferenceArguments() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/callableReference/function/genericCallableReferenceArguments.kt");
|
||||
@TestMetadata("genericCallableReferenceArgumentsNonJVM.kt")
|
||||
public void testGenericCallableReferenceArgumentsNonJVM() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/callableReference/function/genericCallableReferenceArgumentsNonJVM.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@@ -3278,12 +3248,6 @@ public class IrJsES6CodegenBoxTestGenerated extends AbstractIrJsES6CodegenBoxTes
|
||||
runTest("compiler/testData/codegen/box/callableReference/property/kt15447.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt6870_privatePropertyReference.kt")
|
||||
public void testKt6870_privatePropertyReference() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/callableReference/property/kt6870_privatePropertyReference.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("listOfStringsMapLength.kt")
|
||||
public void testListOfStringsMapLength() throws Exception {
|
||||
@@ -3389,24 +3353,12 @@ public class IrJsES6CodegenBoxTestGenerated extends AbstractIrJsES6CodegenBoxTes
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/casts"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true);
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("as.kt")
|
||||
public void testAs() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/casts/as.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("asForConstants.kt")
|
||||
public void testAsForConstants() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/casts/asForConstants.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("asSafe.kt")
|
||||
public void testAsSafe() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/casts/asSafe.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("asSafeFail.kt")
|
||||
public void testAsSafeFail() throws Exception {
|
||||
@@ -3485,12 +3437,6 @@ public class IrJsES6CodegenBoxTestGenerated extends AbstractIrJsES6CodegenBoxTes
|
||||
runTest("compiler/testData/codegen/box/casts/intersectionTypeWithoutGenericsAsReceiver.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("is.kt")
|
||||
public void testIs() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/casts/is.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("isNullablePrimitive.kt")
|
||||
public void testIsNullablePrimitive() throws Exception {
|
||||
@@ -3551,12 +3497,6 @@ public class IrJsES6CodegenBoxTestGenerated extends AbstractIrJsES6CodegenBoxTes
|
||||
runTest("compiler/testData/codegen/box/casts/lambdaToUnitCast.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("notIs.kt")
|
||||
public void testNotIs() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/casts/notIs.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("nullableSafeCastToTypeParameterWithInterfaceUpperBound.kt")
|
||||
public void testNullableSafeCastToTypeParameterWithInterfaceUpperBound() throws Exception {
|
||||
@@ -3620,6 +3560,12 @@ public class IrJsES6CodegenBoxTestGenerated extends AbstractIrJsES6CodegenBoxTes
|
||||
runTest("compiler/testData/codegen/box/casts/functions/isFunKSmall.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("isFunKSmallJS.kt")
|
||||
public void testIsFunKSmallJS() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/casts/functions/isFunKSmallJS.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("reifiedAsFunKBig.kt")
|
||||
public void testReifiedAsFunKBig() throws Exception {
|
||||
@@ -3891,12 +3837,6 @@ public class IrJsES6CodegenBoxTestGenerated extends AbstractIrJsES6CodegenBoxTes
|
||||
public void testAllFilesPresentInJava() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/classLiteral/java"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true);
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt11943.kt")
|
||||
public void testKt11943() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/classLiteral/java/kt11943.kt");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -4023,12 +3963,6 @@ public class IrJsES6CodegenBoxTestGenerated extends AbstractIrJsES6CodegenBoxTes
|
||||
runTest("compiler/testData/codegen/box/classes/delegationGenericLongArg.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("delegationJava.kt")
|
||||
public void testDelegationJava() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/classes/delegationJava.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("delegationMethodsWithArgs.kt")
|
||||
public void testDelegationMethodsWithArgs() throws Exception {
|
||||
@@ -4119,12 +4053,6 @@ public class IrJsES6CodegenBoxTestGenerated extends AbstractIrJsES6CodegenBoxTes
|
||||
runTest("compiler/testData/codegen/box/classes/kt1018.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt1120.kt")
|
||||
public void testKt1120() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/classes/kt1120.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt1157.kt")
|
||||
public void testKt1157() throws Exception {
|
||||
@@ -5495,12 +5423,6 @@ public class IrJsES6CodegenBoxTestGenerated extends AbstractIrJsES6CodegenBoxTes
|
||||
runTest("compiler/testData/codegen/box/constants/long.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("numberLiteralCoercionToInferredType.kt")
|
||||
public void testNumberLiteralCoercionToInferredType() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/constants/numberLiteralCoercionToInferredType.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("privateConst.kt")
|
||||
public void testPrivateConst() throws Exception {
|
||||
@@ -9400,22 +9322,6 @@ public class IrJsES6CodegenBoxTestGenerated extends AbstractIrJsES6CodegenBoxTes
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/coroutines/localFunctions"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true);
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("compiler/testData/codegen/box/coroutines/localFunctions/anonymous")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
public class Anonymous {
|
||||
@Test
|
||||
public void testAllFilesPresentInAnonymous() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/coroutines/localFunctions/anonymous"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true);
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("simple.kt")
|
||||
public void testSimple() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/coroutines/localFunctions/anonymous/simple.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("compiler/testData/codegen/box/coroutines/localFunctions/named")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
|
||||
+12
-157
@@ -64,12 +64,6 @@ public class FirNativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTe
|
||||
runTest("compiler/testData/codegen/box/annotations/nestedClassesInAnnotations.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("parameters.kt")
|
||||
public void testParameters() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/annotations/parameters.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("resolveWithLowPriorityAnnotation.kt")
|
||||
public void testResolveWithLowPriorityAnnotation() throws Exception {
|
||||
@@ -383,24 +377,6 @@ public class FirNativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTe
|
||||
runTest("compiler/testData/codegen/box/arrays/arrayPlusAssign.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("arraysAreCloneable.kt")
|
||||
public void testArraysAreCloneable() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/arrays/arraysAreCloneable.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("cloneArray.kt")
|
||||
public void testCloneArray() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/arrays/cloneArray.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("clonePrimitiveArrays.kt")
|
||||
public void testClonePrimitiveArrays() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/arrays/clonePrimitiveArrays.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("collectionAssignGetMultiIndex.kt")
|
||||
public void testCollectionAssignGetMultiIndex() throws Exception {
|
||||
@@ -1240,9 +1216,9 @@ public class FirNativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTe
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("checkcastAndInstanceOf.kt")
|
||||
public void testCheckcastAndInstanceOf() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/boxingOptimization/checkcastAndInstanceOf.kt");
|
||||
@TestMetadata("checkcastAndInstanceOf2.kt")
|
||||
public void testCheckcastAndInstanceOf2() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/boxingOptimization/checkcastAndInstanceOf2.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@@ -1600,12 +1576,6 @@ public class FirNativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTe
|
||||
runTest("compiler/testData/codegen/box/bridges/kt1959.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt2498.kt")
|
||||
public void testKt2498() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/bridges/kt2498.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt2702.kt")
|
||||
public void testKt2702() throws Exception {
|
||||
@@ -1928,41 +1898,11 @@ public class FirNativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTe
|
||||
@FirPipeline()
|
||||
@UseExtTestCaseGroupProvider()
|
||||
public class ExtendJavaClasses {
|
||||
@Test
|
||||
@TestMetadata("abstractSet.kt")
|
||||
public void testAbstractSet() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/builtinStubMethods/extendJavaClasses/abstractSet.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testAllFilesPresentInExtendJavaClasses() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/builtinStubMethods/extendJavaClasses"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true);
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("arrayList.kt")
|
||||
public void testArrayList() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/builtinStubMethods/extendJavaClasses/arrayList.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("extendArrayListThroughKotlin.kt")
|
||||
public void testExtendArrayListThroughKotlin() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/builtinStubMethods/extendJavaClasses/extendArrayListThroughKotlin.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("hashMap.kt")
|
||||
public void testHashMap() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/builtinStubMethods/extendJavaClasses/hashMap.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("hashSet.kt")
|
||||
public void testHashSet() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/builtinStubMethods/extendJavaClasses/hashSet.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("overrideAbstractSetMethod.kt")
|
||||
public void testOverrideAbstractSetMethod() throws Exception {
|
||||
@@ -2652,12 +2592,6 @@ public class FirNativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTe
|
||||
public void testReceiverInEquals() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/callableReference/bound/equals/receiverInEquals.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("reflectionReference.kt")
|
||||
public void testReflectionReference() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/callableReference/bound/equals/reflectionReference.kt");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2940,9 +2874,9 @@ public class FirNativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTe
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("genericCallableReferenceArguments.kt")
|
||||
public void testGenericCallableReferenceArguments() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/callableReference/function/genericCallableReferenceArguments.kt");
|
||||
@TestMetadata("genericCallableReferenceArgumentsNonJVM.kt")
|
||||
public void testGenericCallableReferenceArgumentsNonJVM() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/callableReference/function/genericCallableReferenceArgumentsNonJVM.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@@ -3385,12 +3319,6 @@ public class FirNativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTe
|
||||
runTest("compiler/testData/codegen/box/callableReference/property/kt15447.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt6870_privatePropertyReference.kt")
|
||||
public void testKt6870_privatePropertyReference() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/callableReference/property/kt6870_privatePropertyReference.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("listOfStringsMapLength.kt")
|
||||
public void testListOfStringsMapLength() throws Exception {
|
||||
@@ -3502,24 +3430,12 @@ public class FirNativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTe
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/casts"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true);
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("as.kt")
|
||||
public void testAs() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/casts/as.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("asForConstants.kt")
|
||||
public void testAsForConstants() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/casts/asForConstants.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("asSafe.kt")
|
||||
public void testAsSafe() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/casts/asSafe.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("asSafeFail.kt")
|
||||
public void testAsSafeFail() throws Exception {
|
||||
@@ -3598,12 +3514,6 @@ public class FirNativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTe
|
||||
runTest("compiler/testData/codegen/box/casts/intersectionTypeWithoutGenericsAsReceiver.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("is.kt")
|
||||
public void testIs() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/casts/is.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("isNullablePrimitive.kt")
|
||||
public void testIsNullablePrimitive() throws Exception {
|
||||
@@ -3664,12 +3574,6 @@ public class FirNativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTe
|
||||
runTest("compiler/testData/codegen/box/casts/lambdaToUnitCast.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("notIs.kt")
|
||||
public void testNotIs() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/casts/notIs.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("nullableSafeCastToTypeParameterWithInterfaceUpperBound.kt")
|
||||
public void testNullableSafeCastToTypeParameterWithInterfaceUpperBound() throws Exception {
|
||||
@@ -3742,6 +3646,12 @@ public class FirNativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTe
|
||||
runTest("compiler/testData/codegen/box/casts/functions/isFunKSmall.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("isFunKSmallNonJS.kt")
|
||||
public void testIsFunKSmallNonJS() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/casts/functions/isFunKSmallNonJS.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("reifiedAsFunKBig.kt")
|
||||
public void testReifiedAsFunKBig() throws Exception {
|
||||
@@ -4061,12 +3971,6 @@ public class FirNativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTe
|
||||
public void testAllFilesPresentInJava() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/classLiteral/java"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true);
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt11943.kt")
|
||||
public void testKt11943() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/classLiteral/java/kt11943.kt");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -4196,12 +4100,6 @@ public class FirNativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTe
|
||||
runTest("compiler/testData/codegen/box/classes/delegationGenericLongArg.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("delegationJava.kt")
|
||||
public void testDelegationJava() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/classes/delegationJava.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("delegationMethodsWithArgs.kt")
|
||||
public void testDelegationMethodsWithArgs() throws Exception {
|
||||
@@ -4238,12 +4136,6 @@ public class FirNativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTe
|
||||
runTest("compiler/testData/codegen/box/classes/implementComparableInSubclass.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("inheritSetAndHashSet.kt")
|
||||
public void testInheritSetAndHashSet() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/classes/inheritSetAndHashSet.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("inheritance.kt")
|
||||
public void testInheritance() throws Exception {
|
||||
@@ -4292,12 +4184,6 @@ public class FirNativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTe
|
||||
runTest("compiler/testData/codegen/box/classes/kt1018.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt1120.kt")
|
||||
public void testKt1120() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/classes/kt1120.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt1157.kt")
|
||||
public void testKt1157() throws Exception {
|
||||
@@ -5554,12 +5440,6 @@ public class FirNativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTe
|
||||
runTest("compiler/testData/codegen/box/collections/internalRemove.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt41123.kt")
|
||||
public void testKt41123() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/collections/kt41123.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("removeClash.kt")
|
||||
public void testRemoveClash() throws Exception {
|
||||
@@ -6367,12 +6247,6 @@ public class FirNativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTe
|
||||
runTest("compiler/testData/codegen/box/constants/long.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("numberLiteralCoercionToInferredType.kt")
|
||||
public void testNumberLiteralCoercionToInferredType() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/constants/numberLiteralCoercionToInferredType.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("privateConst.kt")
|
||||
public void testPrivateConst() throws Exception {
|
||||
@@ -10380,25 +10254,6 @@ public class FirNativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTe
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/coroutines/localFunctions"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true);
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("compiler/testData/codegen/box/coroutines/localFunctions/anonymous")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@Tag("frontend-fir")
|
||||
@FirPipeline()
|
||||
@UseExtTestCaseGroupProvider()
|
||||
public class Anonymous {
|
||||
@Test
|
||||
public void testAllFilesPresentInAnonymous() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/coroutines/localFunctions/anonymous"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true);
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("simple.kt")
|
||||
public void testSimple() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/coroutines/localFunctions/anonymous/simple.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("compiler/testData/codegen/box/coroutines/localFunctions/named")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
|
||||
+12
-159
@@ -70,12 +70,6 @@ public class FirNativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenB
|
||||
runTest("compiler/testData/codegen/box/annotations/nestedClassesInAnnotations.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("parameters.kt")
|
||||
public void testParameters() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/annotations/parameters.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("resolveWithLowPriorityAnnotation.kt")
|
||||
public void testResolveWithLowPriorityAnnotation() throws Exception {
|
||||
@@ -403,24 +397,6 @@ public class FirNativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenB
|
||||
runTest("compiler/testData/codegen/box/arrays/arrayPlusAssign.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("arraysAreCloneable.kt")
|
||||
public void testArraysAreCloneable() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/arrays/arraysAreCloneable.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("cloneArray.kt")
|
||||
public void testCloneArray() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/arrays/cloneArray.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("clonePrimitiveArrays.kt")
|
||||
public void testClonePrimitiveArrays() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/arrays/clonePrimitiveArrays.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("collectionAssignGetMultiIndex.kt")
|
||||
public void testCollectionAssignGetMultiIndex() throws Exception {
|
||||
@@ -1280,9 +1256,9 @@ public class FirNativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenB
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("checkcastAndInstanceOf.kt")
|
||||
public void testCheckcastAndInstanceOf() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/boxingOptimization/checkcastAndInstanceOf.kt");
|
||||
@TestMetadata("checkcastAndInstanceOf2.kt")
|
||||
public void testCheckcastAndInstanceOf2() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/boxingOptimization/checkcastAndInstanceOf2.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@@ -1642,12 +1618,6 @@ public class FirNativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenB
|
||||
runTest("compiler/testData/codegen/box/bridges/kt1959.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt2498.kt")
|
||||
public void testKt2498() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/bridges/kt2498.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt2702.kt")
|
||||
public void testKt2702() throws Exception {
|
||||
@@ -1978,41 +1948,11 @@ public class FirNativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenB
|
||||
@UsePartialLinkage(mode = Mode.DISABLED)
|
||||
@Tag("no-partial-linkage-may-be-skipped")
|
||||
public class ExtendJavaClasses {
|
||||
@Test
|
||||
@TestMetadata("abstractSet.kt")
|
||||
public void testAbstractSet() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/builtinStubMethods/extendJavaClasses/abstractSet.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testAllFilesPresentInExtendJavaClasses() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/builtinStubMethods/extendJavaClasses"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true);
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("arrayList.kt")
|
||||
public void testArrayList() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/builtinStubMethods/extendJavaClasses/arrayList.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("extendArrayListThroughKotlin.kt")
|
||||
public void testExtendArrayListThroughKotlin() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/builtinStubMethods/extendJavaClasses/extendArrayListThroughKotlin.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("hashMap.kt")
|
||||
public void testHashMap() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/builtinStubMethods/extendJavaClasses/hashMap.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("hashSet.kt")
|
||||
public void testHashSet() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/builtinStubMethods/extendJavaClasses/hashSet.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("overrideAbstractSetMethod.kt")
|
||||
public void testOverrideAbstractSetMethod() throws Exception {
|
||||
@@ -2716,12 +2656,6 @@ public class FirNativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenB
|
||||
public void testReceiverInEquals() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/callableReference/bound/equals/receiverInEquals.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("reflectionReference.kt")
|
||||
public void testReflectionReference() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/callableReference/bound/equals/reflectionReference.kt");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3010,9 +2944,9 @@ public class FirNativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenB
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("genericCallableReferenceArguments.kt")
|
||||
public void testGenericCallableReferenceArguments() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/callableReference/function/genericCallableReferenceArguments.kt");
|
||||
@TestMetadata("genericCallableReferenceArgumentsNonJVM.kt")
|
||||
public void testGenericCallableReferenceArgumentsNonJVM() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/callableReference/function/genericCallableReferenceArgumentsNonJVM.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@@ -3459,12 +3393,6 @@ public class FirNativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenB
|
||||
runTest("compiler/testData/codegen/box/callableReference/property/kt15447.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt6870_privatePropertyReference.kt")
|
||||
public void testKt6870_privatePropertyReference() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/callableReference/property/kt6870_privatePropertyReference.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("listOfStringsMapLength.kt")
|
||||
public void testListOfStringsMapLength() throws Exception {
|
||||
@@ -3580,24 +3508,12 @@ public class FirNativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenB
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/casts"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true);
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("as.kt")
|
||||
public void testAs() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/casts/as.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("asForConstants.kt")
|
||||
public void testAsForConstants() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/casts/asForConstants.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("asSafe.kt")
|
||||
public void testAsSafe() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/casts/asSafe.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("asSafeFail.kt")
|
||||
public void testAsSafeFail() throws Exception {
|
||||
@@ -3676,12 +3592,6 @@ public class FirNativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenB
|
||||
runTest("compiler/testData/codegen/box/casts/intersectionTypeWithoutGenericsAsReceiver.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("is.kt")
|
||||
public void testIs() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/casts/is.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("isNullablePrimitive.kt")
|
||||
public void testIsNullablePrimitive() throws Exception {
|
||||
@@ -3742,12 +3652,6 @@ public class FirNativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenB
|
||||
runTest("compiler/testData/codegen/box/casts/lambdaToUnitCast.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("notIs.kt")
|
||||
public void testNotIs() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/casts/notIs.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("nullableSafeCastToTypeParameterWithInterfaceUpperBound.kt")
|
||||
public void testNullableSafeCastToTypeParameterWithInterfaceUpperBound() throws Exception {
|
||||
@@ -3822,6 +3726,12 @@ public class FirNativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenB
|
||||
runTest("compiler/testData/codegen/box/casts/functions/isFunKSmall.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("isFunKSmallNonJS.kt")
|
||||
public void testIsFunKSmallNonJS() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/casts/functions/isFunKSmallNonJS.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("reifiedAsFunKBig.kt")
|
||||
public void testReifiedAsFunKBig() throws Exception {
|
||||
@@ -4157,12 +4067,6 @@ public class FirNativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenB
|
||||
public void testAllFilesPresentInJava() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/classLiteral/java"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true);
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt11943.kt")
|
||||
public void testKt11943() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/classLiteral/java/kt11943.kt");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -4294,12 +4198,6 @@ public class FirNativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenB
|
||||
runTest("compiler/testData/codegen/box/classes/delegationGenericLongArg.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("delegationJava.kt")
|
||||
public void testDelegationJava() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/classes/delegationJava.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("delegationMethodsWithArgs.kt")
|
||||
public void testDelegationMethodsWithArgs() throws Exception {
|
||||
@@ -4336,12 +4234,6 @@ public class FirNativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenB
|
||||
runTest("compiler/testData/codegen/box/classes/implementComparableInSubclass.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("inheritSetAndHashSet.kt")
|
||||
public void testInheritSetAndHashSet() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/classes/inheritSetAndHashSet.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("inheritance.kt")
|
||||
public void testInheritance() throws Exception {
|
||||
@@ -4390,12 +4282,6 @@ public class FirNativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenB
|
||||
runTest("compiler/testData/codegen/box/classes/kt1018.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt1120.kt")
|
||||
public void testKt1120() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/classes/kt1120.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt1157.kt")
|
||||
public void testKt1157() throws Exception {
|
||||
@@ -5668,12 +5554,6 @@ public class FirNativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenB
|
||||
runTest("compiler/testData/codegen/box/collections/internalRemove.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt41123.kt")
|
||||
public void testKt41123() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/collections/kt41123.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("removeClash.kt")
|
||||
public void testRemoveClash() throws Exception {
|
||||
@@ -6511,12 +6391,6 @@ public class FirNativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenB
|
||||
runTest("compiler/testData/codegen/box/constants/long.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("numberLiteralCoercionToInferredType.kt")
|
||||
public void testNumberLiteralCoercionToInferredType() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/constants/numberLiteralCoercionToInferredType.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("privateConst.kt")
|
||||
public void testPrivateConst() throws Exception {
|
||||
@@ -10596,27 +10470,6 @@ public class FirNativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenB
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/coroutines/localFunctions"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true);
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("compiler/testData/codegen/box/coroutines/localFunctions/anonymous")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@Tag("frontend-fir")
|
||||
@FirPipeline()
|
||||
@UseExtTestCaseGroupProvider()
|
||||
@UsePartialLinkage(mode = Mode.DISABLED)
|
||||
@Tag("no-partial-linkage-may-be-skipped")
|
||||
public class Anonymous {
|
||||
@Test
|
||||
public void testAllFilesPresentInAnonymous() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/coroutines/localFunctions/anonymous"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true);
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("simple.kt")
|
||||
public void testSimple() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/coroutines/localFunctions/anonymous/simple.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("compiler/testData/codegen/box/coroutines/localFunctions/named")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
|
||||
+12
-156
@@ -62,12 +62,6 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest
|
||||
runTest("compiler/testData/codegen/box/annotations/nestedClassesInAnnotations.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("parameters.kt")
|
||||
public void testParameters() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/annotations/parameters.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("resolveWithLowPriorityAnnotation.kt")
|
||||
public void testResolveWithLowPriorityAnnotation() throws Exception {
|
||||
@@ -374,24 +368,6 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest
|
||||
runTest("compiler/testData/codegen/box/arrays/arrayPlusAssign.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("arraysAreCloneable.kt")
|
||||
public void testArraysAreCloneable() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/arrays/arraysAreCloneable.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("cloneArray.kt")
|
||||
public void testCloneArray() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/arrays/cloneArray.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("clonePrimitiveArrays.kt")
|
||||
public void testClonePrimitiveArrays() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/arrays/clonePrimitiveArrays.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("collectionAssignGetMultiIndex.kt")
|
||||
public void testCollectionAssignGetMultiIndex() throws Exception {
|
||||
@@ -1221,9 +1197,9 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("checkcastAndInstanceOf.kt")
|
||||
public void testCheckcastAndInstanceOf() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/boxingOptimization/checkcastAndInstanceOf.kt");
|
||||
@TestMetadata("checkcastAndInstanceOf2.kt")
|
||||
public void testCheckcastAndInstanceOf2() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/boxingOptimization/checkcastAndInstanceOf2.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@@ -1580,12 +1556,6 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest
|
||||
runTest("compiler/testData/codegen/box/bridges/kt1959.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt2498.kt")
|
||||
public void testKt2498() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/bridges/kt2498.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt2702.kt")
|
||||
public void testKt2702() throws Exception {
|
||||
@@ -1904,41 +1874,11 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest
|
||||
@UseExtTestCaseGroupProvider()
|
||||
@DisabledTestsIfProperty(sourceLocations = { "compiler/testData/codegen/box/coroutines/featureIntersection/defaultExpect.kt", "compiler/testData/codegen/box/multiplatform/defaultArguments/*.kt", "compiler/testData/codegen/box/multiplatform/migratedOldTests/*.kt", "compiler/testData/codegen/boxInline/multiplatform/defaultArguments/receiversAndParametersInLambda.kt" }, property = ClassLevelProperty.TEST_MODE, propertyValue = "ONE_STAGE_MULTI_MODULE")
|
||||
public class ExtendJavaClasses {
|
||||
@Test
|
||||
@TestMetadata("abstractSet.kt")
|
||||
public void testAbstractSet() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/builtinStubMethods/extendJavaClasses/abstractSet.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testAllFilesPresentInExtendJavaClasses() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/builtinStubMethods/extendJavaClasses"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true);
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("arrayList.kt")
|
||||
public void testArrayList() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/builtinStubMethods/extendJavaClasses/arrayList.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("extendArrayListThroughKotlin.kt")
|
||||
public void testExtendArrayListThroughKotlin() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/builtinStubMethods/extendJavaClasses/extendArrayListThroughKotlin.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("hashMap.kt")
|
||||
public void testHashMap() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/builtinStubMethods/extendJavaClasses/hashMap.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("hashSet.kt")
|
||||
public void testHashSet() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/builtinStubMethods/extendJavaClasses/hashSet.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("overrideAbstractSetMethod.kt")
|
||||
public void testOverrideAbstractSetMethod() throws Exception {
|
||||
@@ -2621,12 +2561,6 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest
|
||||
public void testReceiverInEquals() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/callableReference/bound/equals/receiverInEquals.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("reflectionReference.kt")
|
||||
public void testReflectionReference() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/callableReference/bound/equals/reflectionReference.kt");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2906,9 +2840,9 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("genericCallableReferenceArguments.kt")
|
||||
public void testGenericCallableReferenceArguments() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/callableReference/function/genericCallableReferenceArguments.kt");
|
||||
@TestMetadata("genericCallableReferenceArgumentsNonJVM.kt")
|
||||
public void testGenericCallableReferenceArgumentsNonJVM() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/callableReference/function/genericCallableReferenceArgumentsNonJVM.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@@ -3349,12 +3283,6 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest
|
||||
runTest("compiler/testData/codegen/box/callableReference/property/kt15447.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt6870_privatePropertyReference.kt")
|
||||
public void testKt6870_privatePropertyReference() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/callableReference/property/kt6870_privatePropertyReference.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("listOfStringsMapLength.kt")
|
||||
public void testListOfStringsMapLength() throws Exception {
|
||||
@@ -3464,24 +3392,12 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/casts"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true);
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("as.kt")
|
||||
public void testAs() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/casts/as.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("asForConstants.kt")
|
||||
public void testAsForConstants() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/casts/asForConstants.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("asSafe.kt")
|
||||
public void testAsSafe() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/casts/asSafe.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("asSafeFail.kt")
|
||||
public void testAsSafeFail() throws Exception {
|
||||
@@ -3560,12 +3476,6 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest
|
||||
runTest("compiler/testData/codegen/box/casts/intersectionTypeWithoutGenericsAsReceiver.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("is.kt")
|
||||
public void testIs() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/casts/is.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("isNullablePrimitive.kt")
|
||||
public void testIsNullablePrimitive() throws Exception {
|
||||
@@ -3626,12 +3536,6 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest
|
||||
runTest("compiler/testData/codegen/box/casts/lambdaToUnitCast.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("notIs.kt")
|
||||
public void testNotIs() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/casts/notIs.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("nullableSafeCastToTypeParameterWithInterfaceUpperBound.kt")
|
||||
public void testNullableSafeCastToTypeParameterWithInterfaceUpperBound() throws Exception {
|
||||
@@ -3703,6 +3607,12 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest
|
||||
runTest("compiler/testData/codegen/box/casts/functions/isFunKSmall.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("isFunKSmallNonJS.kt")
|
||||
public void testIsFunKSmallNonJS() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/casts/functions/isFunKSmallNonJS.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("reifiedAsFunKBig.kt")
|
||||
public void testReifiedAsFunKBig() throws Exception {
|
||||
@@ -4014,12 +3924,6 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest
|
||||
public void testAllFilesPresentInJava() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/classLiteral/java"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true);
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt11943.kt")
|
||||
public void testKt11943() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/classLiteral/java/kt11943.kt");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -4148,12 +4052,6 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest
|
||||
runTest("compiler/testData/codegen/box/classes/delegationGenericLongArg.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("delegationJava.kt")
|
||||
public void testDelegationJava() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/classes/delegationJava.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("delegationMethodsWithArgs.kt")
|
||||
public void testDelegationMethodsWithArgs() throws Exception {
|
||||
@@ -4190,12 +4088,6 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest
|
||||
runTest("compiler/testData/codegen/box/classes/implementComparableInSubclass.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("inheritSetAndHashSet.kt")
|
||||
public void testInheritSetAndHashSet() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/classes/inheritSetAndHashSet.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("inheritance.kt")
|
||||
public void testInheritance() throws Exception {
|
||||
@@ -4244,12 +4136,6 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest
|
||||
runTest("compiler/testData/codegen/box/classes/kt1018.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt1120.kt")
|
||||
public void testKt1120() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/classes/kt1120.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt1157.kt")
|
||||
public void testKt1157() throws Exception {
|
||||
@@ -5498,12 +5384,6 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest
|
||||
runTest("compiler/testData/codegen/box/collections/internalRemove.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt41123.kt")
|
||||
public void testKt41123() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/collections/kt41123.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("removeClash.kt")
|
||||
public void testRemoveClash() throws Exception {
|
||||
@@ -6296,12 +6176,6 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest
|
||||
runTest("compiler/testData/codegen/box/constants/long.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("numberLiteralCoercionToInferredType.kt")
|
||||
public void testNumberLiteralCoercionToInferredType() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/constants/numberLiteralCoercionToInferredType.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("privateConst.kt")
|
||||
public void testPrivateConst() throws Exception {
|
||||
@@ -10273,24 +10147,6 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/coroutines/localFunctions"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true);
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("compiler/testData/codegen/box/coroutines/localFunctions/anonymous")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@UseExtTestCaseGroupProvider()
|
||||
@DisabledTestsIfProperty(sourceLocations = { "compiler/testData/codegen/box/coroutines/featureIntersection/defaultExpect.kt", "compiler/testData/codegen/box/multiplatform/defaultArguments/*.kt", "compiler/testData/codegen/box/multiplatform/migratedOldTests/*.kt", "compiler/testData/codegen/boxInline/multiplatform/defaultArguments/receiversAndParametersInLambda.kt" }, property = ClassLevelProperty.TEST_MODE, propertyValue = "ONE_STAGE_MULTI_MODULE")
|
||||
public class Anonymous {
|
||||
@Test
|
||||
public void testAllFilesPresentInAnonymous() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/coroutines/localFunctions/anonymous"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true);
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("simple.kt")
|
||||
public void testSimple() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/coroutines/localFunctions/anonymous/simple.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("compiler/testData/codegen/box/coroutines/localFunctions/named")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
|
||||
+12
-157
@@ -65,12 +65,6 @@ public class NativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenBoxT
|
||||
runTest("compiler/testData/codegen/box/annotations/nestedClassesInAnnotations.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("parameters.kt")
|
||||
public void testParameters() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/annotations/parameters.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("resolveWithLowPriorityAnnotation.kt")
|
||||
public void testResolveWithLowPriorityAnnotation() throws Exception {
|
||||
@@ -384,24 +378,6 @@ public class NativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenBoxT
|
||||
runTest("compiler/testData/codegen/box/arrays/arrayPlusAssign.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("arraysAreCloneable.kt")
|
||||
public void testArraysAreCloneable() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/arrays/arraysAreCloneable.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("cloneArray.kt")
|
||||
public void testCloneArray() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/arrays/cloneArray.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("clonePrimitiveArrays.kt")
|
||||
public void testClonePrimitiveArrays() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/arrays/clonePrimitiveArrays.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("collectionAssignGetMultiIndex.kt")
|
||||
public void testCollectionAssignGetMultiIndex() throws Exception {
|
||||
@@ -1241,9 +1217,9 @@ public class NativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenBoxT
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("checkcastAndInstanceOf.kt")
|
||||
public void testCheckcastAndInstanceOf() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/boxingOptimization/checkcastAndInstanceOf.kt");
|
||||
@TestMetadata("checkcastAndInstanceOf2.kt")
|
||||
public void testCheckcastAndInstanceOf2() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/boxingOptimization/checkcastAndInstanceOf2.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@@ -1601,12 +1577,6 @@ public class NativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenBoxT
|
||||
runTest("compiler/testData/codegen/box/bridges/kt1959.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt2498.kt")
|
||||
public void testKt2498() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/bridges/kt2498.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt2702.kt")
|
||||
public void testKt2702() throws Exception {
|
||||
@@ -1929,41 +1899,11 @@ public class NativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenBoxT
|
||||
@UsePartialLinkage(mode = Mode.DISABLED)
|
||||
@Tag("no-partial-linkage-may-be-skipped")
|
||||
public class ExtendJavaClasses {
|
||||
@Test
|
||||
@TestMetadata("abstractSet.kt")
|
||||
public void testAbstractSet() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/builtinStubMethods/extendJavaClasses/abstractSet.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testAllFilesPresentInExtendJavaClasses() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/builtinStubMethods/extendJavaClasses"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true);
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("arrayList.kt")
|
||||
public void testArrayList() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/builtinStubMethods/extendJavaClasses/arrayList.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("extendArrayListThroughKotlin.kt")
|
||||
public void testExtendArrayListThroughKotlin() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/builtinStubMethods/extendJavaClasses/extendArrayListThroughKotlin.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("hashMap.kt")
|
||||
public void testHashMap() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/builtinStubMethods/extendJavaClasses/hashMap.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("hashSet.kt")
|
||||
public void testHashSet() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/builtinStubMethods/extendJavaClasses/hashSet.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("overrideAbstractSetMethod.kt")
|
||||
public void testOverrideAbstractSetMethod() throws Exception {
|
||||
@@ -2653,12 +2593,6 @@ public class NativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenBoxT
|
||||
public void testReceiverInEquals() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/callableReference/bound/equals/receiverInEquals.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("reflectionReference.kt")
|
||||
public void testReflectionReference() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/callableReference/bound/equals/reflectionReference.kt");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2941,9 +2875,9 @@ public class NativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenBoxT
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("genericCallableReferenceArguments.kt")
|
||||
public void testGenericCallableReferenceArguments() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/callableReference/function/genericCallableReferenceArguments.kt");
|
||||
@TestMetadata("genericCallableReferenceArgumentsNonJVM.kt")
|
||||
public void testGenericCallableReferenceArgumentsNonJVM() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/callableReference/function/genericCallableReferenceArgumentsNonJVM.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@@ -3386,12 +3320,6 @@ public class NativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenBoxT
|
||||
runTest("compiler/testData/codegen/box/callableReference/property/kt15447.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt6870_privatePropertyReference.kt")
|
||||
public void testKt6870_privatePropertyReference() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/callableReference/property/kt6870_privatePropertyReference.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("listOfStringsMapLength.kt")
|
||||
public void testListOfStringsMapLength() throws Exception {
|
||||
@@ -3503,24 +3431,12 @@ public class NativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenBoxT
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/casts"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true);
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("as.kt")
|
||||
public void testAs() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/casts/as.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("asForConstants.kt")
|
||||
public void testAsForConstants() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/casts/asForConstants.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("asSafe.kt")
|
||||
public void testAsSafe() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/casts/asSafe.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("asSafeFail.kt")
|
||||
public void testAsSafeFail() throws Exception {
|
||||
@@ -3599,12 +3515,6 @@ public class NativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenBoxT
|
||||
runTest("compiler/testData/codegen/box/casts/intersectionTypeWithoutGenericsAsReceiver.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("is.kt")
|
||||
public void testIs() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/casts/is.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("isNullablePrimitive.kt")
|
||||
public void testIsNullablePrimitive() throws Exception {
|
||||
@@ -3665,12 +3575,6 @@ public class NativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenBoxT
|
||||
runTest("compiler/testData/codegen/box/casts/lambdaToUnitCast.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("notIs.kt")
|
||||
public void testNotIs() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/casts/notIs.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("nullableSafeCastToTypeParameterWithInterfaceUpperBound.kt")
|
||||
public void testNullableSafeCastToTypeParameterWithInterfaceUpperBound() throws Exception {
|
||||
@@ -3743,6 +3647,12 @@ public class NativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenBoxT
|
||||
runTest("compiler/testData/codegen/box/casts/functions/isFunKSmall.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("isFunKSmallNonJS.kt")
|
||||
public void testIsFunKSmallNonJS() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/casts/functions/isFunKSmallNonJS.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("reifiedAsFunKBig.kt")
|
||||
public void testReifiedAsFunKBig() throws Exception {
|
||||
@@ -4062,12 +3972,6 @@ public class NativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenBoxT
|
||||
public void testAllFilesPresentInJava() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/classLiteral/java"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true);
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt11943.kt")
|
||||
public void testKt11943() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/classLiteral/java/kt11943.kt");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -4197,12 +4101,6 @@ public class NativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenBoxT
|
||||
runTest("compiler/testData/codegen/box/classes/delegationGenericLongArg.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("delegationJava.kt")
|
||||
public void testDelegationJava() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/classes/delegationJava.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("delegationMethodsWithArgs.kt")
|
||||
public void testDelegationMethodsWithArgs() throws Exception {
|
||||
@@ -4239,12 +4137,6 @@ public class NativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenBoxT
|
||||
runTest("compiler/testData/codegen/box/classes/implementComparableInSubclass.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("inheritSetAndHashSet.kt")
|
||||
public void testInheritSetAndHashSet() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/classes/inheritSetAndHashSet.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("inheritance.kt")
|
||||
public void testInheritance() throws Exception {
|
||||
@@ -4293,12 +4185,6 @@ public class NativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenBoxT
|
||||
runTest("compiler/testData/codegen/box/classes/kt1018.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt1120.kt")
|
||||
public void testKt1120() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/classes/kt1120.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt1157.kt")
|
||||
public void testKt1157() throws Exception {
|
||||
@@ -5555,12 +5441,6 @@ public class NativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenBoxT
|
||||
runTest("compiler/testData/codegen/box/collections/internalRemove.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt41123.kt")
|
||||
public void testKt41123() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/collections/kt41123.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("removeClash.kt")
|
||||
public void testRemoveClash() throws Exception {
|
||||
@@ -6368,12 +6248,6 @@ public class NativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenBoxT
|
||||
runTest("compiler/testData/codegen/box/constants/long.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("numberLiteralCoercionToInferredType.kt")
|
||||
public void testNumberLiteralCoercionToInferredType() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/constants/numberLiteralCoercionToInferredType.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("privateConst.kt")
|
||||
public void testPrivateConst() throws Exception {
|
||||
@@ -10381,25 +10255,6 @@ public class NativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenBoxT
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/coroutines/localFunctions"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true);
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("compiler/testData/codegen/box/coroutines/localFunctions/anonymous")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@UseExtTestCaseGroupProvider()
|
||||
@UsePartialLinkage(mode = Mode.DISABLED)
|
||||
@Tag("no-partial-linkage-may-be-skipped")
|
||||
public class Anonymous {
|
||||
@Test
|
||||
public void testAllFilesPresentInAnonymous() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/coroutines/localFunctions/anonymous"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true);
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("simple.kt")
|
||||
public void testSimple() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/coroutines/localFunctions/anonymous/simple.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("compiler/testData/codegen/box/coroutines/localFunctions/named")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
|
||||
Generated
+11
-94
@@ -58,11 +58,6 @@ public class IrCodegenBoxWasmTestGenerated extends AbstractIrCodegenBoxWasmTest
|
||||
runTest("compiler/testData/codegen/box/annotations/nestedClassesInAnnotations.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("parameters.kt")
|
||||
public void testParameters() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/annotations/parameters.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("resolveWithLowPriorityAnnotation.kt")
|
||||
public void testResolveWithLowPriorityAnnotation() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/annotations/resolveWithLowPriorityAnnotation.kt");
|
||||
@@ -334,21 +329,6 @@ public class IrCodegenBoxWasmTestGenerated extends AbstractIrCodegenBoxWasmTest
|
||||
runTest("compiler/testData/codegen/box/arrays/arrayPlusAssign.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("arraysAreCloneable.kt")
|
||||
public void testArraysAreCloneable() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/arrays/arraysAreCloneable.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("cloneArray.kt")
|
||||
public void testCloneArray() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/arrays/cloneArray.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("clonePrimitiveArrays.kt")
|
||||
public void testClonePrimitiveArrays() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/arrays/clonePrimitiveArrays.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("collectionAssignGetMultiIndex.kt")
|
||||
public void testCollectionAssignGetMultiIndex() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/arrays/collectionAssignGetMultiIndex.kt");
|
||||
@@ -1069,9 +1049,9 @@ public class IrCodegenBoxWasmTestGenerated extends AbstractIrCodegenBoxWasmTest
|
||||
runTest("compiler/testData/codegen/box/boxingOptimization/casts.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("checkcastAndInstanceOf.kt")
|
||||
public void testCheckcastAndInstanceOf() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/boxingOptimization/checkcastAndInstanceOf.kt");
|
||||
@TestMetadata("checkcastAndInstanceOf2.kt")
|
||||
public void testCheckcastAndInstanceOf2() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/boxingOptimization/checkcastAndInstanceOf2.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("explicitEqualsOnDouble.kt")
|
||||
@@ -2272,11 +2252,6 @@ public class IrCodegenBoxWasmTestGenerated extends AbstractIrCodegenBoxWasmTest
|
||||
public void testReceiverInEquals() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/callableReference/bound/equals/receiverInEquals.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("reflectionReference.kt")
|
||||
public void testReflectionReference() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/callableReference/bound/equals/reflectionReference.kt");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2518,9 +2493,9 @@ public class IrCodegenBoxWasmTestGenerated extends AbstractIrCodegenBoxWasmTest
|
||||
runTest("compiler/testData/codegen/box/callableReference/function/extensionFromTopLevelUnitOneStringArg.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("genericCallableReferenceArguments.kt")
|
||||
public void testGenericCallableReferenceArguments() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/callableReference/function/genericCallableReferenceArguments.kt");
|
||||
@TestMetadata("genericCallableReferenceArgumentsNonJVM.kt")
|
||||
public void testGenericCallableReferenceArgumentsNonJVM() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/callableReference/function/genericCallableReferenceArgumentsNonJVM.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("genericCallableReferenceWithReifiedTypeParam.kt")
|
||||
@@ -2894,11 +2869,6 @@ public class IrCodegenBoxWasmTestGenerated extends AbstractIrCodegenBoxWasmTest
|
||||
runTest("compiler/testData/codegen/box/callableReference/property/kt15447.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt6870_privatePropertyReference.kt")
|
||||
public void testKt6870_privatePropertyReference() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/callableReference/property/kt6870_privatePropertyReference.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("listOfStringsMapLength.kt")
|
||||
public void testListOfStringsMapLength() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/callableReference/property/listOfStringsMapLength.kt");
|
||||
@@ -2991,21 +2961,11 @@ public class IrCodegenBoxWasmTestGenerated extends AbstractIrCodegenBoxWasmTest
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/casts"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.WASM, true);
|
||||
}
|
||||
|
||||
@TestMetadata("as.kt")
|
||||
public void testAs() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/casts/as.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("asForConstants.kt")
|
||||
public void testAsForConstants() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/casts/asForConstants.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("asSafe.kt")
|
||||
public void testAsSafe() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/casts/asSafe.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("asSafeFail.kt")
|
||||
public void testAsSafeFail() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/casts/asSafeFail.kt");
|
||||
@@ -3071,11 +3031,6 @@ public class IrCodegenBoxWasmTestGenerated extends AbstractIrCodegenBoxWasmTest
|
||||
runTest("compiler/testData/codegen/box/casts/intersectionTypeWithoutGenericsAsReceiver.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("is.kt")
|
||||
public void testIs() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/casts/is.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("isNullablePrimitive.kt")
|
||||
public void testIsNullablePrimitive() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/casts/isNullablePrimitive.kt");
|
||||
@@ -3126,11 +3081,6 @@ public class IrCodegenBoxWasmTestGenerated extends AbstractIrCodegenBoxWasmTest
|
||||
runTest("compiler/testData/codegen/box/casts/lambdaToUnitCast.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("notIs.kt")
|
||||
public void testNotIs() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/casts/notIs.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("nullableSafeCastToTypeParameterWithInterfaceUpperBound.kt")
|
||||
public void testNullableSafeCastToTypeParameterWithInterfaceUpperBound() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/casts/nullableSafeCastToTypeParameterWithInterfaceUpperBound.kt");
|
||||
@@ -3188,6 +3138,11 @@ public class IrCodegenBoxWasmTestGenerated extends AbstractIrCodegenBoxWasmTest
|
||||
runTest("compiler/testData/codegen/box/casts/functions/isFunKSmall.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("isFunKSmallNonJS.kt")
|
||||
public void testIsFunKSmallNonJS() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/casts/functions/isFunKSmallNonJS.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("reifiedAsFunKBig.kt")
|
||||
public void testReifiedAsFunKBig() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/casts/functions/reifiedAsFunKBig.kt");
|
||||
@@ -3451,11 +3406,6 @@ public class IrCodegenBoxWasmTestGenerated extends AbstractIrCodegenBoxWasmTest
|
||||
public void testAllFilesPresentInJava() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/classLiteral/java"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.WASM, true);
|
||||
}
|
||||
|
||||
@TestMetadata("kt11943.kt")
|
||||
public void testKt11943() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/classLiteral/java/kt11943.kt");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3566,11 +3516,6 @@ public class IrCodegenBoxWasmTestGenerated extends AbstractIrCodegenBoxWasmTest
|
||||
runTest("compiler/testData/codegen/box/classes/delegationGenericLongArg.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("delegationJava.kt")
|
||||
public void testDelegationJava() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/classes/delegationJava.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("delegationMethodsWithArgs.kt")
|
||||
public void testDelegationMethodsWithArgs() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/classes/delegationMethodsWithArgs.kt");
|
||||
@@ -3646,11 +3591,6 @@ public class IrCodegenBoxWasmTestGenerated extends AbstractIrCodegenBoxWasmTest
|
||||
runTest("compiler/testData/codegen/box/classes/kt1018.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt1120.kt")
|
||||
public void testKt1120() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/classes/kt1120.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt1157.kt")
|
||||
public void testKt1157() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/classes/kt1157.kt");
|
||||
@@ -4839,11 +4779,6 @@ public class IrCodegenBoxWasmTestGenerated extends AbstractIrCodegenBoxWasmTest
|
||||
runTest("compiler/testData/codegen/box/constants/long.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("numberLiteralCoercionToInferredType.kt")
|
||||
public void testNumberLiteralCoercionToInferredType() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/constants/numberLiteralCoercionToInferredType.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("privateConst.kt")
|
||||
public void testPrivateConst() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/constants/privateConst.kt");
|
||||
@@ -8261,24 +8196,6 @@ public class IrCodegenBoxWasmTestGenerated extends AbstractIrCodegenBoxWasmTest
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/coroutines/localFunctions"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.WASM, true);
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/codegen/box/coroutines/localFunctions/anonymous")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class Anonymous extends AbstractIrCodegenBoxWasmTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest0(this::doTest, TargetBackend.WASM, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInAnonymous() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/coroutines/localFunctions/anonymous"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.WASM, true);
|
||||
}
|
||||
|
||||
@TestMetadata("simple.kt")
|
||||
public void testSimple() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/coroutines/localFunctions/anonymous/simple.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/codegen/box/coroutines/localFunctions/named")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
|
||||
Reference in New Issue
Block a user