[JS BEs] Generate tests for whole "codegen/boxInline"
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
// TODO: inliner doesn't fix usesite of local object (likely for any local inlined class)
|
||||
// IGNORE_BACKEND: JS_IR
|
||||
// NO_CHECK_LAMBDA_INLINING
|
||||
// FILE: 1.kt
|
||||
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
// NO_CHECK_LAMBDA_INLINING
|
||||
// WITH_RUNTIME
|
||||
// KJS_WITH_FULL_RUNTIME
|
||||
// FILE: 1.kt
|
||||
package test
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// IGNORE_BACKEND: NATIVE
|
||||
// TARGET_BACKEND: JVM
|
||||
// FILE: 1.kt
|
||||
package test
|
||||
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// TARGET_BACKEND: JVM
|
||||
// FILE: 1.kt
|
||||
// FULL_JDK
|
||||
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// TARGET_BACKEND: JVM
|
||||
// FILE: 1.kt
|
||||
// FULL_JDK
|
||||
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// TARGET_BACKEND: JVM
|
||||
// FILE: 1.kt
|
||||
// FULL_JDK
|
||||
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// TARGET_BACKEND: JVM
|
||||
// FILE: 1.kt
|
||||
// FULL_JDK
|
||||
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// TARGET_BACKEND: JVM
|
||||
// FILE: 1.kt
|
||||
// FULL_JDK
|
||||
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// TARGET_BACKEND: JVM
|
||||
// FILE: 1.kt
|
||||
// FULL_JDK
|
||||
|
||||
|
||||
+1
@@ -1,3 +1,4 @@
|
||||
// IGNORE_BACKEND: JS
|
||||
// FILE: 1.kt
|
||||
|
||||
package test
|
||||
|
||||
+1
@@ -1,3 +1,4 @@
|
||||
// IGNORE_BACKEND: JS
|
||||
// FILE: 1.kt
|
||||
|
||||
package test
|
||||
|
||||
+1
@@ -1,3 +1,4 @@
|
||||
// IGNORE_BACKEND: JS
|
||||
// FILE: 1.kt
|
||||
|
||||
package test
|
||||
|
||||
Vendored
+1
@@ -1,3 +1,4 @@
|
||||
// IGNORE_BACKEND: JS
|
||||
// FILE: 1.kt
|
||||
|
||||
package test
|
||||
|
||||
@@ -13,26 +13,26 @@ import test.*
|
||||
|
||||
fun box(): String {
|
||||
var invokeOrder = "";
|
||||
val expectedResult = "1.0_0_1_9"
|
||||
val expectedResult = "1.4_0_1_9"
|
||||
val expectedInvokeOrder = "1_0_9"
|
||||
var l = 1L
|
||||
var i = 0
|
||||
val captured = 9L
|
||||
|
||||
var result = 1.0.test(b = {invokeOrder += "1_"; l}(), a = {invokeOrder+="0_"; i}(), c = {invokeOrder += "$captured"; "$captured"})
|
||||
var result = 1.4.test(b = {invokeOrder += "1_"; l}(), a = {invokeOrder+="0_"; i}(), c = {invokeOrder += "$captured"; "$captured"})
|
||||
if (invokeOrder != expectedInvokeOrder || result != expectedResult) return "fail 1: $invokeOrder != $expectedInvokeOrder or $result != $expectedResult"
|
||||
|
||||
invokeOrder = "";
|
||||
result = 1.0.test(b = {invokeOrder += "1_"; l}(), c = {invokeOrder += "${captured}"; "${captured}"}, a = {invokeOrder+="0_"; i}())
|
||||
result = 1.4.test(b = {invokeOrder += "1_"; l}(), c = {invokeOrder += "${captured}"; "${captured}"}, a = {invokeOrder+="0_"; i}())
|
||||
if (invokeOrder != expectedInvokeOrder || result != expectedResult) return "fail 2: $invokeOrder != $expectedInvokeOrder or $result != $expectedResult"
|
||||
|
||||
|
||||
invokeOrder = "";
|
||||
result = 1.0.test(c = {invokeOrder += "${captured}"; "${captured}"}, b = {invokeOrder += "1_"; l}(), a = {invokeOrder+="0_"; i}())
|
||||
result = 1.4.test(c = {invokeOrder += "${captured}"; "${captured}"}, b = {invokeOrder += "1_"; l}(), a = {invokeOrder+="0_"; i}())
|
||||
if (invokeOrder != expectedInvokeOrder || result != expectedResult) return "fail 3: $invokeOrder != $expectedInvokeOrder or $result != $expectedResult"
|
||||
|
||||
invokeOrder = "";
|
||||
result = 1.0.test(a = {invokeOrder+="0_"; i}(), c = {invokeOrder += "${captured}"; "${captured}"}, b = {invokeOrder += "1_"; l}())
|
||||
result = 1.4.test(a = {invokeOrder+="0_"; i}(), c = {invokeOrder += "${captured}"; "${captured}"}, b = {invokeOrder += "1_"; l}())
|
||||
if (invokeOrder != "0_1_9" || result != expectedResult) return "fail 4: $invokeOrder != 0_1_9 or $result != $expectedResult"
|
||||
|
||||
return "OK"
|
||||
|
||||
+3
@@ -1,7 +1,10 @@
|
||||
// !LANGUAGE: -NewInference
|
||||
// IGNORE_BACKEND: JS
|
||||
// NO_CHECK_LAMBDA_INLINING
|
||||
// FILE: 1.kt
|
||||
// WITH_RUNTIME
|
||||
// KJS_WITH_FULL_RUNTIME
|
||||
|
||||
package test
|
||||
|
||||
open class A(val value: String)
|
||||
|
||||
@@ -13,26 +13,26 @@ import test.*
|
||||
|
||||
fun box(): String {
|
||||
var invokeOrder = "";
|
||||
val expectedResult = "1.0_0_1_L"
|
||||
val expectedResult = "1.9_0_1_L"
|
||||
val expectedInvokeOrder = "1_0_L"
|
||||
var l = 1L
|
||||
var i = 0
|
||||
|
||||
var result = 1.0.test(b = {invokeOrder += "1_"; l}(), a = {invokeOrder+="0_"; i}(), c = {invokeOrder += "L"; "L"})
|
||||
var result = 1.9.test(b = {invokeOrder += "1_"; l}(), a = {invokeOrder+="0_"; i}(), c = {invokeOrder += "L"; "L"})
|
||||
if (invokeOrder != expectedInvokeOrder || result != expectedResult) return "fail 1: $invokeOrder != $expectedInvokeOrder or $result != $expectedResult"
|
||||
|
||||
invokeOrder = "";
|
||||
result = 1.0.test(b = {invokeOrder += "1_"; l}(), c = {invokeOrder += "L"; "L"}, a = {invokeOrder+="0_"; i}())
|
||||
result = 1.9.test(b = {invokeOrder += "1_"; l}(), c = {invokeOrder += "L"; "L"}, a = {invokeOrder+="0_"; i}())
|
||||
if (invokeOrder != expectedInvokeOrder || result != expectedResult) return "fail 2: $invokeOrder != $expectedInvokeOrder or $result != $expectedResult"
|
||||
|
||||
|
||||
invokeOrder = "";
|
||||
result = 1.0.test(c = {invokeOrder += "L"; "L"}, b = {invokeOrder += "1_"; l}(), a = {invokeOrder+="0_"; i}())
|
||||
result = 1.9.test(c = {invokeOrder += "L"; "L"}, b = {invokeOrder += "1_"; l}(), a = {invokeOrder+="0_"; i}())
|
||||
if (invokeOrder != expectedInvokeOrder || result != expectedResult) return "fail 3: $invokeOrder != $expectedInvokeOrder or $result != $expectedResult"
|
||||
|
||||
|
||||
invokeOrder = "";
|
||||
result = 1.0.test(a = {invokeOrder+="0_"; i}(), c = {invokeOrder += "L"; "L"}, b = {invokeOrder += "1_"; l}())
|
||||
result = 1.9.test(a = {invokeOrder+="0_"; i}(), c = {invokeOrder += "L"; "L"}, b = {invokeOrder += "1_"; l}())
|
||||
if (invokeOrder != "0_1_L" || result != expectedResult) return "fail 4: $invokeOrder != 0_1_L or $result != $expectedResult"
|
||||
|
||||
return "OK"
|
||||
|
||||
@@ -16,26 +16,26 @@ import test.*
|
||||
fun box(): String {
|
||||
with (Z()) {
|
||||
var invokeOrder = "";
|
||||
val expectedResult = "1.0_0_1_L"
|
||||
val expectedResult = "1.9_0_1_L"
|
||||
val expectedInvokeOrder = "1_0_L"
|
||||
var l = 1L
|
||||
var i = 0
|
||||
|
||||
var result = 1.0.test(b = { invokeOrder += "1_"; l }(), a = { invokeOrder += "0_"; i }(), c = { invokeOrder += "L"; "L" })
|
||||
var result = 1.9.test(b = { invokeOrder += "1_"; l }(), a = { invokeOrder += "0_"; i }(), c = { invokeOrder += "L"; "L" })
|
||||
if (invokeOrder != expectedInvokeOrder || result != expectedResult) return "fail 1: $invokeOrder != $expectedInvokeOrder or $result != $expectedResult"
|
||||
|
||||
invokeOrder = "";
|
||||
result = 1.0.test(b = { invokeOrder += "1_"; l }(), c = { invokeOrder += "L"; "L" }, a = { invokeOrder += "0_"; i }())
|
||||
result = 1.9.test(b = { invokeOrder += "1_"; l }(), c = { invokeOrder += "L"; "L" }, a = { invokeOrder += "0_"; i }())
|
||||
if (invokeOrder != expectedInvokeOrder || result != expectedResult) return "fail 2: $invokeOrder != $expectedInvokeOrder or $result != $expectedResult"
|
||||
|
||||
|
||||
invokeOrder = "";
|
||||
result = 1.0.test(c = { invokeOrder += "L"; "L" }, b = { invokeOrder += "1_"; l }(), a = { invokeOrder += "0_"; i }())
|
||||
result = 1.9.test(c = { invokeOrder += "L"; "L" }, b = { invokeOrder += "1_"; l }(), a = { invokeOrder += "0_"; i }())
|
||||
if (invokeOrder != expectedInvokeOrder || result != expectedResult) return "fail 3: $invokeOrder != $expectedInvokeOrder or $result != $expectedResult"
|
||||
|
||||
|
||||
invokeOrder = "";
|
||||
result = 1.0.test(a = { invokeOrder += "0_"; i }(), c = { invokeOrder += "L"; "L" }, b = { invokeOrder += "1_"; l }())
|
||||
result = 1.9.test(a = { invokeOrder += "0_"; i }(), c = { invokeOrder += "L"; "L" }, b = { invokeOrder += "1_"; l }())
|
||||
if (invokeOrder != "0_1_L" || result != expectedResult) return "fail 4: $invokeOrder != 0_1_L or $result != $expectedResult"
|
||||
}
|
||||
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// IGNORE_BACKEND: JS
|
||||
// NO_CHECK_LAMBDA_INLINING
|
||||
// FILE: 1.kt
|
||||
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// IGNORE_BACKEND: JS
|
||||
// NO_CHECK_LAMBDA_INLINING
|
||||
// FILE: 1.kt
|
||||
|
||||
|
||||
+2
@@ -1,9 +1,11 @@
|
||||
// !LANGUAGE: -NewInference
|
||||
// IGNORE_BACKEND: JVM_IR
|
||||
// IGNORE_BACKEND: JS, JS_IR
|
||||
// IGNORE_BACKEND_MULTI_MODULE: JVM_IR
|
||||
// NO_CHECK_LAMBDA_INLINING
|
||||
// FILE: 1.kt
|
||||
// WITH_RUNTIME
|
||||
// KJS_WITH_FULL_RUNTIME
|
||||
// IGNORE_BACKEND: NATIVE
|
||||
package test
|
||||
|
||||
|
||||
+1
@@ -1,3 +1,4 @@
|
||||
// TARGET_BACKEND: JVM
|
||||
// FILE: inline.kt
|
||||
// KOTLIN_CONFIGURATION_FLAGS: ASSERTIONS_MODE=jvm
|
||||
// WITH_RUNTIME
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
// Not a multi-module test.
|
||||
// TARGET_BACKEND: JVM
|
||||
// IGNORE_BACKEND_MULTI_MODULE: JVM, JVM_IR
|
||||
// FILE: A.kt
|
||||
// KOTLIN_CONFIGURATION_FLAGS: ASSERTIONS_MODE=jvm
|
||||
|
||||
@@ -15,68 +15,68 @@ fun testAll(): String {
|
||||
|
||||
return inlineX.inline({ a1: Int, a2: Double, a3: Double, a4: String, a5: Long ->
|
||||
"" + a1 + a2 + a3 + a4 + a5},
|
||||
1, 12.0, 13.0, "14", 15)
|
||||
1, 12.9, 13.9, "14", 15)
|
||||
}
|
||||
|
||||
fun testAllWithCapturedVal(): String {
|
||||
val inlineX = InlineAll()
|
||||
|
||||
val c1 = 21
|
||||
val c2 = 22.0
|
||||
val c3 = 23.0
|
||||
val c2 = 22.9
|
||||
val c3 = 23.9
|
||||
val c4 = "24"
|
||||
val c5 = 25.toLong()
|
||||
val c6 = 'H'
|
||||
val c7 = 26.toByte()
|
||||
val c8 = 27.toShort()
|
||||
val c9 = 28.toFloat()
|
||||
val c9 = 28.toFloat() + 0.3
|
||||
|
||||
return inlineX.inline({ a1: Int, a2: Double, a3: Double, a4: String, a5: Long ->
|
||||
"" + a1 + a2 + a3 + a4 + a5 + c1 + c2 + c3 + c4 + c5 + c6 + c7 + c8 + c9},
|
||||
1, 12.0, 13.0, "14", 15)
|
||||
1, 12.9, 13.9, "14", 15)
|
||||
}
|
||||
|
||||
fun testAllWithCapturedVar(): String {
|
||||
val inlineX = InlineAll()
|
||||
|
||||
var c1 = 21
|
||||
var c2 = 22.0
|
||||
var c3 = 23.0
|
||||
var c2 = 22.9
|
||||
var c3 = 23.9
|
||||
var c4 = "24"
|
||||
var c5 = 25.toLong()
|
||||
var c6 = 'H'
|
||||
var c7 = 26.toByte()
|
||||
var c8 = 27.toShort()
|
||||
val c9 = 28.toFloat()
|
||||
val c9 = 28.toFloat() + 0.3
|
||||
|
||||
return inlineX.inline({ a1: Int, a2: Double, a3: Double, a4: String, a5: Long ->
|
||||
"" + a1 + a2 + a3 + a4 + a5 + c1 + c2 + c3 + c4 + c5 + c6 + c7 + c8 + c9},
|
||||
1, 12.0, 13.0, "14", 15)
|
||||
1, 12.9, 13.9, "14", 15)
|
||||
}
|
||||
|
||||
fun testAllWithCapturedValAndVar(): String {
|
||||
val inlineX = InlineAll()
|
||||
|
||||
var c1 = 21
|
||||
var c2 = 22.0
|
||||
val c3 = 23.0
|
||||
var c2 = 22.9
|
||||
val c3 = 23.9
|
||||
val c4 = "24"
|
||||
var c5 = 25.toLong()
|
||||
val c6 = 'H'
|
||||
var c7 = 26.toByte()
|
||||
var c8 = 27.toShort()
|
||||
val c9 = 28.toFloat()
|
||||
val c9 = 28.toFloat() + 0.3
|
||||
|
||||
return inlineX.inline({ a1: Int, a2: Double, a3: Double, a4: String, a5: Long ->
|
||||
"" + a1 + a2 + a3 + a4 + a5 + c1 + c2 + c3 + c4 + c5 + c6 + c7 + c8 + c9},
|
||||
1, 12.0, 13.0, "14", 15)
|
||||
1, 12.9, 13.9, "14", 15)
|
||||
}
|
||||
|
||||
|
||||
fun box(): String {
|
||||
if (testAll() != "112.013.01415") return "testAll: ${testAll()}"
|
||||
if (testAllWithCapturedVal() != "112.013.014152122.023.02425H262728.0") return "testAllWithCapturedVal: ${testAllWithCapturedVal()}"
|
||||
if (testAllWithCapturedVar() != "112.013.014152122.023.02425H262728.0") return "testAllWithCapturedVar: ${testAllWithCapturedVar()}"
|
||||
if (testAllWithCapturedValAndVar() != "112.013.014152122.023.02425H262728.0") return "testAllWithCapturedVal: ${testAllWithCapturedValAndVar()}"
|
||||
if (testAll() != "112.913.91415") return "testAll: ${testAll()}"
|
||||
if (testAllWithCapturedVal() != "112.913.914152122.923.92425H262728.3") return "testAllWithCapturedVal: ${testAllWithCapturedVal()}"
|
||||
if (testAllWithCapturedVar() != "112.913.914152122.923.92425H262728.3") return "testAllWithCapturedVar: ${testAllWithCapturedVar()}"
|
||||
if (testAllWithCapturedValAndVar() != "112.913.914152122.923.92425H262728.3") return "testAllWithCapturedVal: ${testAllWithCapturedValAndVar()}"
|
||||
return "OK"
|
||||
}
|
||||
|
||||
@@ -10,62 +10,62 @@ inline fun inline(s: (Int, Double, Double, String, Long) -> String,
|
||||
fun testAll(): String {
|
||||
return inline({ a1: Int, a2: Double, a3: Double, a4: String, a5: Long ->
|
||||
"" + a1 + a2 + a3 + a4 + a5},
|
||||
1, 12.0, 13.0, "14", 15)
|
||||
1, 12.9, 13.9, "14", 15)
|
||||
}
|
||||
|
||||
fun testAllWithCapturedVal(): String {
|
||||
val c1 = 21
|
||||
val c2 = 22.0
|
||||
val c3 = 23.0
|
||||
val c2 = 22.9
|
||||
val c3 = 23.9
|
||||
val c4 = "24"
|
||||
val c5 = 25.toLong()
|
||||
val c6 = 'H'
|
||||
val c7 = 26.toByte()
|
||||
val c8 = 27.toShort()
|
||||
val c9 = 28.toFloat()
|
||||
val c9 = 28.toFloat() + 0.3
|
||||
|
||||
return inline({ a1: Int, a2: Double, a3: Double, a4: String, a5: Long ->
|
||||
"" + a1 + a2 + a3 + a4 + a5 + c1 + c2 + c3 + c4 + c5 + c6 + c7 + c8 + c9},
|
||||
1, 12.0, 13.0, "14", 15)
|
||||
1, 12.9, 13.9, "14", 15)
|
||||
}
|
||||
|
||||
fun testAllWithCapturedVar(): String {
|
||||
var c1 = 21
|
||||
var c2 = 22.0
|
||||
var c3 = 23.0
|
||||
var c2 = 22.9
|
||||
var c3 = 23.9
|
||||
var c4 = "24"
|
||||
var c5 = 25.toLong()
|
||||
var c6 = 'H'
|
||||
var c7 = 26.toByte()
|
||||
var c8 = 27.toShort()
|
||||
val c9 = 28.toFloat()
|
||||
val c9 = 28.toFloat() + 0.3
|
||||
|
||||
return inline({ a1: Int, a2: Double, a3: Double, a4: String, a5: Long ->
|
||||
"" + a1 + a2 + a3 + a4 + a5 + c1 + c2 + c3 + c4 + c5 + c6 + c7 + c8 + c9},
|
||||
1, 12.0, 13.0, "14", 15)
|
||||
1, 12.9, 13.9, "14", 15)
|
||||
}
|
||||
|
||||
fun testAllWithCapturedValAndVar(): String {
|
||||
var c1 = 21
|
||||
var c2 = 22.0
|
||||
val c3 = 23.0
|
||||
var c2 = 22.9
|
||||
val c3 = 23.9
|
||||
val c4 = "24"
|
||||
var c5 = 25.toLong()
|
||||
val c6 = 'H'
|
||||
var c7 = 26.toByte()
|
||||
var c8 = 27.toShort()
|
||||
val c9 = 28.toFloat()
|
||||
val c9 = 28.toFloat() + 0.3
|
||||
|
||||
return inline({ a1: Int, a2: Double, a3: Double, a4: String, a5: Long ->
|
||||
"" + a1 + a2 + a3 + a4 + a5 + c1 + c2 + c3 + c4 + c5 + c6 + c7 + c8 + c9},
|
||||
1, 12.0, 13.0, "14", 15)
|
||||
1, 12.9, 13.9, "14", 15)
|
||||
}
|
||||
|
||||
|
||||
fun box(): String {
|
||||
if (testAll() != "112.013.01415") return "testAll: ${testAll()}"
|
||||
if (testAllWithCapturedVal() != "112.013.014152122.023.02425H262728.0") return "testAllWithCapturedVal: ${testAllWithCapturedVal()}"
|
||||
if (testAllWithCapturedVar() != "112.013.014152122.023.02425H262728.0") return "testAllWithCapturedVar: ${testAllWithCapturedVar()}"
|
||||
if (testAllWithCapturedValAndVar() != "112.013.014152122.023.02425H262728.0") return "testAllWithCapturedVal: ${testAllWithCapturedValAndVar()}"
|
||||
if (testAll() != "112.913.91415") return "testAll: ${testAll()}"
|
||||
if (testAllWithCapturedVal() != "112.913.914152122.923.92425H262728.3") return "testAllWithCapturedVal: ${testAllWithCapturedVal()}"
|
||||
if (testAllWithCapturedVar() != "112.913.914152122.923.92425H262728.3") return "testAllWithCapturedVar: ${testAllWithCapturedVar()}"
|
||||
if (testAllWithCapturedValAndVar() != "112.913.914152122.923.92425H262728.3") return "testAllWithCapturedVal: ${testAllWithCapturedValAndVar()}"
|
||||
return "OK"
|
||||
}
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
// FILE: 1.kt
|
||||
// WITH_RUNTIME
|
||||
// KJS_WITH_FULL_RUNTIME
|
||||
package test
|
||||
|
||||
object ContentTypeByExtension {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// IGNORE_BACKEND: NATIVE
|
||||
// TARGET_BACKEND: JVM
|
||||
// FILE: 1.kt
|
||||
// WITH_RUNTIME
|
||||
package test
|
||||
|
||||
compiler/testData/codegen/boxInline/multiplatform/defaultArguments/receiversAndParametersInLambda.kt
Vendored
+3
@@ -1,5 +1,8 @@
|
||||
// !LANGUAGE: +MultiPlatformProjects
|
||||
// NO_CHECK_LAMBDA_INLINING
|
||||
// TODO: replace all references on expected declarations and their members to actuals,
|
||||
// otherwise DCE keeps members of expect D referenced from lambdas in default arguments instead of members of actual D
|
||||
// IGNORE_BACKEND: JS, JS_IR
|
||||
|
||||
// FILE: 1.kt
|
||||
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// IGNORE_BACKEND: JS
|
||||
// FILE: 1.kt
|
||||
// WITH_RUNTIME
|
||||
package test
|
||||
@@ -42,9 +43,6 @@ inline fun failClassCast(s: () -> Unit) {
|
||||
try {
|
||||
s()
|
||||
}
|
||||
catch (e: TypeCastException) {
|
||||
throw e
|
||||
}
|
||||
catch (e: ClassCastException) {
|
||||
|
||||
}
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
// TODO: Reified generics required some design to unify behavior across all backends
|
||||
// IGNORE_BACKEND: JS, JS_IR
|
||||
// FILE: 1.kt
|
||||
// WITH_RUNTIME
|
||||
package test
|
||||
|
||||
@@ -34,22 +34,10 @@ fun box(): String {
|
||||
return "OK"
|
||||
}
|
||||
|
||||
inline fun failTypeCast(s: () -> Unit) {
|
||||
try {
|
||||
s()
|
||||
}
|
||||
catch (e: TypeCastException) {
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
inline fun failClassCast(s: () -> Unit) {
|
||||
try {
|
||||
s()
|
||||
}
|
||||
catch (e: TypeCastException) {
|
||||
throw e
|
||||
}
|
||||
catch (e: ClassCastException) {
|
||||
|
||||
}
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
// TODO: Reified generics required some design to unify behavior across all backends
|
||||
// IGNORE_BACKEND: JS, JS_IR
|
||||
// FILE: 1.kt
|
||||
// WITH_RUNTIME
|
||||
package test
|
||||
@@ -47,9 +49,6 @@ inline fun failClassCast(s: () -> Unit) {
|
||||
try {
|
||||
s()
|
||||
}
|
||||
catch (e: TypeCastException) {
|
||||
throw e
|
||||
}
|
||||
catch (e: ClassCastException) {
|
||||
// OK
|
||||
}
|
||||
|
||||
@@ -34,22 +34,10 @@ fun box(): String {
|
||||
return "OK"
|
||||
}
|
||||
|
||||
inline fun failTypeCast(s: () -> Unit) {
|
||||
try {
|
||||
s()
|
||||
}
|
||||
catch (e: TypeCastException) {
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
inline fun failClassCast(s: () -> Unit) {
|
||||
try {
|
||||
s()
|
||||
}
|
||||
catch (e: TypeCastException) {
|
||||
throw e
|
||||
}
|
||||
catch (e: ClassCastException) {
|
||||
|
||||
}
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
// !API_VERSION: 1.3
|
||||
// TARGET_BACKEND: JVM
|
||||
// FILE: 1.kt
|
||||
// WITH_RUNTIME
|
||||
package test
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// IGNORE_BACKEND: JS
|
||||
// FILE: 1.kt
|
||||
|
||||
package test
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
// FILE: 1.kt
|
||||
// WITH_REFLECT
|
||||
// IGNORE_BACKEND: JS, JS_IR
|
||||
|
||||
package foo
|
||||
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// IGNORE_BACKEND: JS
|
||||
// FILE: 1.kt
|
||||
|
||||
package test
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
// WITH_RUNTIME
|
||||
// KJS_WITH_FULL_RUNTIME
|
||||
// FILE: 1.kt
|
||||
package test
|
||||
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
// FILE: 1.kt
|
||||
// WITH_RUNTIME
|
||||
// KJS_WITH_FULL_RUNTIME
|
||||
package test
|
||||
|
||||
inline fun doSmth(vararg a: String) : String {
|
||||
|
||||
+17
-16
@@ -1,3 +1,4 @@
|
||||
// IGNORE_BACKEND: JS
|
||||
// IGNORE_BACKEND_MULTI_MODULE: JVM_IR
|
||||
// FILE: 1.kt
|
||||
// SKIP_INLINE_CHECK_IN: lParams$default
|
||||
@@ -52,8 +53,8 @@ Kotlin
|
||||
+ 1 1.kt
|
||||
test/_1Kt
|
||||
*L
|
||||
1#1,39:1
|
||||
35#1,2:40
|
||||
1#1,40:1
|
||||
36#1,2:41
|
||||
*E
|
||||
|
||||
SMAP
|
||||
@@ -66,15 +67,15 @@ test/_1Kt$lParams$1
|
||||
+ 2 1.kt
|
||||
test/_1Kt
|
||||
*L
|
||||
1#1,39:1
|
||||
30#2:40
|
||||
1#1,40:1
|
||||
31#2:41
|
||||
*E
|
||||
*S KotlinDebug
|
||||
*F
|
||||
+ 1 1.kt
|
||||
test/_1Kt$lParams$1
|
||||
*L
|
||||
33#1:40
|
||||
34#1:41
|
||||
*E
|
||||
|
||||
SMAP
|
||||
@@ -87,8 +88,8 @@ test/_1Kt$kValue$1
|
||||
+ 2 1.kt
|
||||
test/_1Kt$lParams$1
|
||||
*L
|
||||
1#1,39:1
|
||||
33#2:40
|
||||
1#1,40:1
|
||||
34#2:41
|
||||
*E
|
||||
|
||||
SMAP
|
||||
@@ -99,7 +100,7 @@ Kotlin
|
||||
+ 1 1.kt
|
||||
test/_1Kt$kValue$1
|
||||
*L
|
||||
1#1,39:1
|
||||
1#1,40:1
|
||||
*E
|
||||
|
||||
// FILE: 2.smap-nonseparate-compilation
|
||||
@@ -117,9 +118,9 @@ test/_1Kt
|
||||
test/_1Kt$lParams$1
|
||||
*L
|
||||
1#1,8:1
|
||||
32#2,5:9
|
||||
30#2:15
|
||||
33#3:14
|
||||
33#2,5:9
|
||||
31#2:15
|
||||
34#3:14
|
||||
*E
|
||||
*S KotlinDebug
|
||||
*F
|
||||
@@ -146,9 +147,9 @@ test/_1Kt
|
||||
test/_1Kt$lParams$1
|
||||
*L
|
||||
1#1,8:1
|
||||
32#2,5:9
|
||||
30#2:15
|
||||
33#3:14
|
||||
33#2,5:9
|
||||
31#2:15
|
||||
34#3:14
|
||||
*E
|
||||
*S KotlinDebug
|
||||
*F
|
||||
@@ -170,6 +171,6 @@ test/_1Kt$kValue$1
|
||||
+ 2 1.kt
|
||||
test/_1Kt$lParams$1
|
||||
*L
|
||||
1#1,39:1
|
||||
33#2:40
|
||||
1#1,40:1
|
||||
34#2:41
|
||||
*E
|
||||
+17
-16
@@ -1,3 +1,4 @@
|
||||
// IGNORE_BACKEND: JS
|
||||
// IGNORE_BACKEND_MULTI_MODULE: JVM_IR
|
||||
// FILE: 1.kt
|
||||
// SKIP_INLINE_CHECK_IN: lParams$default
|
||||
@@ -54,8 +55,8 @@ Kotlin
|
||||
+ 1 1.kt
|
||||
test/_1Kt
|
||||
*L
|
||||
1#1,39:1
|
||||
35#1,2:40
|
||||
1#1,40:1
|
||||
36#1,2:41
|
||||
*E
|
||||
|
||||
SMAP
|
||||
@@ -68,15 +69,15 @@ test/_1Kt$lParams$1
|
||||
+ 2 1.kt
|
||||
test/_1Kt
|
||||
*L
|
||||
1#1,39:1
|
||||
30#2:40
|
||||
1#1,40:1
|
||||
31#2:41
|
||||
*E
|
||||
*S KotlinDebug
|
||||
*F
|
||||
+ 1 1.kt
|
||||
test/_1Kt$lParams$1
|
||||
*L
|
||||
33#1:40
|
||||
34#1:41
|
||||
*E
|
||||
|
||||
SMAP
|
||||
@@ -89,8 +90,8 @@ test/_1Kt$kValue$1
|
||||
+ 2 1.kt
|
||||
test/_1Kt$lParams$1
|
||||
*L
|
||||
1#1,39:1
|
||||
33#2:40
|
||||
1#1,40:1
|
||||
34#2:41
|
||||
*E
|
||||
|
||||
SMAP
|
||||
@@ -101,7 +102,7 @@ Kotlin
|
||||
+ 1 1.kt
|
||||
test/_1Kt$kValue$1
|
||||
*L
|
||||
1#1,39:1
|
||||
1#1,40:1
|
||||
*E
|
||||
|
||||
// FILE: 2.smap-nonseparate-compilation
|
||||
@@ -119,9 +120,9 @@ test/_1Kt
|
||||
test/_1Kt$lParams$1
|
||||
*L
|
||||
1#1,10:1
|
||||
32#2,5:11
|
||||
30#2:17
|
||||
33#3:16
|
||||
33#2,5:11
|
||||
31#2:17
|
||||
34#3:16
|
||||
*E
|
||||
*S KotlinDebug
|
||||
*F
|
||||
@@ -147,9 +148,9 @@ test/_1Kt
|
||||
test/_1Kt$lParams$1
|
||||
*L
|
||||
1#1,10:1
|
||||
32#2,5:11
|
||||
30#2:17
|
||||
33#3:16
|
||||
33#2,5:11
|
||||
31#2:17
|
||||
34#3:16
|
||||
*E
|
||||
*S KotlinDebug
|
||||
*F
|
||||
@@ -171,6 +172,6 @@ test/_1Kt$kValue$1
|
||||
+ 2 1.kt
|
||||
test/_1Kt$lParams$1
|
||||
*L
|
||||
1#1,39:1
|
||||
33#2:40
|
||||
1#1,40:1
|
||||
34#2:41
|
||||
*E
|
||||
@@ -1,5 +1,6 @@
|
||||
// FILE: 1.kt
|
||||
// WITH_RUNTIME
|
||||
// KJS_WITH_FULL_RUNTIME
|
||||
package test
|
||||
inline fun stub() {
|
||||
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// IGNORE_BACKEND: JS
|
||||
// FILE: 1.kt
|
||||
inline fun run(f: () -> Unit) = f()
|
||||
inline fun withAny(f: Any.() -> Unit) = Any().f()
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// IGNORE_BACKEND: JS
|
||||
// FILE: 1.kt
|
||||
inline fun run(f: () -> Unit) = f()
|
||||
inline fun withAny(f: Any.() -> Unit) = Any().f()
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// IGNORE_BACKEND: JS
|
||||
// FILE: 1.kt
|
||||
inline fun run(f: () -> Unit) = f()
|
||||
inline fun withAny(f: Any.() -> Unit) = Any().f()
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
// FILE: 1.kt
|
||||
// WITH_RUNTIME
|
||||
// KJS_WITH_FULL_RUNTIME
|
||||
|
||||
class My(val value: Int)
|
||||
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
// FILE: 1.kt
|
||||
// WITH_RUNTIME
|
||||
// KJS_WITH_FULL_RUNTIME
|
||||
|
||||
class My(val value: Int)
|
||||
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
// FILE: 1.kt
|
||||
// WITH_RUNTIME
|
||||
// KJS_WITH_FULL_RUNTIME
|
||||
|
||||
class My(val value: Int)
|
||||
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
// FILE: 1.kt
|
||||
// WITH_RUNTIME
|
||||
// KJS_WITH_FULL_RUNTIME
|
||||
|
||||
package test
|
||||
inline fun inlineFun(vararg constraints: String, receiver: String = "K", init: String.() -> String): String {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2010-2018 JetBrains s.r.o. and Kotlin Programming Language contributors.
|
||||
* Copyright 2010-2020 JetBrains s.r.o. and Kotlin Programming Language contributors.
|
||||
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
|
||||
*/
|
||||
|
||||
@@ -7,7 +7,6 @@ package org.jetbrains.kotlin.generators.tests
|
||||
|
||||
import org.jetbrains.kotlin.generators.tests.generator.testGroup
|
||||
import org.jetbrains.kotlin.js.test.AbstractDceTest
|
||||
import org.jetbrains.kotlin.js.test.ir.semantics.AbstractIrJsTypeScriptExportTest
|
||||
import org.jetbrains.kotlin.js.test.AbstractJsLineNumberTest
|
||||
import org.jetbrains.kotlin.js.test.ir.semantics.*
|
||||
import org.jetbrains.kotlin.js.test.semantics.*
|
||||
@@ -67,80 +66,16 @@ fun main(args: Array<String>) {
|
||||
model("codegen/box", targetBackend = TargetBackend.JS_IR)
|
||||
}
|
||||
|
||||
testClass<AbstractNonLocalReturnsTest> {
|
||||
model("codegen/boxInline/nonLocalReturns/", targetBackend = TargetBackend.JS)
|
||||
testClass<AbstractJsCodegenInlineTest> {
|
||||
model("codegen/boxInline/", targetBackend = TargetBackend.JS)
|
||||
}
|
||||
|
||||
testClass<AbstractIrNonLocalReturnsTest> {
|
||||
model("codegen/boxInline/nonLocalReturns/", targetBackend = TargetBackend.JS_IR)
|
||||
}
|
||||
|
||||
testClass<AbstractPropertyAccessorsInlineTests> {
|
||||
model("codegen/boxInline/property/", targetBackend = TargetBackend.JS)
|
||||
}
|
||||
|
||||
testClass<AbstractIrPropertyAccessorsInlineTests> {
|
||||
model("codegen/boxInline/property/", targetBackend = TargetBackend.JS_IR)
|
||||
}
|
||||
|
||||
testClass<AbstractNoInlineTests> {
|
||||
model("codegen/boxInline/noInline/", targetBackend = TargetBackend.JS)
|
||||
}
|
||||
|
||||
testClass<AbstractIrNoInlineTests> {
|
||||
model("codegen/boxInline/noInline/", targetBackend = TargetBackend.JS_IR)
|
||||
}
|
||||
|
||||
testClass<AbstractCallableReferenceInlineTests> {
|
||||
model("codegen/boxInline/callableReference/", targetBackend = TargetBackend.JS)
|
||||
}
|
||||
|
||||
testClass<AbstractIrCallableReferenceInlineTests> {
|
||||
model("codegen/boxInline/callableReference/", targetBackend = TargetBackend.JS_IR)
|
||||
}
|
||||
|
||||
testClass<AbstractEnumValuesInlineTests> {
|
||||
model("codegen/boxInline/enum/", targetBackend = TargetBackend.JS)
|
||||
}
|
||||
|
||||
testClass<AbstractIrEnumValuesInlineTests> {
|
||||
model("codegen/boxInline/enum/", targetBackend = TargetBackend.JS_IR)
|
||||
}
|
||||
|
||||
testClass<AbstractInlineDefaultValuesTests> {
|
||||
model("codegen/boxInline/defaultValues/", targetBackend = TargetBackend.JS)
|
||||
}
|
||||
|
||||
testClass<AbstractIrInlineDefaultValuesTests> {
|
||||
model("codegen/boxInline/defaultValues/", targetBackend = TargetBackend.JS_IR)
|
||||
}
|
||||
|
||||
testClass<AbstractInlineSuspendTests> {
|
||||
model("codegen/boxInline/suspend/", targetBackend = TargetBackend.JS)
|
||||
}
|
||||
|
||||
testClass<AbstractIrInlineSuspendTests> {
|
||||
model("codegen/boxInline/suspend/", targetBackend = TargetBackend.JS_IR)
|
||||
}
|
||||
|
||||
testClass<AbstractJsInlineContractsTests> {
|
||||
model("codegen/boxInline/contracts/", targetBackend = TargetBackend.JS)
|
||||
}
|
||||
|
||||
testClass<AbstractIrJsInlineContractsTests> {
|
||||
model("codegen/boxInline/contracts/", targetBackend = TargetBackend.JS_IR)
|
||||
testClass<AbstractIrJsCodegenInlineTest> {
|
||||
model("codegen/boxInline/", targetBackend = TargetBackend.JS_IR)
|
||||
}
|
||||
|
||||
testClass<AbstractJsLegacyPrimitiveArraysBoxTest> {
|
||||
model("codegen/box/arrays", targetBackend = TargetBackend.JS)
|
||||
}
|
||||
|
||||
testClass<AbstractJsInlineMultiModuleTests> {
|
||||
model("codegen/boxInline/multiModule/", targetBackend = TargetBackend.JS)
|
||||
}
|
||||
|
||||
testClass<AbstractIrJsInlineMultiModuleTests> {
|
||||
model("codegen/boxInline/multiModule/", targetBackend = TargetBackend.JS_IR)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
-229
@@ -1,229 +0,0 @@
|
||||
/*
|
||||
* Copyright 2010-2020 JetBrains s.r.o. and Kotlin Programming Language contributors.
|
||||
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
|
||||
*/
|
||||
|
||||
package org.jetbrains.kotlin.js.test.ir.semantics;
|
||||
|
||||
import com.intellij.testFramework.TestDataPath;
|
||||
import org.jetbrains.kotlin.test.JUnit3RunnerWithInners;
|
||||
import org.jetbrains.kotlin.test.KotlinTestUtils;
|
||||
import org.jetbrains.kotlin.test.TargetBackend;
|
||||
import org.jetbrains.kotlin.test.TestMetadata;
|
||||
import org.junit.runner.RunWith;
|
||||
|
||||
import java.io.File;
|
||||
import java.util.regex.Pattern;
|
||||
|
||||
/** This class is generated by {@link org.jetbrains.kotlin.generators.tests.TestsPackage}. DO NOT MODIFY MANUALLY */
|
||||
@SuppressWarnings("all")
|
||||
@TestMetadata("compiler/testData/codegen/boxInline/callableReference")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public class IrCallableReferenceInlineTestsGenerated extends AbstractIrCallableReferenceInlineTests {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInCallableReference() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/callableReference"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true);
|
||||
}
|
||||
|
||||
@TestMetadata("classLevel.kt")
|
||||
public void testClassLevel() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/callableReference/classLevel.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("classLevel2.kt")
|
||||
public void testClassLevel2() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/callableReference/classLevel2.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("constructor.kt")
|
||||
public void testConstructor() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/callableReference/constructor.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("innerGenericConstuctor.kt")
|
||||
public void testInnerGenericConstuctor() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/callableReference/innerGenericConstuctor.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("intrinsic.kt")
|
||||
public void testIntrinsic() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/callableReference/intrinsic.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt15449.kt")
|
||||
public void testKt15449() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/callableReference/kt15449.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt15751_2.kt")
|
||||
public void testKt15751_2() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/callableReference/kt15751_2.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt16411.kt")
|
||||
public void testKt16411() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/callableReference/kt16411.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt35101.kt")
|
||||
public void testKt35101() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/callableReference/kt35101.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("propertyIntrinsic.kt")
|
||||
public void testPropertyIntrinsic() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/callableReference/propertyIntrinsic.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("propertyReference.kt")
|
||||
public void testPropertyReference() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/callableReference/propertyReference.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("topLevel.kt")
|
||||
public void testTopLevel() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/callableReference/topLevel.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("topLevelExtension.kt")
|
||||
public void testTopLevelExtension() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/callableReference/topLevelExtension.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("topLevelProperty.kt")
|
||||
public void testTopLevelProperty() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/callableReference/topLevelProperty.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/codegen/boxInline/callableReference/bound")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class Bound extends AbstractIrCallableReferenceInlineTests {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInBound() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/callableReference/bound"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true);
|
||||
}
|
||||
|
||||
@TestMetadata("classProperty.kt")
|
||||
public void testClassProperty() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/callableReference/bound/classProperty.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("emptyLhsFunction.kt")
|
||||
public void testEmptyLhsFunction() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/callableReference/bound/emptyLhsFunction.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("emptyLhsOnInlineProperty.kt")
|
||||
public void testEmptyLhsOnInlineProperty() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/callableReference/bound/emptyLhsOnInlineProperty.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("emptyLhsProperty.kt")
|
||||
public void testEmptyLhsProperty() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/callableReference/bound/emptyLhsProperty.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("expression.kt")
|
||||
public void testExpression() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/callableReference/bound/expression.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("extensionReceiver.kt")
|
||||
public void testExtensionReceiver() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/callableReference/bound/extensionReceiver.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("filter.kt")
|
||||
public void testFilter() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/callableReference/bound/filter.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("inlineValueParameterInsteadOfReceiver.kt")
|
||||
public void testInlineValueParameterInsteadOfReceiver() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/callableReference/bound/inlineValueParameterInsteadOfReceiver.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("innerGenericConstuctor.kt")
|
||||
public void testInnerGenericConstuctor() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/callableReference/bound/innerGenericConstuctor.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("intrinsic.kt")
|
||||
public void testIntrinsic() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/callableReference/bound/intrinsic.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt18728.kt")
|
||||
public void testKt18728() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/callableReference/bound/kt18728.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt18728_2.kt")
|
||||
public void testKt18728_2() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/callableReference/bound/kt18728_2.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt18728_3.kt")
|
||||
public void testKt18728_3() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/callableReference/bound/kt18728_3.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt18728_4.kt")
|
||||
public void testKt18728_4() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/callableReference/bound/kt18728_4.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("map.kt")
|
||||
public void testMap() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/callableReference/bound/map.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("mixed.kt")
|
||||
public void testMixed() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/callableReference/bound/mixed.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("objectProperty.kt")
|
||||
public void testObjectProperty() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/callableReference/bound/objectProperty.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("propertyImportedFromObject.kt")
|
||||
public void testPropertyImportedFromObject() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/callableReference/bound/propertyImportedFromObject.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("sideEffect.kt")
|
||||
public void testSideEffect() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/callableReference/bound/sideEffect.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("simple.kt")
|
||||
public void testSimple() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/callableReference/bound/simple.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("simpleVal.kt")
|
||||
public void testSimpleVal() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/callableReference/bound/simpleVal.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("simpleVal2.kt")
|
||||
public void testSimpleVal2() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/callableReference/bound/simpleVal2.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("topLevelExtensionProperty.kt")
|
||||
public void testTopLevelExtensionProperty() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/callableReference/bound/topLevelExtensionProperty.kt");
|
||||
}
|
||||
}
|
||||
}
|
||||
Generated
-96
@@ -1,96 +0,0 @@
|
||||
/*
|
||||
* Copyright 2010-2020 JetBrains s.r.o. and Kotlin Programming Language contributors.
|
||||
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
|
||||
*/
|
||||
|
||||
package org.jetbrains.kotlin.js.test.ir.semantics;
|
||||
|
||||
import com.intellij.testFramework.TestDataPath;
|
||||
import org.jetbrains.kotlin.test.JUnit3RunnerWithInners;
|
||||
import org.jetbrains.kotlin.test.KotlinTestUtils;
|
||||
import org.jetbrains.kotlin.test.TargetBackend;
|
||||
import org.jetbrains.kotlin.test.TestMetadata;
|
||||
import org.junit.runner.RunWith;
|
||||
|
||||
import java.io.File;
|
||||
import java.util.regex.Pattern;
|
||||
|
||||
/** This class is generated by {@link org.jetbrains.kotlin.generators.tests.TestsPackage}. DO NOT MODIFY MANUALLY */
|
||||
@SuppressWarnings("all")
|
||||
@TestMetadata("compiler/testData/codegen/boxInline/enum")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public class IrEnumValuesInlineTestsGenerated extends AbstractIrEnumValuesInlineTests {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInEnum() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/enum"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true);
|
||||
}
|
||||
|
||||
@TestMetadata("kt10569.kt")
|
||||
public void testKt10569() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/enum/kt10569.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt18254.kt")
|
||||
public void testKt18254() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/enum/kt18254.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("valueOf.kt")
|
||||
public void testValueOf() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/enum/valueOf.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("valueOfCapturedType.kt")
|
||||
public void testValueOfCapturedType() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/enum/valueOfCapturedType.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("valueOfChain.kt")
|
||||
public void testValueOfChain() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/enum/valueOfChain.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("valueOfChainCapturedType.kt")
|
||||
public void testValueOfChainCapturedType() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/enum/valueOfChainCapturedType.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("valueOfNonReified.kt")
|
||||
public void testValueOfNonReified() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/enum/valueOfNonReified.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("values.kt")
|
||||
public void testValues() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/enum/values.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("valuesAsArray.kt")
|
||||
public void testValuesAsArray() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/enum/valuesAsArray.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("valuesCapturedType.kt")
|
||||
public void testValuesCapturedType() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/enum/valuesCapturedType.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("valuesChain.kt")
|
||||
public void testValuesChain() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/enum/valuesChain.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("valuesChainCapturedType.kt")
|
||||
public void testValuesChainCapturedType() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/enum/valuesChainCapturedType.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("valuesNonReified.kt")
|
||||
public void testValuesNonReified() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/enum/valuesNonReified.kt");
|
||||
}
|
||||
}
|
||||
Generated
-465
@@ -1,465 +0,0 @@
|
||||
/*
|
||||
* Copyright 2010-2020 JetBrains s.r.o. and Kotlin Programming Language contributors.
|
||||
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
|
||||
*/
|
||||
|
||||
package org.jetbrains.kotlin.js.test.ir.semantics;
|
||||
|
||||
import com.intellij.testFramework.TestDataPath;
|
||||
import org.jetbrains.kotlin.test.JUnit3RunnerWithInners;
|
||||
import org.jetbrains.kotlin.test.KotlinTestUtils;
|
||||
import org.jetbrains.kotlin.test.TargetBackend;
|
||||
import org.jetbrains.kotlin.test.TestMetadata;
|
||||
import org.junit.runner.RunWith;
|
||||
|
||||
import java.io.File;
|
||||
import java.util.regex.Pattern;
|
||||
|
||||
/** This class is generated by {@link org.jetbrains.kotlin.generators.tests.TestsPackage}. DO NOT MODIFY MANUALLY */
|
||||
@SuppressWarnings("all")
|
||||
@TestMetadata("compiler/testData/codegen/boxInline/defaultValues")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public class IrInlineDefaultValuesTestsGenerated extends AbstractIrInlineDefaultValuesTests {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR, testDataFilePath);
|
||||
}
|
||||
|
||||
@TestMetadata("33Parameters.kt")
|
||||
public void test33Parameters() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/defaultValues/33Parameters.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("33ParametersInConstructor.kt")
|
||||
public void test33ParametersInConstructor() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/defaultValues/33ParametersInConstructor.kt");
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInDefaultValues() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/defaultValues"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true);
|
||||
}
|
||||
|
||||
@TestMetadata("defaultInExtension.kt")
|
||||
public void testDefaultInExtension() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/defaultValues/defaultInExtension.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("defaultMethod.kt")
|
||||
public void testDefaultMethod() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/defaultValues/defaultMethod.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("defaultMethodInClass.kt")
|
||||
public void testDefaultMethodInClass() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/defaultValues/defaultMethodInClass.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("defaultParamRemapping.kt")
|
||||
public void testDefaultParamRemapping() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/defaultValues/defaultParamRemapping.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("inlineInDefaultParameter.kt")
|
||||
public void testInlineInDefaultParameter() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/defaultValues/inlineInDefaultParameter.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("inlineLambdaInNoInlineDefault.kt")
|
||||
public void testInlineLambdaInNoInlineDefault() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/defaultValues/inlineLambdaInNoInlineDefault.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt11479.kt")
|
||||
public void testKt11479() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/defaultValues/kt11479.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt11479InlinedDefaultParameter.kt")
|
||||
public void testKt11479InlinedDefaultParameter() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/defaultValues/kt11479InlinedDefaultParameter.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt14564.kt")
|
||||
public void testKt14564() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/defaultValues/kt14564.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt14564_2.kt")
|
||||
public void testKt14564_2() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/defaultValues/kt14564_2.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt16496.kt")
|
||||
public void testKt16496() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/defaultValues/kt16496.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt18689.kt")
|
||||
public void testKt18689() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/defaultValues/kt18689.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt18689_2.kt")
|
||||
public void testKt18689_2() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/defaultValues/kt18689_2.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt18689_3.kt")
|
||||
public void testKt18689_3() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/defaultValues/kt18689_3.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt18689_4.kt")
|
||||
public void testKt18689_4() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/defaultValues/kt18689_4.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt5685.kt")
|
||||
public void testKt5685() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/defaultValues/kt5685.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("simpleDefaultMethod.kt")
|
||||
public void testSimpleDefaultMethod() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/defaultValues/simpleDefaultMethod.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("varArgNoInline.kt")
|
||||
public void testVarArgNoInline() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/defaultValues/varArgNoInline.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class LambdaInlining extends AbstractIrInlineDefaultValuesTests {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInLambdaInlining() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true);
|
||||
}
|
||||
|
||||
@TestMetadata("checkLambdaClassIsPresent.kt")
|
||||
public void testCheckLambdaClassIsPresent() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/checkLambdaClassIsPresent.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("checkLambdaClassesArePresent.kt")
|
||||
public void testCheckLambdaClassesArePresent() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/checkLambdaClassesArePresent.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("checkObjectClassIsPresent.kt")
|
||||
public void testCheckObjectClassIsPresent() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/checkObjectClassIsPresent.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("checkStaticLambdaClassIsPresent.kt")
|
||||
public void testCheckStaticLambdaClassIsPresent() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/checkStaticLambdaClassIsPresent.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("checkStaticLambdaClassesArePresent.kt")
|
||||
public void testCheckStaticLambdaClassesArePresent() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/checkStaticLambdaClassesArePresent.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("checkStaticObjectClassIsPresent.kt")
|
||||
public void testCheckStaticObjectClassIsPresent() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/checkStaticObjectClassIsPresent.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("defaultCallInDefaultLambda.kt")
|
||||
public void testDefaultCallInDefaultLambda() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/defaultCallInDefaultLambda.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("defaultLambdaInNoInline.kt")
|
||||
public void testDefaultLambdaInNoInline() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/defaultLambdaInNoInline.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("differentInvokeSignature.kt")
|
||||
public void testDifferentInvokeSignature() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/differentInvokeSignature.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("genericLambda.kt")
|
||||
public void testGenericLambda() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/genericLambda.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("instanceCapturedInClass.kt")
|
||||
public void testInstanceCapturedInClass() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/instanceCapturedInClass.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("instanceCapturedInInterface.kt")
|
||||
public void testInstanceCapturedInInterface() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/instanceCapturedInInterface.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt21827.kt")
|
||||
public void testKt21827() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/kt21827.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt21946.kt")
|
||||
public void testKt21946() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/kt21946.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt24477.kt")
|
||||
public void testKt24477() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/kt24477.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt25106.kt")
|
||||
public void testKt25106() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/kt25106.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("noInline.kt")
|
||||
public void testNoInline() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/noInline.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("nonDefaultInlineInNoInline.kt")
|
||||
public void testNonDefaultInlineInNoInline() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/nonDefaultInlineInNoInline.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("receiverClash.kt")
|
||||
public void testReceiverClash() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/receiverClash.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("receiverClash2.kt")
|
||||
public void testReceiverClash2() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/receiverClash2.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("receiverClashInClass.kt")
|
||||
public void testReceiverClashInClass() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/receiverClashInClass.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("receiverClashInClass2.kt")
|
||||
public void testReceiverClashInClass2() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/receiverClashInClass2.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("simple.kt")
|
||||
public void testSimple() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/simple.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("simpleErased.kt")
|
||||
public void testSimpleErased() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/simpleErased.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("simpleErasedStaticInstance.kt")
|
||||
public void testSimpleErasedStaticInstance() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/simpleErasedStaticInstance.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("simpleExtension.kt")
|
||||
public void testSimpleExtension() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/simpleExtension.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("simpleGeneric.kt")
|
||||
public void testSimpleGeneric() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/simpleGeneric.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("simpleStaticInstance.kt")
|
||||
public void testSimpleStaticInstance() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/simpleStaticInstance.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("thisClash.kt")
|
||||
public void testThisClash() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/thisClash.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("thisClashInClass.kt")
|
||||
public void testThisClashInClass() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/thisClashInClass.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class CallableReferences extends AbstractIrInlineDefaultValuesTests {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInCallableReferences() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true);
|
||||
}
|
||||
|
||||
@TestMetadata("boundFunctionReference.kt")
|
||||
public void testBoundFunctionReference() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/boundFunctionReference.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("boundFunctionReferenceOnInt.kt")
|
||||
public void testBoundFunctionReferenceOnInt() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/boundFunctionReferenceOnInt.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("boundFunctionReferenceOnLong.kt")
|
||||
public void testBoundFunctionReferenceOnLong() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/boundFunctionReferenceOnLong.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("boundPropertyReference.kt")
|
||||
public void testBoundPropertyReference() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/boundPropertyReference.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("boundPropertyReferenceOnInt.kt")
|
||||
public void testBoundPropertyReferenceOnInt() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/boundPropertyReferenceOnInt.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("boundPropertyReferenceOnLong.kt")
|
||||
public void testBoundPropertyReferenceOnLong() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/boundPropertyReferenceOnLong.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("constuctorReference.kt")
|
||||
public void testConstuctorReference() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/constuctorReference.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("differentInvokeSignature.kt")
|
||||
public void testDifferentInvokeSignature() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/differentInvokeSignature.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("differentInvokeSignature2.kt")
|
||||
public void testDifferentInvokeSignature2() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/differentInvokeSignature2.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("functionImportedFromObject.kt")
|
||||
public void testFunctionImportedFromObject() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/functionImportedFromObject.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("functionReference.kt")
|
||||
public void testFunctionReference() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/functionReference.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("functionReferenceFromClass.kt")
|
||||
public void testFunctionReferenceFromClass() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/functionReferenceFromClass.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("functionReferenceFromObject.kt")
|
||||
public void testFunctionReferenceFromObject() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/functionReferenceFromObject.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("innerClassConstuctorReference.kt")
|
||||
public void testInnerClassConstuctorReference() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/innerClassConstuctorReference.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("mutableBoundPropertyReferenceFromClass.kt")
|
||||
public void testMutableBoundPropertyReferenceFromClass() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/mutableBoundPropertyReferenceFromClass.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("mutablePropertyReferenceFromClass.kt")
|
||||
public void testMutablePropertyReferenceFromClass() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/mutablePropertyReferenceFromClass.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("privateFunctionReference.kt")
|
||||
public void testPrivateFunctionReference() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/privateFunctionReference.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("privatePropertyReference.kt")
|
||||
public void testPrivatePropertyReference() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/privatePropertyReference.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("propertyImportedFromObject.kt")
|
||||
public void testPropertyImportedFromObject() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/propertyImportedFromObject.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("propertyReference.kt")
|
||||
public void testPropertyReference() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/propertyReference.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("propertyReferenceFromClass.kt")
|
||||
public void testPropertyReferenceFromClass() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/propertyReferenceFromClass.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("propertyReferenceFromObject.kt")
|
||||
public void testPropertyReferenceFromObject() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/propertyReferenceFromObject.kt");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/codegen/boxInline/defaultValues/maskElimination")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class MaskElimination extends AbstractIrInlineDefaultValuesTests {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR, testDataFilePath);
|
||||
}
|
||||
|
||||
@TestMetadata("32Parameters.kt")
|
||||
public void test32Parameters() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/defaultValues/maskElimination/32Parameters.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("33Parameters.kt")
|
||||
public void test33Parameters() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/defaultValues/maskElimination/33Parameters.kt");
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInMaskElimination() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/defaultValues/maskElimination"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true);
|
||||
}
|
||||
|
||||
@TestMetadata("kt18792.kt")
|
||||
public void testKt18792() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/defaultValues/maskElimination/kt18792.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt19679.kt")
|
||||
public void testKt19679() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/defaultValues/maskElimination/kt19679.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt19679_2.kt")
|
||||
public void testKt19679_2() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/defaultValues/maskElimination/kt19679_2.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt19679_3.kt")
|
||||
public void testKt19679_3() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/defaultValues/maskElimination/kt19679_3.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("simple.kt")
|
||||
public void testSimple() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/defaultValues/maskElimination/simple.kt");
|
||||
}
|
||||
}
|
||||
}
|
||||
Generated
-392
@@ -1,392 +0,0 @@
|
||||
/*
|
||||
* Copyright 2010-2020 JetBrains s.r.o. and Kotlin Programming Language contributors.
|
||||
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
|
||||
*/
|
||||
|
||||
package org.jetbrains.kotlin.js.test.ir.semantics;
|
||||
|
||||
import com.intellij.testFramework.TestDataPath;
|
||||
import org.jetbrains.kotlin.test.JUnit3RunnerWithInners;
|
||||
import org.jetbrains.kotlin.test.KotlinTestUtils;
|
||||
import org.jetbrains.kotlin.test.TargetBackend;
|
||||
import org.jetbrains.kotlin.test.TestMetadata;
|
||||
import org.junit.runner.RunWith;
|
||||
|
||||
import java.io.File;
|
||||
import java.util.regex.Pattern;
|
||||
|
||||
/** This class is generated by {@link org.jetbrains.kotlin.generators.tests.TestsPackage}. DO NOT MODIFY MANUALLY */
|
||||
@SuppressWarnings("all")
|
||||
@TestMetadata("compiler/testData/codegen/boxInline/suspend")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public class IrInlineSuspendTestsGenerated extends AbstractIrInlineSuspendTests {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR, testDataFilePath);
|
||||
}
|
||||
|
||||
private void runTestWithPackageReplacement(String testDataFilePath, String packageName) throws Exception {
|
||||
KotlinTestUtils.runTest0(filePath -> doTestWithCoroutinesPackageReplacement(filePath, packageName), TargetBackend.JS_IR, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInSuspend() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/suspend"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true);
|
||||
}
|
||||
|
||||
@TestMetadata("capturedVariables.kt")
|
||||
public void testCapturedVariables_1_3() throws Exception {
|
||||
runTestWithPackageReplacement("compiler/testData/codegen/boxInline/suspend/capturedVariables.kt", "kotlin.coroutines");
|
||||
}
|
||||
|
||||
@TestMetadata("crossinlineSuspendLambdaInsideCrossinlineSuspendLambda.kt")
|
||||
public void testCrossinlineSuspendLambdaInsideCrossinlineSuspendLambda_1_3() throws Exception {
|
||||
runTestWithPackageReplacement("compiler/testData/codegen/boxInline/suspend/crossinlineSuspendLambdaInsideCrossinlineSuspendLambda.kt", "kotlin.coroutines");
|
||||
}
|
||||
|
||||
@TestMetadata("doubleRegenerationWithNonSuspendingLambda.kt")
|
||||
public void testDoubleRegenerationWithNonSuspendingLambda_1_3() throws Exception {
|
||||
runTestWithPackageReplacement("compiler/testData/codegen/boxInline/suspend/doubleRegenerationWithNonSuspendingLambda.kt", "kotlin.coroutines");
|
||||
}
|
||||
|
||||
@TestMetadata("inlineOrdinaryOfCrossinlineSuspend.kt")
|
||||
public void testInlineOrdinaryOfCrossinlineSuspend_1_3() throws Exception {
|
||||
runTestWithPackageReplacement("compiler/testData/codegen/boxInline/suspend/inlineOrdinaryOfCrossinlineSuspend.kt", "kotlin.coroutines");
|
||||
}
|
||||
|
||||
@TestMetadata("inlineOrdinaryOfNoinlineSuspend.kt")
|
||||
public void testInlineOrdinaryOfNoinlineSuspend_1_3() throws Exception {
|
||||
runTestWithPackageReplacement("compiler/testData/codegen/boxInline/suspend/inlineOrdinaryOfNoinlineSuspend.kt", "kotlin.coroutines");
|
||||
}
|
||||
|
||||
@TestMetadata("inlineSuspendOfCrossinlineOrdinary.kt")
|
||||
public void testInlineSuspendOfCrossinlineOrdinary_1_3() throws Exception {
|
||||
runTestWithPackageReplacement("compiler/testData/codegen/boxInline/suspend/inlineSuspendOfCrossinlineOrdinary.kt", "kotlin.coroutines");
|
||||
}
|
||||
|
||||
@TestMetadata("inlineSuspendOfCrossinlineSuspend.kt")
|
||||
public void testInlineSuspendOfCrossinlineSuspend_1_3() throws Exception {
|
||||
runTestWithPackageReplacement("compiler/testData/codegen/boxInline/suspend/inlineSuspendOfCrossinlineSuspend.kt", "kotlin.coroutines");
|
||||
}
|
||||
|
||||
@TestMetadata("inlineSuspendOfNoinlineOrdinary.kt")
|
||||
public void testInlineSuspendOfNoinlineOrdinary_1_3() throws Exception {
|
||||
runTestWithPackageReplacement("compiler/testData/codegen/boxInline/suspend/inlineSuspendOfNoinlineOrdinary.kt", "kotlin.coroutines");
|
||||
}
|
||||
|
||||
@TestMetadata("inlineSuspendOfNoinlineSuspend.kt")
|
||||
public void testInlineSuspendOfNoinlineSuspend_1_3() throws Exception {
|
||||
runTestWithPackageReplacement("compiler/testData/codegen/boxInline/suspend/inlineSuspendOfNoinlineSuspend.kt", "kotlin.coroutines");
|
||||
}
|
||||
|
||||
@TestMetadata("inlineSuspendOfOrdinary.kt")
|
||||
public void testInlineSuspendOfOrdinary_1_3() throws Exception {
|
||||
runTestWithPackageReplacement("compiler/testData/codegen/boxInline/suspend/inlineSuspendOfOrdinary.kt", "kotlin.coroutines");
|
||||
}
|
||||
|
||||
@TestMetadata("inlineSuspendOfSuspend.kt")
|
||||
public void testInlineSuspendOfSuspend_1_3() throws Exception {
|
||||
runTestWithPackageReplacement("compiler/testData/codegen/boxInline/suspend/inlineSuspendOfSuspend.kt", "kotlin.coroutines");
|
||||
}
|
||||
|
||||
@TestMetadata("kt26658.kt")
|
||||
public void testKt26658() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/suspend/kt26658.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("maxStackWithCrossinline.kt")
|
||||
public void testMaxStackWithCrossinline_1_3() throws Exception {
|
||||
runTestWithPackageReplacement("compiler/testData/codegen/boxInline/suspend/maxStackWithCrossinline.kt", "kotlin.coroutines");
|
||||
}
|
||||
|
||||
@TestMetadata("multipleLocals.kt")
|
||||
public void testMultipleLocals_1_3() throws Exception {
|
||||
runTestWithPackageReplacement("compiler/testData/codegen/boxInline/suspend/multipleLocals.kt", "kotlin.coroutines");
|
||||
}
|
||||
|
||||
@TestMetadata("multipleSuspensionPoints.kt")
|
||||
public void testMultipleSuspensionPoints_1_3() throws Exception {
|
||||
runTestWithPackageReplacement("compiler/testData/codegen/boxInline/suspend/multipleSuspensionPoints.kt", "kotlin.coroutines");
|
||||
}
|
||||
|
||||
@TestMetadata("nonSuspendCrossinline.kt")
|
||||
public void testNonSuspendCrossinline_1_3() throws Exception {
|
||||
runTestWithPackageReplacement("compiler/testData/codegen/boxInline/suspend/nonSuspendCrossinline.kt", "kotlin.coroutines");
|
||||
}
|
||||
|
||||
@TestMetadata("returnValue.kt")
|
||||
public void testReturnValue_1_3() throws Exception {
|
||||
runTestWithPackageReplacement("compiler/testData/codegen/boxInline/suspend/returnValue.kt", "kotlin.coroutines");
|
||||
}
|
||||
|
||||
@TestMetadata("tryCatchReceiver.kt")
|
||||
public void testTryCatchReceiver_1_3() throws Exception {
|
||||
runTestWithPackageReplacement("compiler/testData/codegen/boxInline/suspend/tryCatchReceiver.kt", "kotlin.coroutines");
|
||||
}
|
||||
|
||||
@TestMetadata("tryCatchStackTransform.kt")
|
||||
public void testTryCatchStackTransform_1_3() throws Exception {
|
||||
runTestWithPackageReplacement("compiler/testData/codegen/boxInline/suspend/tryCatchStackTransform.kt", "kotlin.coroutines");
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/codegen/boxInline/suspend/callableReference")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class CallableReference extends AbstractIrInlineSuspendTests {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInCallableReference() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/suspend/callableReference"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true);
|
||||
}
|
||||
|
||||
@TestMetadata("simple.kt")
|
||||
public void testSimple() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/suspend/callableReference/simple.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/codegen/boxInline/suspend/defaultParameter")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class DefaultParameter extends AbstractIrInlineSuspendTests {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR, testDataFilePath);
|
||||
}
|
||||
|
||||
private void runTestWithPackageReplacement(String testDataFilePath, String packageName) throws Exception {
|
||||
KotlinTestUtils.runTest0(filePath -> doTestWithCoroutinesPackageReplacement(filePath, packageName), TargetBackend.JS_IR, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInDefaultParameter() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/suspend/defaultParameter"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true);
|
||||
}
|
||||
|
||||
@TestMetadata("defaultValueCrossinline.kt")
|
||||
public void testDefaultValueCrossinline_1_3() throws Exception {
|
||||
runTestWithPackageReplacement("compiler/testData/codegen/boxInline/suspend/defaultParameter/defaultValueCrossinline.kt", "kotlin.coroutines");
|
||||
}
|
||||
|
||||
@TestMetadata("defaultValueInClass.kt")
|
||||
public void testDefaultValueInClass() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/suspend/defaultParameter/defaultValueInClass.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("defaultValueInlineFromMultiFileFacade.kt")
|
||||
public void testDefaultValueInlineFromMultiFileFacade_1_3() throws Exception {
|
||||
runTestWithPackageReplacement("compiler/testData/codegen/boxInline/suspend/defaultParameter/defaultValueInlineFromMultiFileFacade.kt", "kotlin.coroutines");
|
||||
}
|
||||
|
||||
@TestMetadata("defaultValueInline.kt")
|
||||
public void testDefaultValueInline_1_3() throws Exception {
|
||||
runTestWithPackageReplacement("compiler/testData/codegen/boxInline/suspend/defaultParameter/defaultValueInline.kt", "kotlin.coroutines");
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/codegen/boxInline/suspend/inlineUsedAsNoinline")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class InlineUsedAsNoinline extends AbstractIrInlineSuspendTests {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInInlineUsedAsNoinline() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/suspend/inlineUsedAsNoinline"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true);
|
||||
}
|
||||
|
||||
@TestMetadata("inlineOnly.kt")
|
||||
public void testInlineOnly() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/suspend/inlineUsedAsNoinline/inlineOnly.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("simpleNamed.kt")
|
||||
public void testSimpleNamed() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/suspend/inlineUsedAsNoinline/simpleNamed.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/codegen/boxInline/suspend/receiver")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class Receiver extends AbstractIrInlineSuspendTests {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR, testDataFilePath);
|
||||
}
|
||||
|
||||
private void runTestWithPackageReplacement(String testDataFilePath, String packageName) throws Exception {
|
||||
KotlinTestUtils.runTest0(filePath -> doTestWithCoroutinesPackageReplacement(filePath, packageName), TargetBackend.JS_IR, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInReceiver() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/suspend/receiver"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true);
|
||||
}
|
||||
|
||||
@TestMetadata("inlineOrdinaryOfCrossinlineSuspend.kt")
|
||||
public void testInlineOrdinaryOfCrossinlineSuspend_1_3() throws Exception {
|
||||
runTestWithPackageReplacement("compiler/testData/codegen/boxInline/suspend/receiver/inlineOrdinaryOfCrossinlineSuspend.kt", "kotlin.coroutines");
|
||||
}
|
||||
|
||||
@TestMetadata("inlineOrdinaryOfNoinlineSuspend.kt")
|
||||
public void testInlineOrdinaryOfNoinlineSuspend_1_3() throws Exception {
|
||||
runTestWithPackageReplacement("compiler/testData/codegen/boxInline/suspend/receiver/inlineOrdinaryOfNoinlineSuspend.kt", "kotlin.coroutines");
|
||||
}
|
||||
|
||||
@TestMetadata("inlineSuspendOfCrossinlineOrdinary.kt")
|
||||
public void testInlineSuspendOfCrossinlineOrdinary_1_3() throws Exception {
|
||||
runTestWithPackageReplacement("compiler/testData/codegen/boxInline/suspend/receiver/inlineSuspendOfCrossinlineOrdinary.kt", "kotlin.coroutines");
|
||||
}
|
||||
|
||||
@TestMetadata("inlineSuspendOfCrossinlineSuspend.kt")
|
||||
public void testInlineSuspendOfCrossinlineSuspend_1_3() throws Exception {
|
||||
runTestWithPackageReplacement("compiler/testData/codegen/boxInline/suspend/receiver/inlineSuspendOfCrossinlineSuspend.kt", "kotlin.coroutines");
|
||||
}
|
||||
|
||||
@TestMetadata("inlineSuspendOfNoinlineOrdinary.kt")
|
||||
public void testInlineSuspendOfNoinlineOrdinary_1_3() throws Exception {
|
||||
runTestWithPackageReplacement("compiler/testData/codegen/boxInline/suspend/receiver/inlineSuspendOfNoinlineOrdinary.kt", "kotlin.coroutines");
|
||||
}
|
||||
|
||||
@TestMetadata("inlineSuspendOfNoinlineSuspend.kt")
|
||||
public void testInlineSuspendOfNoinlineSuspend_1_3() throws Exception {
|
||||
runTestWithPackageReplacement("compiler/testData/codegen/boxInline/suspend/receiver/inlineSuspendOfNoinlineSuspend.kt", "kotlin.coroutines");
|
||||
}
|
||||
|
||||
@TestMetadata("inlineSuspendOfOrdinary.kt")
|
||||
public void testInlineSuspendOfOrdinary_1_3() throws Exception {
|
||||
runTestWithPackageReplacement("compiler/testData/codegen/boxInline/suspend/receiver/inlineSuspendOfOrdinary.kt", "kotlin.coroutines");
|
||||
}
|
||||
|
||||
@TestMetadata("inlineSuspendOfSuspend.kt")
|
||||
public void testInlineSuspendOfSuspend_1_3() throws Exception {
|
||||
runTestWithPackageReplacement("compiler/testData/codegen/boxInline/suspend/receiver/inlineSuspendOfSuspend.kt", "kotlin.coroutines");
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/codegen/boxInline/suspend/stateMachine")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class StateMachine extends AbstractIrInlineSuspendTests {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR, testDataFilePath);
|
||||
}
|
||||
|
||||
private void runTestWithPackageReplacement(String testDataFilePath, String packageName) throws Exception {
|
||||
KotlinTestUtils.runTest0(filePath -> doTestWithCoroutinesPackageReplacement(filePath, packageName), TargetBackend.JS_IR, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInStateMachine() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/suspend/stateMachine"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true);
|
||||
}
|
||||
|
||||
@TestMetadata("crossingCoroutineBoundaries.kt")
|
||||
public void testCrossingCoroutineBoundaries_1_3() throws Exception {
|
||||
runTestWithPackageReplacement("compiler/testData/codegen/boxInline/suspend/stateMachine/crossingCoroutineBoundaries.kt", "kotlin.coroutines");
|
||||
}
|
||||
|
||||
@TestMetadata("independentInline.kt")
|
||||
public void testIndependentInline_1_3() throws Exception {
|
||||
runTestWithPackageReplacement("compiler/testData/codegen/boxInline/suspend/stateMachine/independentInline.kt", "kotlin.coroutines");
|
||||
}
|
||||
|
||||
@TestMetadata("innerLambdaInsideLambda.kt")
|
||||
public void testInnerLambdaInsideLambda_1_3() throws Exception {
|
||||
runTestWithPackageReplacement("compiler/testData/codegen/boxInline/suspend/stateMachine/innerLambdaInsideLambda.kt", "kotlin.coroutines");
|
||||
}
|
||||
|
||||
@TestMetadata("innerLambdaWithoutCrossinline.kt")
|
||||
public void testInnerLambdaWithoutCrossinline_1_3() throws Exception {
|
||||
runTestWithPackageReplacement("compiler/testData/codegen/boxInline/suspend/stateMachine/innerLambdaWithoutCrossinline.kt", "kotlin.coroutines");
|
||||
}
|
||||
|
||||
@TestMetadata("innerLambda.kt")
|
||||
public void testInnerLambda_1_3() throws Exception {
|
||||
runTestWithPackageReplacement("compiler/testData/codegen/boxInline/suspend/stateMachine/innerLambda.kt", "kotlin.coroutines");
|
||||
}
|
||||
|
||||
@TestMetadata("innerMadnessCallSite.kt")
|
||||
public void testInnerMadnessCallSite_1_3() throws Exception {
|
||||
runTestWithPackageReplacement("compiler/testData/codegen/boxInline/suspend/stateMachine/innerMadnessCallSite.kt", "kotlin.coroutines");
|
||||
}
|
||||
|
||||
@TestMetadata("innerMadness.kt")
|
||||
public void testInnerMadness_1_3() throws Exception {
|
||||
runTestWithPackageReplacement("compiler/testData/codegen/boxInline/suspend/stateMachine/innerMadness.kt", "kotlin.coroutines");
|
||||
}
|
||||
|
||||
@TestMetadata("innerObjectInsideInnerObject.kt")
|
||||
public void testInnerObjectInsideInnerObject_1_3() throws Exception {
|
||||
runTestWithPackageReplacement("compiler/testData/codegen/boxInline/suspend/stateMachine/innerObjectInsideInnerObject.kt", "kotlin.coroutines");
|
||||
}
|
||||
|
||||
@TestMetadata("innerObjectRetransformation.kt")
|
||||
public void testInnerObjectRetransformation_1_3() throws Exception {
|
||||
runTestWithPackageReplacement("compiler/testData/codegen/boxInline/suspend/stateMachine/innerObjectRetransformation.kt", "kotlin.coroutines");
|
||||
}
|
||||
|
||||
@TestMetadata("innerObjectSeveralFunctions.kt")
|
||||
public void testInnerObjectSeveralFunctions_1_3() throws Exception {
|
||||
runTestWithPackageReplacement("compiler/testData/codegen/boxInline/suspend/stateMachine/innerObjectSeveralFunctions.kt", "kotlin.coroutines");
|
||||
}
|
||||
|
||||
@TestMetadata("innerObjectWithoutCapturingCrossinline.kt")
|
||||
public void testInnerObjectWithoutCapturingCrossinline_1_3() throws Exception {
|
||||
runTestWithPackageReplacement("compiler/testData/codegen/boxInline/suspend/stateMachine/innerObjectWithoutCapturingCrossinline.kt", "kotlin.coroutines");
|
||||
}
|
||||
|
||||
@TestMetadata("innerObject.kt")
|
||||
public void testInnerObject_1_3() throws Exception {
|
||||
runTestWithPackageReplacement("compiler/testData/codegen/boxInline/suspend/stateMachine/innerObject.kt", "kotlin.coroutines");
|
||||
}
|
||||
|
||||
@TestMetadata("insideObject.kt")
|
||||
public void testInsideObject_1_3() throws Exception {
|
||||
runTestWithPackageReplacement("compiler/testData/codegen/boxInline/suspend/stateMachine/insideObject.kt", "kotlin.coroutines");
|
||||
}
|
||||
|
||||
@TestMetadata("lambdaTransformation.kt")
|
||||
public void testLambdaTransformation() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/suspend/stateMachine/lambdaTransformation.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("normalInline.kt")
|
||||
public void testNormalInline_1_3() throws Exception {
|
||||
runTestWithPackageReplacement("compiler/testData/codegen/boxInline/suspend/stateMachine/normalInline.kt", "kotlin.coroutines");
|
||||
}
|
||||
|
||||
@TestMetadata("numberOfSuspentions.kt")
|
||||
public void testNumberOfSuspentions_1_3() throws Exception {
|
||||
runTestWithPackageReplacement("compiler/testData/codegen/boxInline/suspend/stateMachine/numberOfSuspentions.kt", "kotlin.coroutines");
|
||||
}
|
||||
|
||||
@TestMetadata("objectInsideLambdas.kt")
|
||||
public void testObjectInsideLambdas_1_3() throws Exception {
|
||||
runTestWithPackageReplacement("compiler/testData/codegen/boxInline/suspend/stateMachine/objectInsideLambdas.kt", "kotlin.coroutines");
|
||||
}
|
||||
|
||||
@TestMetadata("oneInlineTwoCaptures.kt")
|
||||
public void testOneInlineTwoCaptures_1_3() throws Exception {
|
||||
runTestWithPackageReplacement("compiler/testData/codegen/boxInline/suspend/stateMachine/oneInlineTwoCaptures.kt", "kotlin.coroutines");
|
||||
}
|
||||
|
||||
@TestMetadata("passLambda.kt")
|
||||
public void testPassLambda_1_3() throws Exception {
|
||||
runTestWithPackageReplacement("compiler/testData/codegen/boxInline/suspend/stateMachine/passLambda.kt", "kotlin.coroutines");
|
||||
}
|
||||
|
||||
@TestMetadata("passParameterLambda.kt")
|
||||
public void testPassParameterLambda_1_3() throws Exception {
|
||||
runTestWithPackageReplacement("compiler/testData/codegen/boxInline/suspend/stateMachine/passParameterLambda.kt", "kotlin.coroutines");
|
||||
}
|
||||
|
||||
@TestMetadata("passParameter.kt")
|
||||
public void testPassParameter_1_3() throws Exception {
|
||||
runTestWithPackageReplacement("compiler/testData/codegen/boxInline/suspend/stateMachine/passParameter.kt", "kotlin.coroutines");
|
||||
}
|
||||
|
||||
@TestMetadata("unreachableSuspendMarker.kt")
|
||||
public void testUnreachableSuspendMarker_1_3() throws Exception {
|
||||
runTestWithPackageReplacement("compiler/testData/codegen/boxInline/suspend/stateMachine/unreachableSuspendMarker.kt", "kotlin.coroutines");
|
||||
}
|
||||
}
|
||||
}
|
||||
Generated
+3788
File diff suppressed because it is too large
Load Diff
Generated
-106
@@ -1,106 +0,0 @@
|
||||
/*
|
||||
* Copyright 2010-2020 JetBrains s.r.o. and Kotlin Programming Language contributors.
|
||||
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
|
||||
*/
|
||||
|
||||
package org.jetbrains.kotlin.js.test.ir.semantics;
|
||||
|
||||
import com.intellij.testFramework.TestDataPath;
|
||||
import org.jetbrains.kotlin.test.JUnit3RunnerWithInners;
|
||||
import org.jetbrains.kotlin.test.KotlinTestUtils;
|
||||
import org.jetbrains.kotlin.test.TargetBackend;
|
||||
import org.jetbrains.kotlin.test.TestMetadata;
|
||||
import org.junit.runner.RunWith;
|
||||
|
||||
import java.io.File;
|
||||
import java.util.regex.Pattern;
|
||||
|
||||
/** This class is generated by {@link org.jetbrains.kotlin.generators.tests.TestsPackage}. DO NOT MODIFY MANUALLY */
|
||||
@SuppressWarnings("all")
|
||||
@TestMetadata("compiler/testData/codegen/boxInline/contracts")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public class IrJsInlineContractsTestsGenerated extends AbstractIrJsInlineContractsTests {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInContracts() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/contracts"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true);
|
||||
}
|
||||
|
||||
@TestMetadata("cfgDependendValInitialization.kt")
|
||||
public void testCfgDependendValInitialization() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/contracts/cfgDependendValInitialization.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("complexInitializer.kt")
|
||||
public void testComplexInitializer() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/contracts/complexInitializer.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("complexInitializerWithStackTransformation.kt")
|
||||
public void testComplexInitializerWithStackTransformation() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/contracts/complexInitializerWithStackTransformation.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("crossinlineCallableReference.kt")
|
||||
public void testCrossinlineCallableReference() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/contracts/crossinlineCallableReference.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("definiteLongValInitialization.kt")
|
||||
public void testDefiniteLongValInitialization() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/contracts/definiteLongValInitialization.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("definiteNestedValInitialization.kt")
|
||||
public void testDefiniteNestedValInitialization() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/contracts/definiteNestedValInitialization.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("definiteValInitInInitializer.kt")
|
||||
public void testDefiniteValInitInInitializer() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/contracts/definiteValInitInInitializer.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("definiteValInitialization.kt")
|
||||
public void testDefiniteValInitialization() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/contracts/definiteValInitialization.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("exactlyOnceCrossinline.kt")
|
||||
public void testExactlyOnceCrossinline() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/contracts/exactlyOnceCrossinline.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("exactlyOnceCrossinline2.kt")
|
||||
public void testExactlyOnceCrossinline2() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/contracts/exactlyOnceCrossinline2.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("exactlyOnceNoinline.kt")
|
||||
public void testExactlyOnceNoinline() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/contracts/exactlyOnceNoinline.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("nonLocalReturn.kt")
|
||||
public void testNonLocalReturn() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/contracts/nonLocalReturn.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("nonLocalReturnWithCycle.kt")
|
||||
public void testNonLocalReturnWithCycle() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/contracts/nonLocalReturnWithCycle.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("propertyInitialization.kt")
|
||||
public void testPropertyInitialization() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/contracts/propertyInitialization.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("valInitializationAndUsageInNestedLambda.kt")
|
||||
public void testValInitializationAndUsageInNestedLambda() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/contracts/valInitializationAndUsageInNestedLambda.kt");
|
||||
}
|
||||
}
|
||||
Generated
-36
@@ -1,36 +0,0 @@
|
||||
/*
|
||||
* Copyright 2010-2020 JetBrains s.r.o. and Kotlin Programming Language contributors.
|
||||
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
|
||||
*/
|
||||
|
||||
package org.jetbrains.kotlin.js.test.ir.semantics;
|
||||
|
||||
import com.intellij.testFramework.TestDataPath;
|
||||
import org.jetbrains.kotlin.test.JUnit3RunnerWithInners;
|
||||
import org.jetbrains.kotlin.test.KotlinTestUtils;
|
||||
import org.jetbrains.kotlin.test.TargetBackend;
|
||||
import org.jetbrains.kotlin.test.TestMetadata;
|
||||
import org.junit.runner.RunWith;
|
||||
|
||||
import java.io.File;
|
||||
import java.util.regex.Pattern;
|
||||
|
||||
/** This class is generated by {@link org.jetbrains.kotlin.generators.tests.TestsPackage}. DO NOT MODIFY MANUALLY */
|
||||
@SuppressWarnings("all")
|
||||
@TestMetadata("compiler/testData/codegen/boxInline/multiModule")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public class IrJsInlineMultiModuleTestsGenerated extends AbstractIrJsInlineMultiModuleTests {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInMultiModule() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/multiModule"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true);
|
||||
}
|
||||
|
||||
@TestMetadata("tryCatchWithRecursiveInline.kt")
|
||||
public void testTryCatchWithRecursiveInline() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/multiModule/tryCatchWithRecursiveInline.kt");
|
||||
}
|
||||
}
|
||||
-66
@@ -1,66 +0,0 @@
|
||||
/*
|
||||
* Copyright 2010-2020 JetBrains s.r.o. and Kotlin Programming Language contributors.
|
||||
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
|
||||
*/
|
||||
|
||||
package org.jetbrains.kotlin.js.test.ir.semantics;
|
||||
|
||||
import com.intellij.testFramework.TestDataPath;
|
||||
import org.jetbrains.kotlin.test.JUnit3RunnerWithInners;
|
||||
import org.jetbrains.kotlin.test.KotlinTestUtils;
|
||||
import org.jetbrains.kotlin.test.TargetBackend;
|
||||
import org.jetbrains.kotlin.test.TestMetadata;
|
||||
import org.junit.runner.RunWith;
|
||||
|
||||
import java.io.File;
|
||||
import java.util.regex.Pattern;
|
||||
|
||||
/** This class is generated by {@link org.jetbrains.kotlin.generators.tests.TestsPackage}. DO NOT MODIFY MANUALLY */
|
||||
@SuppressWarnings("all")
|
||||
@TestMetadata("compiler/testData/codegen/boxInline/noInline")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public class IrNoInlineTestsGenerated extends AbstractIrNoInlineTests {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInNoInline() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/noInline"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true);
|
||||
}
|
||||
|
||||
@TestMetadata("extensionReceiver.kt")
|
||||
public void testExtensionReceiver() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/noInline/extensionReceiver.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("lambdaAsGeneric.kt")
|
||||
public void testLambdaAsGeneric() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/noInline/lambdaAsGeneric.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("lambdaAsNonFunction.kt")
|
||||
public void testLambdaAsNonFunction() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/noInline/lambdaAsNonFunction.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("noInline.kt")
|
||||
public void testNoInline() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/noInline/noInline.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("noInlineLambdaChain.kt")
|
||||
public void testNoInlineLambdaChain() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/noInline/noInlineLambdaChain.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("noInlineLambdaChainWithCapturedInline.kt")
|
||||
public void testNoInlineLambdaChainWithCapturedInline() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/noInline/noInlineLambdaChainWithCapturedInline.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("withoutInline.kt")
|
||||
public void testWithoutInline() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/noInline/withoutInline.kt");
|
||||
}
|
||||
}
|
||||
Generated
-502
@@ -1,502 +0,0 @@
|
||||
/*
|
||||
* Copyright 2010-2020 JetBrains s.r.o. and Kotlin Programming Language contributors.
|
||||
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
|
||||
*/
|
||||
|
||||
package org.jetbrains.kotlin.js.test.ir.semantics;
|
||||
|
||||
import com.intellij.testFramework.TestDataPath;
|
||||
import org.jetbrains.kotlin.test.JUnit3RunnerWithInners;
|
||||
import org.jetbrains.kotlin.test.KotlinTestUtils;
|
||||
import org.jetbrains.kotlin.test.TargetBackend;
|
||||
import org.jetbrains.kotlin.test.TestMetadata;
|
||||
import org.junit.runner.RunWith;
|
||||
|
||||
import java.io.File;
|
||||
import java.util.regex.Pattern;
|
||||
|
||||
/** This class is generated by {@link org.jetbrains.kotlin.generators.tests.TestsPackage}. DO NOT MODIFY MANUALLY */
|
||||
@SuppressWarnings("all")
|
||||
@TestMetadata("compiler/testData/codegen/boxInline/nonLocalReturns")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public class IrNonLocalReturnsTestGenerated extends AbstractIrNonLocalReturnsTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInNonLocalReturns() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/nonLocalReturns"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true);
|
||||
}
|
||||
|
||||
@TestMetadata("explicitLocalReturn.kt")
|
||||
public void testExplicitLocalReturn() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/nonLocalReturns/explicitLocalReturn.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("fromInterfaceDefaultGetter.kt")
|
||||
public void testFromInterfaceDefaultGetter() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/nonLocalReturns/fromInterfaceDefaultGetter.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("justReturnInLambda.kt")
|
||||
public void testJustReturnInLambda() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/nonLocalReturns/justReturnInLambda.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt5199.kt")
|
||||
public void testKt5199() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/nonLocalReturns/kt5199.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt8948.kt")
|
||||
public void testKt8948() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/nonLocalReturns/kt8948.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt8948v2.kt")
|
||||
public void testKt8948v2() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/nonLocalReturns/kt8948v2.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("nestedNonLocals.kt")
|
||||
public void testNestedNonLocals() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/nonLocalReturns/nestedNonLocals.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("noInlineLocalReturn.kt")
|
||||
public void testNoInlineLocalReturn() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/nonLocalReturns/noInlineLocalReturn.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("nonLocalReturnFromOuterLambda.kt")
|
||||
public void testNonLocalReturnFromOuterLambda() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/nonLocalReturns/nonLocalReturnFromOuterLambda.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("propertyAccessors.kt")
|
||||
public void testPropertyAccessors() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/nonLocalReturns/propertyAccessors.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("returnFromFunctionExpr.kt")
|
||||
public void testReturnFromFunctionExpr() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/nonLocalReturns/returnFromFunctionExpr.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("simple.kt")
|
||||
public void testSimple() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/nonLocalReturns/simple.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("simpleFunctional.kt")
|
||||
public void testSimpleFunctional() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/nonLocalReturns/simpleFunctional.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("simpleVoid.kt")
|
||||
public void testSimpleVoid() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/nonLocalReturns/simpleVoid.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/codegen/boxInline/nonLocalReturns/deparenthesize")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class Deparenthesize extends AbstractIrNonLocalReturnsTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInDeparenthesize() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/nonLocalReturns/deparenthesize"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true);
|
||||
}
|
||||
|
||||
@TestMetadata("bracket.kt")
|
||||
public void testBracket() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/nonLocalReturns/deparenthesize/bracket.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("labeled.kt")
|
||||
public void testLabeled() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/nonLocalReturns/deparenthesize/labeled.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class TryFinally extends AbstractIrNonLocalReturnsTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInTryFinally() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true);
|
||||
}
|
||||
|
||||
@TestMetadata("kt16417.kt")
|
||||
public void testKt16417() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/kt16417.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt20433.kt")
|
||||
public void testKt20433() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/kt20433.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt20433_2.kt")
|
||||
public void testKt20433_2() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/kt20433_2.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt20433_2_void.kt")
|
||||
public void testKt20433_2_void() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/kt20433_2_void.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt20433_void.kt")
|
||||
public void testKt20433_void() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/kt20433_void.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt26384.kt")
|
||||
public void testKt26384() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/kt26384.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt26384_2.kt")
|
||||
public void testKt26384_2() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/kt26384_2.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt28546.kt")
|
||||
public void testKt28546() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/kt28546.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt6956.kt")
|
||||
public void testKt6956() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/kt6956.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt7273.kt")
|
||||
public void testKt7273() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/kt7273.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("nonLocalReturnFromCatchBlock.kt")
|
||||
public void testNonLocalReturnFromCatchBlock() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/nonLocalReturnFromCatchBlock.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("nonLocalReturnFromOuterLambda.kt")
|
||||
public void testNonLocalReturnFromOuterLambda() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/nonLocalReturnFromOuterLambda.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("nonLocalReturnToCatchBlock.kt")
|
||||
public void testNonLocalReturnToCatchBlock() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/nonLocalReturnToCatchBlock.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/callSite")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class CallSite extends AbstractIrNonLocalReturnsTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInCallSite() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/callSite"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true);
|
||||
}
|
||||
|
||||
@TestMetadata("callSite.kt")
|
||||
public void testCallSite() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/callSite/callSite.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("callSiteComplex.kt")
|
||||
public void testCallSiteComplex() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/callSite/callSiteComplex.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("exceptionTableSplit.kt")
|
||||
public void testExceptionTableSplit() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/callSite/exceptionTableSplit.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("exceptionTableSplitNoReturn.kt")
|
||||
public void testExceptionTableSplitNoReturn() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/callSite/exceptionTableSplitNoReturn.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("finallyInFinally.kt")
|
||||
public void testFinallyInFinally() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/callSite/finallyInFinally.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("wrongVarInterval.kt")
|
||||
public void testWrongVarInterval() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/callSite/wrongVarInterval.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/chained")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class Chained extends AbstractIrNonLocalReturnsTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInChained() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/chained"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true);
|
||||
}
|
||||
|
||||
@TestMetadata("finallyInFinally.kt")
|
||||
public void testFinallyInFinally() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/chained/finallyInFinally.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("finallyInFinally2.kt")
|
||||
public void testFinallyInFinally2() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/chained/finallyInFinally2.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("intReturn.kt")
|
||||
public void testIntReturn() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/chained/intReturn.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("intReturnComplex.kt")
|
||||
public void testIntReturnComplex() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/chained/intReturnComplex.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("intReturnComplex2.kt")
|
||||
public void testIntReturnComplex2() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/chained/intReturnComplex2.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("intReturnComplex3.kt")
|
||||
public void testIntReturnComplex3() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/chained/intReturnComplex3.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("intReturnComplex4.kt")
|
||||
public void testIntReturnComplex4() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/chained/intReturnComplex4.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("nestedLambda.kt")
|
||||
public void testNestedLambda() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/chained/nestedLambda.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/declSite")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class DeclSite extends AbstractIrNonLocalReturnsTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInDeclSite() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/declSite"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true);
|
||||
}
|
||||
|
||||
@TestMetadata("complex.kt")
|
||||
public void testComplex() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/declSite/complex.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("intReturn.kt")
|
||||
public void testIntReturn() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/declSite/intReturn.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("intReturnComplex.kt")
|
||||
public void testIntReturnComplex() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/declSite/intReturnComplex.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("longReturn.kt")
|
||||
public void testLongReturn() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/declSite/longReturn.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("nested.kt")
|
||||
public void testNested() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/declSite/nested.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("returnInFinally.kt")
|
||||
public void testReturnInFinally() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/declSite/returnInFinally.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("returnInTry.kt")
|
||||
public void testReturnInTry() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/declSite/returnInTry.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("returnInTryAndFinally.kt")
|
||||
public void testReturnInTryAndFinally() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/declSite/returnInTryAndFinally.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("severalInTry.kt")
|
||||
public void testSeveralInTry() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/declSite/severalInTry.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("severalInTryComplex.kt")
|
||||
public void testSeveralInTryComplex() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/declSite/severalInTryComplex.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("voidInlineFun.kt")
|
||||
public void testVoidInlineFun() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/declSite/voidInlineFun.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("voidNonLocal.kt")
|
||||
public void testVoidNonLocal() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/declSite/voidNonLocal.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class ExceptionTable extends AbstractIrNonLocalReturnsTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInExceptionTable() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true);
|
||||
}
|
||||
|
||||
@TestMetadata("break.kt")
|
||||
public void testBreak() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/break.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("continue.kt")
|
||||
public void testContinue() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/continue.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("exceptionInFinally.kt")
|
||||
public void testExceptionInFinally() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/exceptionInFinally.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("forInFinally.kt")
|
||||
public void testForInFinally() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/forInFinally.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("innerAndExternal.kt")
|
||||
public void testInnerAndExternal() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/innerAndExternal.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("innerAndExternalNested.kt")
|
||||
public void testInnerAndExternalNested() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/innerAndExternalNested.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("innerAndExternalSimple.kt")
|
||||
public void testInnerAndExternalSimple() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/innerAndExternalSimple.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt31653.kt")
|
||||
public void testKt31653() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/kt31653.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt31653_2.kt")
|
||||
public void testKt31653_2() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/kt31653_2.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt31923.kt")
|
||||
public void testKt31923() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/kt31923.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt31923_2.kt")
|
||||
public void testKt31923_2() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/kt31923_2.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("nested.kt")
|
||||
public void testNested() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/nested.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("nestedWithReturns.kt")
|
||||
public void testNestedWithReturns() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/nestedWithReturns.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("nestedWithReturnsSimple.kt")
|
||||
public void testNestedWithReturnsSimple() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/nestedWithReturnsSimple.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("noFinally.kt")
|
||||
public void testNoFinally() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/noFinally.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("severalCatchClause.kt")
|
||||
public void testSeveralCatchClause() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/severalCatchClause.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("simpleThrow.kt")
|
||||
public void testSimpleThrow() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/simpleThrow.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("synchonized.kt")
|
||||
public void testSynchonized() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/synchonized.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("throwInFinally.kt")
|
||||
public void testThrowInFinally() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/throwInFinally.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("tryCatchInFinally.kt")
|
||||
public void testTryCatchInFinally() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/tryCatchInFinally.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/variables")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class Variables extends AbstractIrNonLocalReturnsTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInVariables() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/variables"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true);
|
||||
}
|
||||
|
||||
@TestMetadata("kt7792.kt")
|
||||
public void testKt7792() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/variables/kt7792.kt");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
-96
@@ -1,96 +0,0 @@
|
||||
/*
|
||||
* Copyright 2010-2020 JetBrains s.r.o. and Kotlin Programming Language contributors.
|
||||
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
|
||||
*/
|
||||
|
||||
package org.jetbrains.kotlin.js.test.ir.semantics;
|
||||
|
||||
import com.intellij.testFramework.TestDataPath;
|
||||
import org.jetbrains.kotlin.test.JUnit3RunnerWithInners;
|
||||
import org.jetbrains.kotlin.test.KotlinTestUtils;
|
||||
import org.jetbrains.kotlin.test.TargetBackend;
|
||||
import org.jetbrains.kotlin.test.TestMetadata;
|
||||
import org.junit.runner.RunWith;
|
||||
|
||||
import java.io.File;
|
||||
import java.util.regex.Pattern;
|
||||
|
||||
/** This class is generated by {@link org.jetbrains.kotlin.generators.tests.TestsPackage}. DO NOT MODIFY MANUALLY */
|
||||
@SuppressWarnings("all")
|
||||
@TestMetadata("compiler/testData/codegen/boxInline/property")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public class IrPropertyAccessorsInlineTestsGenerated extends AbstractIrPropertyAccessorsInlineTests {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInProperty() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/property"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true);
|
||||
}
|
||||
|
||||
@TestMetadata("augAssignmentAndInc.kt")
|
||||
public void testAugAssignmentAndInc() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/property/augAssignmentAndInc.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("augAssignmentAndIncInClass.kt")
|
||||
public void testAugAssignmentAndIncInClass() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/property/augAssignmentAndIncInClass.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("augAssignmentAndIncInClassViaConvention.kt")
|
||||
public void testAugAssignmentAndIncInClassViaConvention() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/property/augAssignmentAndIncInClassViaConvention.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("augAssignmentAndIncOnExtension.kt")
|
||||
public void testAugAssignmentAndIncOnExtension() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/property/augAssignmentAndIncOnExtension.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("augAssignmentAndIncOnExtensionInClass.kt")
|
||||
public void testAugAssignmentAndIncOnExtensionInClass() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/property/augAssignmentAndIncOnExtensionInClass.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("augAssignmentAndIncViaConvention.kt")
|
||||
public void testAugAssignmentAndIncViaConvention() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/property/augAssignmentAndIncViaConvention.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("fromObject.kt")
|
||||
public void testFromObject() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/property/fromObject.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt22649.kt")
|
||||
public void testKt22649() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/property/kt22649.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("property.kt")
|
||||
public void testProperty() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/property/property.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("reifiedVal.kt")
|
||||
public void testReifiedVal() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/property/reifiedVal.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("reifiedVar.kt")
|
||||
public void testReifiedVar() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/property/reifiedVar.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("simple.kt")
|
||||
public void testSimple() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/property/simple.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("simpleExtension.kt")
|
||||
public void testSimpleExtension() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/property/simpleExtension.kt");
|
||||
}
|
||||
}
|
||||
+4
-26
@@ -19,29 +19,7 @@ abstract class AbstractIrWasmBoxJsTest : BasicIrBoxTest(
|
||||
"irWasmBox/"
|
||||
)
|
||||
|
||||
abstract class BorrowedIrInlineTest(relativePath: String) : BasicIrBoxTest(
|
||||
"compiler/testData/codegen/boxInline/$relativePath",
|
||||
"codegen/irBoxInline/$relativePath"
|
||||
) {
|
||||
init {
|
||||
additionalCommonFileDirectories += TEST_DATA_DIR_PATH + relativePath + "/_commonFiles/"
|
||||
}
|
||||
}
|
||||
|
||||
abstract class AbstractIrNonLocalReturnsTest : BorrowedIrInlineTest("nonLocalReturns/")
|
||||
|
||||
abstract class AbstractIrPropertyAccessorsInlineTests : BorrowedIrInlineTest("property/")
|
||||
|
||||
abstract class AbstractIrNoInlineTests : BorrowedIrInlineTest("noInline/")
|
||||
|
||||
abstract class AbstractIrCallableReferenceInlineTests : BorrowedIrInlineTest("callableReference/")
|
||||
|
||||
abstract class AbstractIrEnumValuesInlineTests : BorrowedIrInlineTest("enum/")
|
||||
|
||||
abstract class AbstractIrInlineDefaultValuesTests : BorrowedIrInlineTest("defaultValues/")
|
||||
|
||||
abstract class AbstractIrInlineSuspendTests : BorrowedIrInlineTest("suspend/")
|
||||
|
||||
abstract class AbstractIrJsInlineContractsTests : BorrowedIrInlineTest("contracts/")
|
||||
|
||||
abstract class AbstractIrJsInlineMultiModuleTests : BorrowedIrInlineTest("multiModule/")
|
||||
abstract class AbstractIrJsCodegenInlineTest : BasicIrBoxTest(
|
||||
"compiler/testData/codegen/boxInline/",
|
||||
"codegen/irBoxInline/"
|
||||
)
|
||||
|
||||
Generated
-229
@@ -1,229 +0,0 @@
|
||||
/*
|
||||
* Copyright 2010-2020 JetBrains s.r.o. and Kotlin Programming Language contributors.
|
||||
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
|
||||
*/
|
||||
|
||||
package org.jetbrains.kotlin.js.test.semantics;
|
||||
|
||||
import com.intellij.testFramework.TestDataPath;
|
||||
import org.jetbrains.kotlin.test.JUnit3RunnerWithInners;
|
||||
import org.jetbrains.kotlin.test.KotlinTestUtils;
|
||||
import org.jetbrains.kotlin.test.TargetBackend;
|
||||
import org.jetbrains.kotlin.test.TestMetadata;
|
||||
import org.junit.runner.RunWith;
|
||||
|
||||
import java.io.File;
|
||||
import java.util.regex.Pattern;
|
||||
|
||||
/** This class is generated by {@link org.jetbrains.kotlin.generators.tests.TestsPackage}. DO NOT MODIFY MANUALLY */
|
||||
@SuppressWarnings("all")
|
||||
@TestMetadata("compiler/testData/codegen/boxInline/callableReference")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public class CallableReferenceInlineTestsGenerated extends AbstractCallableReferenceInlineTests {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInCallableReference() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/callableReference"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS, true);
|
||||
}
|
||||
|
||||
@TestMetadata("classLevel.kt")
|
||||
public void testClassLevel() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/callableReference/classLevel.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("classLevel2.kt")
|
||||
public void testClassLevel2() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/callableReference/classLevel2.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("constructor.kt")
|
||||
public void testConstructor() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/callableReference/constructor.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("innerGenericConstuctor.kt")
|
||||
public void testInnerGenericConstuctor() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/callableReference/innerGenericConstuctor.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("intrinsic.kt")
|
||||
public void testIntrinsic() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/callableReference/intrinsic.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt15449.kt")
|
||||
public void testKt15449() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/callableReference/kt15449.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt15751_2.kt")
|
||||
public void testKt15751_2() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/callableReference/kt15751_2.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt16411.kt")
|
||||
public void testKt16411() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/callableReference/kt16411.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt35101.kt")
|
||||
public void testKt35101() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/callableReference/kt35101.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("propertyIntrinsic.kt")
|
||||
public void testPropertyIntrinsic() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/callableReference/propertyIntrinsic.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("propertyReference.kt")
|
||||
public void testPropertyReference() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/callableReference/propertyReference.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("topLevel.kt")
|
||||
public void testTopLevel() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/callableReference/topLevel.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("topLevelExtension.kt")
|
||||
public void testTopLevelExtension() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/callableReference/topLevelExtension.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("topLevelProperty.kt")
|
||||
public void testTopLevelProperty() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/callableReference/topLevelProperty.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/codegen/boxInline/callableReference/bound")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class Bound extends AbstractCallableReferenceInlineTests {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInBound() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/callableReference/bound"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS, true);
|
||||
}
|
||||
|
||||
@TestMetadata("classProperty.kt")
|
||||
public void testClassProperty() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/callableReference/bound/classProperty.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("emptyLhsFunction.kt")
|
||||
public void testEmptyLhsFunction() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/callableReference/bound/emptyLhsFunction.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("emptyLhsOnInlineProperty.kt")
|
||||
public void testEmptyLhsOnInlineProperty() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/callableReference/bound/emptyLhsOnInlineProperty.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("emptyLhsProperty.kt")
|
||||
public void testEmptyLhsProperty() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/callableReference/bound/emptyLhsProperty.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("expression.kt")
|
||||
public void testExpression() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/callableReference/bound/expression.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("extensionReceiver.kt")
|
||||
public void testExtensionReceiver() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/callableReference/bound/extensionReceiver.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("filter.kt")
|
||||
public void testFilter() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/callableReference/bound/filter.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("inlineValueParameterInsteadOfReceiver.kt")
|
||||
public void testInlineValueParameterInsteadOfReceiver() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/callableReference/bound/inlineValueParameterInsteadOfReceiver.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("innerGenericConstuctor.kt")
|
||||
public void testInnerGenericConstuctor() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/callableReference/bound/innerGenericConstuctor.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("intrinsic.kt")
|
||||
public void testIntrinsic() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/callableReference/bound/intrinsic.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt18728.kt")
|
||||
public void testKt18728() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/callableReference/bound/kt18728.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt18728_2.kt")
|
||||
public void testKt18728_2() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/callableReference/bound/kt18728_2.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt18728_3.kt")
|
||||
public void testKt18728_3() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/callableReference/bound/kt18728_3.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt18728_4.kt")
|
||||
public void testKt18728_4() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/callableReference/bound/kt18728_4.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("map.kt")
|
||||
public void testMap() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/callableReference/bound/map.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("mixed.kt")
|
||||
public void testMixed() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/callableReference/bound/mixed.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("objectProperty.kt")
|
||||
public void testObjectProperty() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/callableReference/bound/objectProperty.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("propertyImportedFromObject.kt")
|
||||
public void testPropertyImportedFromObject() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/callableReference/bound/propertyImportedFromObject.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("sideEffect.kt")
|
||||
public void testSideEffect() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/callableReference/bound/sideEffect.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("simple.kt")
|
||||
public void testSimple() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/callableReference/bound/simple.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("simpleVal.kt")
|
||||
public void testSimpleVal() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/callableReference/bound/simpleVal.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("simpleVal2.kt")
|
||||
public void testSimpleVal2() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/callableReference/bound/simpleVal2.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("topLevelExtensionProperty.kt")
|
||||
public void testTopLevelExtensionProperty() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/callableReference/bound/topLevelExtensionProperty.kt");
|
||||
}
|
||||
}
|
||||
}
|
||||
Generated
-96
@@ -1,96 +0,0 @@
|
||||
/*
|
||||
* Copyright 2010-2020 JetBrains s.r.o. and Kotlin Programming Language contributors.
|
||||
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
|
||||
*/
|
||||
|
||||
package org.jetbrains.kotlin.js.test.semantics;
|
||||
|
||||
import com.intellij.testFramework.TestDataPath;
|
||||
import org.jetbrains.kotlin.test.JUnit3RunnerWithInners;
|
||||
import org.jetbrains.kotlin.test.KotlinTestUtils;
|
||||
import org.jetbrains.kotlin.test.TargetBackend;
|
||||
import org.jetbrains.kotlin.test.TestMetadata;
|
||||
import org.junit.runner.RunWith;
|
||||
|
||||
import java.io.File;
|
||||
import java.util.regex.Pattern;
|
||||
|
||||
/** This class is generated by {@link org.jetbrains.kotlin.generators.tests.TestsPackage}. DO NOT MODIFY MANUALLY */
|
||||
@SuppressWarnings("all")
|
||||
@TestMetadata("compiler/testData/codegen/boxInline/enum")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public class EnumValuesInlineTestsGenerated extends AbstractEnumValuesInlineTests {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInEnum() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/enum"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS, true);
|
||||
}
|
||||
|
||||
@TestMetadata("kt10569.kt")
|
||||
public void testKt10569() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/enum/kt10569.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt18254.kt")
|
||||
public void testKt18254() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/enum/kt18254.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("valueOf.kt")
|
||||
public void testValueOf() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/enum/valueOf.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("valueOfCapturedType.kt")
|
||||
public void testValueOfCapturedType() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/enum/valueOfCapturedType.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("valueOfChain.kt")
|
||||
public void testValueOfChain() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/enum/valueOfChain.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("valueOfChainCapturedType.kt")
|
||||
public void testValueOfChainCapturedType() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/enum/valueOfChainCapturedType.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("valueOfNonReified.kt")
|
||||
public void testValueOfNonReified() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/enum/valueOfNonReified.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("values.kt")
|
||||
public void testValues() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/enum/values.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("valuesAsArray.kt")
|
||||
public void testValuesAsArray() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/enum/valuesAsArray.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("valuesCapturedType.kt")
|
||||
public void testValuesCapturedType() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/enum/valuesCapturedType.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("valuesChain.kt")
|
||||
public void testValuesChain() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/enum/valuesChain.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("valuesChainCapturedType.kt")
|
||||
public void testValuesChainCapturedType() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/enum/valuesChainCapturedType.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("valuesNonReified.kt")
|
||||
public void testValuesNonReified() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/enum/valuesNonReified.kt");
|
||||
}
|
||||
}
|
||||
Generated
-465
@@ -1,465 +0,0 @@
|
||||
/*
|
||||
* Copyright 2010-2020 JetBrains s.r.o. and Kotlin Programming Language contributors.
|
||||
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
|
||||
*/
|
||||
|
||||
package org.jetbrains.kotlin.js.test.semantics;
|
||||
|
||||
import com.intellij.testFramework.TestDataPath;
|
||||
import org.jetbrains.kotlin.test.JUnit3RunnerWithInners;
|
||||
import org.jetbrains.kotlin.test.KotlinTestUtils;
|
||||
import org.jetbrains.kotlin.test.TargetBackend;
|
||||
import org.jetbrains.kotlin.test.TestMetadata;
|
||||
import org.junit.runner.RunWith;
|
||||
|
||||
import java.io.File;
|
||||
import java.util.regex.Pattern;
|
||||
|
||||
/** This class is generated by {@link org.jetbrains.kotlin.generators.tests.TestsPackage}. DO NOT MODIFY MANUALLY */
|
||||
@SuppressWarnings("all")
|
||||
@TestMetadata("compiler/testData/codegen/boxInline/defaultValues")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public class InlineDefaultValuesTestsGenerated extends AbstractInlineDefaultValuesTests {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS, testDataFilePath);
|
||||
}
|
||||
|
||||
@TestMetadata("33Parameters.kt")
|
||||
public void test33Parameters() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/defaultValues/33Parameters.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("33ParametersInConstructor.kt")
|
||||
public void test33ParametersInConstructor() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/defaultValues/33ParametersInConstructor.kt");
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInDefaultValues() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/defaultValues"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS, true);
|
||||
}
|
||||
|
||||
@TestMetadata("defaultInExtension.kt")
|
||||
public void testDefaultInExtension() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/defaultValues/defaultInExtension.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("defaultMethod.kt")
|
||||
public void testDefaultMethod() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/defaultValues/defaultMethod.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("defaultMethodInClass.kt")
|
||||
public void testDefaultMethodInClass() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/defaultValues/defaultMethodInClass.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("defaultParamRemapping.kt")
|
||||
public void testDefaultParamRemapping() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/defaultValues/defaultParamRemapping.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("inlineInDefaultParameter.kt")
|
||||
public void testInlineInDefaultParameter() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/defaultValues/inlineInDefaultParameter.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("inlineLambdaInNoInlineDefault.kt")
|
||||
public void testInlineLambdaInNoInlineDefault() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/defaultValues/inlineLambdaInNoInlineDefault.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt11479.kt")
|
||||
public void testKt11479() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/defaultValues/kt11479.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt11479InlinedDefaultParameter.kt")
|
||||
public void testKt11479InlinedDefaultParameter() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/defaultValues/kt11479InlinedDefaultParameter.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt14564.kt")
|
||||
public void testKt14564() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/defaultValues/kt14564.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt14564_2.kt")
|
||||
public void testKt14564_2() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/defaultValues/kt14564_2.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt16496.kt")
|
||||
public void testKt16496() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/defaultValues/kt16496.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt18689.kt")
|
||||
public void testKt18689() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/defaultValues/kt18689.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt18689_2.kt")
|
||||
public void testKt18689_2() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/defaultValues/kt18689_2.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt18689_3.kt")
|
||||
public void testKt18689_3() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/defaultValues/kt18689_3.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt18689_4.kt")
|
||||
public void testKt18689_4() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/defaultValues/kt18689_4.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt5685.kt")
|
||||
public void testKt5685() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/defaultValues/kt5685.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("simpleDefaultMethod.kt")
|
||||
public void testSimpleDefaultMethod() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/defaultValues/simpleDefaultMethod.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("varArgNoInline.kt")
|
||||
public void testVarArgNoInline() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/defaultValues/varArgNoInline.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class LambdaInlining extends AbstractInlineDefaultValuesTests {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInLambdaInlining() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS, true);
|
||||
}
|
||||
|
||||
@TestMetadata("checkLambdaClassIsPresent.kt")
|
||||
public void testCheckLambdaClassIsPresent() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/checkLambdaClassIsPresent.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("checkLambdaClassesArePresent.kt")
|
||||
public void testCheckLambdaClassesArePresent() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/checkLambdaClassesArePresent.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("checkObjectClassIsPresent.kt")
|
||||
public void testCheckObjectClassIsPresent() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/checkObjectClassIsPresent.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("checkStaticLambdaClassIsPresent.kt")
|
||||
public void testCheckStaticLambdaClassIsPresent() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/checkStaticLambdaClassIsPresent.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("checkStaticLambdaClassesArePresent.kt")
|
||||
public void testCheckStaticLambdaClassesArePresent() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/checkStaticLambdaClassesArePresent.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("checkStaticObjectClassIsPresent.kt")
|
||||
public void testCheckStaticObjectClassIsPresent() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/checkStaticObjectClassIsPresent.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("defaultCallInDefaultLambda.kt")
|
||||
public void testDefaultCallInDefaultLambda() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/defaultCallInDefaultLambda.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("defaultLambdaInNoInline.kt")
|
||||
public void testDefaultLambdaInNoInline() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/defaultLambdaInNoInline.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("differentInvokeSignature.kt")
|
||||
public void testDifferentInvokeSignature() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/differentInvokeSignature.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("genericLambda.kt")
|
||||
public void testGenericLambda() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/genericLambda.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("instanceCapturedInClass.kt")
|
||||
public void testInstanceCapturedInClass() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/instanceCapturedInClass.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("instanceCapturedInInterface.kt")
|
||||
public void testInstanceCapturedInInterface() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/instanceCapturedInInterface.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt21827.kt")
|
||||
public void testKt21827() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/kt21827.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt21946.kt")
|
||||
public void testKt21946() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/kt21946.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt24477.kt")
|
||||
public void testKt24477() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/kt24477.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt25106.kt")
|
||||
public void testKt25106() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/kt25106.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("noInline.kt")
|
||||
public void testNoInline() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/noInline.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("nonDefaultInlineInNoInline.kt")
|
||||
public void testNonDefaultInlineInNoInline() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/nonDefaultInlineInNoInline.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("receiverClash.kt")
|
||||
public void testReceiverClash() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/receiverClash.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("receiverClash2.kt")
|
||||
public void testReceiverClash2() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/receiverClash2.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("receiverClashInClass.kt")
|
||||
public void testReceiverClashInClass() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/receiverClashInClass.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("receiverClashInClass2.kt")
|
||||
public void testReceiverClashInClass2() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/receiverClashInClass2.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("simple.kt")
|
||||
public void testSimple() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/simple.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("simpleErased.kt")
|
||||
public void testSimpleErased() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/simpleErased.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("simpleErasedStaticInstance.kt")
|
||||
public void testSimpleErasedStaticInstance() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/simpleErasedStaticInstance.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("simpleExtension.kt")
|
||||
public void testSimpleExtension() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/simpleExtension.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("simpleGeneric.kt")
|
||||
public void testSimpleGeneric() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/simpleGeneric.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("simpleStaticInstance.kt")
|
||||
public void testSimpleStaticInstance() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/simpleStaticInstance.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("thisClash.kt")
|
||||
public void testThisClash() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/thisClash.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("thisClashInClass.kt")
|
||||
public void testThisClashInClass() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/thisClashInClass.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class CallableReferences extends AbstractInlineDefaultValuesTests {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInCallableReferences() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS, true);
|
||||
}
|
||||
|
||||
@TestMetadata("boundFunctionReference.kt")
|
||||
public void testBoundFunctionReference() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/boundFunctionReference.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("boundFunctionReferenceOnInt.kt")
|
||||
public void testBoundFunctionReferenceOnInt() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/boundFunctionReferenceOnInt.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("boundFunctionReferenceOnLong.kt")
|
||||
public void testBoundFunctionReferenceOnLong() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/boundFunctionReferenceOnLong.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("boundPropertyReference.kt")
|
||||
public void testBoundPropertyReference() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/boundPropertyReference.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("boundPropertyReferenceOnInt.kt")
|
||||
public void testBoundPropertyReferenceOnInt() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/boundPropertyReferenceOnInt.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("boundPropertyReferenceOnLong.kt")
|
||||
public void testBoundPropertyReferenceOnLong() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/boundPropertyReferenceOnLong.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("constuctorReference.kt")
|
||||
public void testConstuctorReference() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/constuctorReference.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("differentInvokeSignature.kt")
|
||||
public void testDifferentInvokeSignature() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/differentInvokeSignature.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("differentInvokeSignature2.kt")
|
||||
public void testDifferentInvokeSignature2() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/differentInvokeSignature2.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("functionImportedFromObject.kt")
|
||||
public void testFunctionImportedFromObject() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/functionImportedFromObject.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("functionReference.kt")
|
||||
public void testFunctionReference() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/functionReference.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("functionReferenceFromClass.kt")
|
||||
public void testFunctionReferenceFromClass() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/functionReferenceFromClass.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("functionReferenceFromObject.kt")
|
||||
public void testFunctionReferenceFromObject() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/functionReferenceFromObject.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("innerClassConstuctorReference.kt")
|
||||
public void testInnerClassConstuctorReference() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/innerClassConstuctorReference.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("mutableBoundPropertyReferenceFromClass.kt")
|
||||
public void testMutableBoundPropertyReferenceFromClass() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/mutableBoundPropertyReferenceFromClass.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("mutablePropertyReferenceFromClass.kt")
|
||||
public void testMutablePropertyReferenceFromClass() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/mutablePropertyReferenceFromClass.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("privateFunctionReference.kt")
|
||||
public void testPrivateFunctionReference() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/privateFunctionReference.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("privatePropertyReference.kt")
|
||||
public void testPrivatePropertyReference() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/privatePropertyReference.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("propertyImportedFromObject.kt")
|
||||
public void testPropertyImportedFromObject() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/propertyImportedFromObject.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("propertyReference.kt")
|
||||
public void testPropertyReference() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/propertyReference.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("propertyReferenceFromClass.kt")
|
||||
public void testPropertyReferenceFromClass() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/propertyReferenceFromClass.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("propertyReferenceFromObject.kt")
|
||||
public void testPropertyReferenceFromObject() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/propertyReferenceFromObject.kt");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/codegen/boxInline/defaultValues/maskElimination")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class MaskElimination extends AbstractInlineDefaultValuesTests {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS, testDataFilePath);
|
||||
}
|
||||
|
||||
@TestMetadata("32Parameters.kt")
|
||||
public void test32Parameters() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/defaultValues/maskElimination/32Parameters.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("33Parameters.kt")
|
||||
public void test33Parameters() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/defaultValues/maskElimination/33Parameters.kt");
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInMaskElimination() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/defaultValues/maskElimination"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS, true);
|
||||
}
|
||||
|
||||
@TestMetadata("kt18792.kt")
|
||||
public void testKt18792() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/defaultValues/maskElimination/kt18792.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt19679.kt")
|
||||
public void testKt19679() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/defaultValues/maskElimination/kt19679.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt19679_2.kt")
|
||||
public void testKt19679_2() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/defaultValues/maskElimination/kt19679_2.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt19679_3.kt")
|
||||
public void testKt19679_3() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/defaultValues/maskElimination/kt19679_3.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("simple.kt")
|
||||
public void testSimple() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/defaultValues/maskElimination/simple.kt");
|
||||
}
|
||||
}
|
||||
}
|
||||
-392
@@ -1,392 +0,0 @@
|
||||
/*
|
||||
* Copyright 2010-2020 JetBrains s.r.o. and Kotlin Programming Language contributors.
|
||||
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
|
||||
*/
|
||||
|
||||
package org.jetbrains.kotlin.js.test.semantics;
|
||||
|
||||
import com.intellij.testFramework.TestDataPath;
|
||||
import org.jetbrains.kotlin.test.JUnit3RunnerWithInners;
|
||||
import org.jetbrains.kotlin.test.KotlinTestUtils;
|
||||
import org.jetbrains.kotlin.test.TargetBackend;
|
||||
import org.jetbrains.kotlin.test.TestMetadata;
|
||||
import org.junit.runner.RunWith;
|
||||
|
||||
import java.io.File;
|
||||
import java.util.regex.Pattern;
|
||||
|
||||
/** This class is generated by {@link org.jetbrains.kotlin.generators.tests.TestsPackage}. DO NOT MODIFY MANUALLY */
|
||||
@SuppressWarnings("all")
|
||||
@TestMetadata("compiler/testData/codegen/boxInline/suspend")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public class InlineSuspendTestsGenerated extends AbstractInlineSuspendTests {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS, testDataFilePath);
|
||||
}
|
||||
|
||||
private void runTestWithPackageReplacement(String testDataFilePath, String packageName) throws Exception {
|
||||
KotlinTestUtils.runTest0(filePath -> doTestWithCoroutinesPackageReplacement(filePath, packageName), TargetBackend.JS, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInSuspend() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/suspend"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS, true);
|
||||
}
|
||||
|
||||
@TestMetadata("capturedVariables.kt")
|
||||
public void testCapturedVariables_1_3() throws Exception {
|
||||
runTestWithPackageReplacement("compiler/testData/codegen/boxInline/suspend/capturedVariables.kt", "kotlin.coroutines");
|
||||
}
|
||||
|
||||
@TestMetadata("crossinlineSuspendLambdaInsideCrossinlineSuspendLambda.kt")
|
||||
public void testCrossinlineSuspendLambdaInsideCrossinlineSuspendLambda_1_3() throws Exception {
|
||||
runTestWithPackageReplacement("compiler/testData/codegen/boxInline/suspend/crossinlineSuspendLambdaInsideCrossinlineSuspendLambda.kt", "kotlin.coroutines");
|
||||
}
|
||||
|
||||
@TestMetadata("doubleRegenerationWithNonSuspendingLambda.kt")
|
||||
public void testDoubleRegenerationWithNonSuspendingLambda_1_3() throws Exception {
|
||||
runTestWithPackageReplacement("compiler/testData/codegen/boxInline/suspend/doubleRegenerationWithNonSuspendingLambda.kt", "kotlin.coroutines");
|
||||
}
|
||||
|
||||
@TestMetadata("inlineOrdinaryOfCrossinlineSuspend.kt")
|
||||
public void testInlineOrdinaryOfCrossinlineSuspend_1_3() throws Exception {
|
||||
runTestWithPackageReplacement("compiler/testData/codegen/boxInline/suspend/inlineOrdinaryOfCrossinlineSuspend.kt", "kotlin.coroutines");
|
||||
}
|
||||
|
||||
@TestMetadata("inlineOrdinaryOfNoinlineSuspend.kt")
|
||||
public void testInlineOrdinaryOfNoinlineSuspend_1_3() throws Exception {
|
||||
runTestWithPackageReplacement("compiler/testData/codegen/boxInline/suspend/inlineOrdinaryOfNoinlineSuspend.kt", "kotlin.coroutines");
|
||||
}
|
||||
|
||||
@TestMetadata("inlineSuspendOfCrossinlineOrdinary.kt")
|
||||
public void testInlineSuspendOfCrossinlineOrdinary_1_3() throws Exception {
|
||||
runTestWithPackageReplacement("compiler/testData/codegen/boxInline/suspend/inlineSuspendOfCrossinlineOrdinary.kt", "kotlin.coroutines");
|
||||
}
|
||||
|
||||
@TestMetadata("inlineSuspendOfCrossinlineSuspend.kt")
|
||||
public void testInlineSuspendOfCrossinlineSuspend_1_3() throws Exception {
|
||||
runTestWithPackageReplacement("compiler/testData/codegen/boxInline/suspend/inlineSuspendOfCrossinlineSuspend.kt", "kotlin.coroutines");
|
||||
}
|
||||
|
||||
@TestMetadata("inlineSuspendOfNoinlineOrdinary.kt")
|
||||
public void testInlineSuspendOfNoinlineOrdinary_1_3() throws Exception {
|
||||
runTestWithPackageReplacement("compiler/testData/codegen/boxInline/suspend/inlineSuspendOfNoinlineOrdinary.kt", "kotlin.coroutines");
|
||||
}
|
||||
|
||||
@TestMetadata("inlineSuspendOfNoinlineSuspend.kt")
|
||||
public void testInlineSuspendOfNoinlineSuspend_1_3() throws Exception {
|
||||
runTestWithPackageReplacement("compiler/testData/codegen/boxInline/suspend/inlineSuspendOfNoinlineSuspend.kt", "kotlin.coroutines");
|
||||
}
|
||||
|
||||
@TestMetadata("inlineSuspendOfOrdinary.kt")
|
||||
public void testInlineSuspendOfOrdinary_1_3() throws Exception {
|
||||
runTestWithPackageReplacement("compiler/testData/codegen/boxInline/suspend/inlineSuspendOfOrdinary.kt", "kotlin.coroutines");
|
||||
}
|
||||
|
||||
@TestMetadata("inlineSuspendOfSuspend.kt")
|
||||
public void testInlineSuspendOfSuspend_1_3() throws Exception {
|
||||
runTestWithPackageReplacement("compiler/testData/codegen/boxInline/suspend/inlineSuspendOfSuspend.kt", "kotlin.coroutines");
|
||||
}
|
||||
|
||||
@TestMetadata("kt26658.kt")
|
||||
public void testKt26658() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/suspend/kt26658.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("maxStackWithCrossinline.kt")
|
||||
public void testMaxStackWithCrossinline_1_3() throws Exception {
|
||||
runTestWithPackageReplacement("compiler/testData/codegen/boxInline/suspend/maxStackWithCrossinline.kt", "kotlin.coroutines");
|
||||
}
|
||||
|
||||
@TestMetadata("multipleLocals.kt")
|
||||
public void testMultipleLocals_1_3() throws Exception {
|
||||
runTestWithPackageReplacement("compiler/testData/codegen/boxInline/suspend/multipleLocals.kt", "kotlin.coroutines");
|
||||
}
|
||||
|
||||
@TestMetadata("multipleSuspensionPoints.kt")
|
||||
public void testMultipleSuspensionPoints_1_3() throws Exception {
|
||||
runTestWithPackageReplacement("compiler/testData/codegen/boxInline/suspend/multipleSuspensionPoints.kt", "kotlin.coroutines");
|
||||
}
|
||||
|
||||
@TestMetadata("nonSuspendCrossinline.kt")
|
||||
public void testNonSuspendCrossinline_1_3() throws Exception {
|
||||
runTestWithPackageReplacement("compiler/testData/codegen/boxInline/suspend/nonSuspendCrossinline.kt", "kotlin.coroutines");
|
||||
}
|
||||
|
||||
@TestMetadata("returnValue.kt")
|
||||
public void testReturnValue_1_3() throws Exception {
|
||||
runTestWithPackageReplacement("compiler/testData/codegen/boxInline/suspend/returnValue.kt", "kotlin.coroutines");
|
||||
}
|
||||
|
||||
@TestMetadata("tryCatchReceiver.kt")
|
||||
public void testTryCatchReceiver_1_3() throws Exception {
|
||||
runTestWithPackageReplacement("compiler/testData/codegen/boxInline/suspend/tryCatchReceiver.kt", "kotlin.coroutines");
|
||||
}
|
||||
|
||||
@TestMetadata("tryCatchStackTransform.kt")
|
||||
public void testTryCatchStackTransform_1_3() throws Exception {
|
||||
runTestWithPackageReplacement("compiler/testData/codegen/boxInline/suspend/tryCatchStackTransform.kt", "kotlin.coroutines");
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/codegen/boxInline/suspend/callableReference")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class CallableReference extends AbstractInlineSuspendTests {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInCallableReference() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/suspend/callableReference"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS, true);
|
||||
}
|
||||
|
||||
@TestMetadata("simple.kt")
|
||||
public void testSimple() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/suspend/callableReference/simple.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/codegen/boxInline/suspend/defaultParameter")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class DefaultParameter extends AbstractInlineSuspendTests {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS, testDataFilePath);
|
||||
}
|
||||
|
||||
private void runTestWithPackageReplacement(String testDataFilePath, String packageName) throws Exception {
|
||||
KotlinTestUtils.runTest0(filePath -> doTestWithCoroutinesPackageReplacement(filePath, packageName), TargetBackend.JS, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInDefaultParameter() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/suspend/defaultParameter"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS, true);
|
||||
}
|
||||
|
||||
@TestMetadata("defaultValueCrossinline.kt")
|
||||
public void testDefaultValueCrossinline_1_3() throws Exception {
|
||||
runTestWithPackageReplacement("compiler/testData/codegen/boxInline/suspend/defaultParameter/defaultValueCrossinline.kt", "kotlin.coroutines");
|
||||
}
|
||||
|
||||
@TestMetadata("defaultValueInClass.kt")
|
||||
public void testDefaultValueInClass() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/suspend/defaultParameter/defaultValueInClass.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("defaultValueInlineFromMultiFileFacade.kt")
|
||||
public void testDefaultValueInlineFromMultiFileFacade_1_3() throws Exception {
|
||||
runTestWithPackageReplacement("compiler/testData/codegen/boxInline/suspend/defaultParameter/defaultValueInlineFromMultiFileFacade.kt", "kotlin.coroutines");
|
||||
}
|
||||
|
||||
@TestMetadata("defaultValueInline.kt")
|
||||
public void testDefaultValueInline_1_3() throws Exception {
|
||||
runTestWithPackageReplacement("compiler/testData/codegen/boxInline/suspend/defaultParameter/defaultValueInline.kt", "kotlin.coroutines");
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/codegen/boxInline/suspend/inlineUsedAsNoinline")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class InlineUsedAsNoinline extends AbstractInlineSuspendTests {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInInlineUsedAsNoinline() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/suspend/inlineUsedAsNoinline"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS, true);
|
||||
}
|
||||
|
||||
@TestMetadata("inlineOnly.kt")
|
||||
public void testInlineOnly() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/suspend/inlineUsedAsNoinline/inlineOnly.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("simpleNamed.kt")
|
||||
public void testSimpleNamed() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/suspend/inlineUsedAsNoinline/simpleNamed.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/codegen/boxInline/suspend/receiver")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class Receiver extends AbstractInlineSuspendTests {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS, testDataFilePath);
|
||||
}
|
||||
|
||||
private void runTestWithPackageReplacement(String testDataFilePath, String packageName) throws Exception {
|
||||
KotlinTestUtils.runTest0(filePath -> doTestWithCoroutinesPackageReplacement(filePath, packageName), TargetBackend.JS, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInReceiver() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/suspend/receiver"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS, true);
|
||||
}
|
||||
|
||||
@TestMetadata("inlineOrdinaryOfCrossinlineSuspend.kt")
|
||||
public void testInlineOrdinaryOfCrossinlineSuspend_1_3() throws Exception {
|
||||
runTestWithPackageReplacement("compiler/testData/codegen/boxInline/suspend/receiver/inlineOrdinaryOfCrossinlineSuspend.kt", "kotlin.coroutines");
|
||||
}
|
||||
|
||||
@TestMetadata("inlineOrdinaryOfNoinlineSuspend.kt")
|
||||
public void testInlineOrdinaryOfNoinlineSuspend_1_3() throws Exception {
|
||||
runTestWithPackageReplacement("compiler/testData/codegen/boxInline/suspend/receiver/inlineOrdinaryOfNoinlineSuspend.kt", "kotlin.coroutines");
|
||||
}
|
||||
|
||||
@TestMetadata("inlineSuspendOfCrossinlineOrdinary.kt")
|
||||
public void testInlineSuspendOfCrossinlineOrdinary_1_3() throws Exception {
|
||||
runTestWithPackageReplacement("compiler/testData/codegen/boxInline/suspend/receiver/inlineSuspendOfCrossinlineOrdinary.kt", "kotlin.coroutines");
|
||||
}
|
||||
|
||||
@TestMetadata("inlineSuspendOfCrossinlineSuspend.kt")
|
||||
public void testInlineSuspendOfCrossinlineSuspend_1_3() throws Exception {
|
||||
runTestWithPackageReplacement("compiler/testData/codegen/boxInline/suspend/receiver/inlineSuspendOfCrossinlineSuspend.kt", "kotlin.coroutines");
|
||||
}
|
||||
|
||||
@TestMetadata("inlineSuspendOfNoinlineOrdinary.kt")
|
||||
public void testInlineSuspendOfNoinlineOrdinary_1_3() throws Exception {
|
||||
runTestWithPackageReplacement("compiler/testData/codegen/boxInline/suspend/receiver/inlineSuspendOfNoinlineOrdinary.kt", "kotlin.coroutines");
|
||||
}
|
||||
|
||||
@TestMetadata("inlineSuspendOfNoinlineSuspend.kt")
|
||||
public void testInlineSuspendOfNoinlineSuspend_1_3() throws Exception {
|
||||
runTestWithPackageReplacement("compiler/testData/codegen/boxInline/suspend/receiver/inlineSuspendOfNoinlineSuspend.kt", "kotlin.coroutines");
|
||||
}
|
||||
|
||||
@TestMetadata("inlineSuspendOfOrdinary.kt")
|
||||
public void testInlineSuspendOfOrdinary_1_3() throws Exception {
|
||||
runTestWithPackageReplacement("compiler/testData/codegen/boxInline/suspend/receiver/inlineSuspendOfOrdinary.kt", "kotlin.coroutines");
|
||||
}
|
||||
|
||||
@TestMetadata("inlineSuspendOfSuspend.kt")
|
||||
public void testInlineSuspendOfSuspend_1_3() throws Exception {
|
||||
runTestWithPackageReplacement("compiler/testData/codegen/boxInline/suspend/receiver/inlineSuspendOfSuspend.kt", "kotlin.coroutines");
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/codegen/boxInline/suspend/stateMachine")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class StateMachine extends AbstractInlineSuspendTests {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS, testDataFilePath);
|
||||
}
|
||||
|
||||
private void runTestWithPackageReplacement(String testDataFilePath, String packageName) throws Exception {
|
||||
KotlinTestUtils.runTest0(filePath -> doTestWithCoroutinesPackageReplacement(filePath, packageName), TargetBackend.JS, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInStateMachine() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/suspend/stateMachine"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS, true);
|
||||
}
|
||||
|
||||
@TestMetadata("crossingCoroutineBoundaries.kt")
|
||||
public void testCrossingCoroutineBoundaries_1_3() throws Exception {
|
||||
runTestWithPackageReplacement("compiler/testData/codegen/boxInline/suspend/stateMachine/crossingCoroutineBoundaries.kt", "kotlin.coroutines");
|
||||
}
|
||||
|
||||
@TestMetadata("independentInline.kt")
|
||||
public void testIndependentInline_1_3() throws Exception {
|
||||
runTestWithPackageReplacement("compiler/testData/codegen/boxInline/suspend/stateMachine/independentInline.kt", "kotlin.coroutines");
|
||||
}
|
||||
|
||||
@TestMetadata("innerLambdaInsideLambda.kt")
|
||||
public void testInnerLambdaInsideLambda_1_3() throws Exception {
|
||||
runTestWithPackageReplacement("compiler/testData/codegen/boxInline/suspend/stateMachine/innerLambdaInsideLambda.kt", "kotlin.coroutines");
|
||||
}
|
||||
|
||||
@TestMetadata("innerLambdaWithoutCrossinline.kt")
|
||||
public void testInnerLambdaWithoutCrossinline_1_3() throws Exception {
|
||||
runTestWithPackageReplacement("compiler/testData/codegen/boxInline/suspend/stateMachine/innerLambdaWithoutCrossinline.kt", "kotlin.coroutines");
|
||||
}
|
||||
|
||||
@TestMetadata("innerLambda.kt")
|
||||
public void testInnerLambda_1_3() throws Exception {
|
||||
runTestWithPackageReplacement("compiler/testData/codegen/boxInline/suspend/stateMachine/innerLambda.kt", "kotlin.coroutines");
|
||||
}
|
||||
|
||||
@TestMetadata("innerMadnessCallSite.kt")
|
||||
public void testInnerMadnessCallSite_1_3() throws Exception {
|
||||
runTestWithPackageReplacement("compiler/testData/codegen/boxInline/suspend/stateMachine/innerMadnessCallSite.kt", "kotlin.coroutines");
|
||||
}
|
||||
|
||||
@TestMetadata("innerMadness.kt")
|
||||
public void testInnerMadness_1_3() throws Exception {
|
||||
runTestWithPackageReplacement("compiler/testData/codegen/boxInline/suspend/stateMachine/innerMadness.kt", "kotlin.coroutines");
|
||||
}
|
||||
|
||||
@TestMetadata("innerObjectInsideInnerObject.kt")
|
||||
public void testInnerObjectInsideInnerObject_1_3() throws Exception {
|
||||
runTestWithPackageReplacement("compiler/testData/codegen/boxInline/suspend/stateMachine/innerObjectInsideInnerObject.kt", "kotlin.coroutines");
|
||||
}
|
||||
|
||||
@TestMetadata("innerObjectRetransformation.kt")
|
||||
public void testInnerObjectRetransformation_1_3() throws Exception {
|
||||
runTestWithPackageReplacement("compiler/testData/codegen/boxInline/suspend/stateMachine/innerObjectRetransformation.kt", "kotlin.coroutines");
|
||||
}
|
||||
|
||||
@TestMetadata("innerObjectSeveralFunctions.kt")
|
||||
public void testInnerObjectSeveralFunctions_1_3() throws Exception {
|
||||
runTestWithPackageReplacement("compiler/testData/codegen/boxInline/suspend/stateMachine/innerObjectSeveralFunctions.kt", "kotlin.coroutines");
|
||||
}
|
||||
|
||||
@TestMetadata("innerObjectWithoutCapturingCrossinline.kt")
|
||||
public void testInnerObjectWithoutCapturingCrossinline_1_3() throws Exception {
|
||||
runTestWithPackageReplacement("compiler/testData/codegen/boxInline/suspend/stateMachine/innerObjectWithoutCapturingCrossinline.kt", "kotlin.coroutines");
|
||||
}
|
||||
|
||||
@TestMetadata("innerObject.kt")
|
||||
public void testInnerObject_1_3() throws Exception {
|
||||
runTestWithPackageReplacement("compiler/testData/codegen/boxInline/suspend/stateMachine/innerObject.kt", "kotlin.coroutines");
|
||||
}
|
||||
|
||||
@TestMetadata("insideObject.kt")
|
||||
public void testInsideObject_1_3() throws Exception {
|
||||
runTestWithPackageReplacement("compiler/testData/codegen/boxInline/suspend/stateMachine/insideObject.kt", "kotlin.coroutines");
|
||||
}
|
||||
|
||||
@TestMetadata("lambdaTransformation.kt")
|
||||
public void testLambdaTransformation() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/suspend/stateMachine/lambdaTransformation.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("normalInline.kt")
|
||||
public void testNormalInline_1_3() throws Exception {
|
||||
runTestWithPackageReplacement("compiler/testData/codegen/boxInline/suspend/stateMachine/normalInline.kt", "kotlin.coroutines");
|
||||
}
|
||||
|
||||
@TestMetadata("numberOfSuspentions.kt")
|
||||
public void testNumberOfSuspentions_1_3() throws Exception {
|
||||
runTestWithPackageReplacement("compiler/testData/codegen/boxInline/suspend/stateMachine/numberOfSuspentions.kt", "kotlin.coroutines");
|
||||
}
|
||||
|
||||
@TestMetadata("objectInsideLambdas.kt")
|
||||
public void testObjectInsideLambdas_1_3() throws Exception {
|
||||
runTestWithPackageReplacement("compiler/testData/codegen/boxInline/suspend/stateMachine/objectInsideLambdas.kt", "kotlin.coroutines");
|
||||
}
|
||||
|
||||
@TestMetadata("oneInlineTwoCaptures.kt")
|
||||
public void testOneInlineTwoCaptures_1_3() throws Exception {
|
||||
runTestWithPackageReplacement("compiler/testData/codegen/boxInline/suspend/stateMachine/oneInlineTwoCaptures.kt", "kotlin.coroutines");
|
||||
}
|
||||
|
||||
@TestMetadata("passLambda.kt")
|
||||
public void testPassLambda_1_3() throws Exception {
|
||||
runTestWithPackageReplacement("compiler/testData/codegen/boxInline/suspend/stateMachine/passLambda.kt", "kotlin.coroutines");
|
||||
}
|
||||
|
||||
@TestMetadata("passParameterLambda.kt")
|
||||
public void testPassParameterLambda_1_3() throws Exception {
|
||||
runTestWithPackageReplacement("compiler/testData/codegen/boxInline/suspend/stateMachine/passParameterLambda.kt", "kotlin.coroutines");
|
||||
}
|
||||
|
||||
@TestMetadata("passParameter.kt")
|
||||
public void testPassParameter_1_3() throws Exception {
|
||||
runTestWithPackageReplacement("compiler/testData/codegen/boxInline/suspend/stateMachine/passParameter.kt", "kotlin.coroutines");
|
||||
}
|
||||
|
||||
@TestMetadata("unreachableSuspendMarker.kt")
|
||||
public void testUnreachableSuspendMarker_1_3() throws Exception {
|
||||
runTestWithPackageReplacement("compiler/testData/codegen/boxInline/suspend/stateMachine/unreachableSuspendMarker.kt", "kotlin.coroutines");
|
||||
}
|
||||
}
|
||||
}
|
||||
+3788
File diff suppressed because it is too large
Load Diff
Generated
-106
@@ -1,106 +0,0 @@
|
||||
/*
|
||||
* Copyright 2010-2020 JetBrains s.r.o. and Kotlin Programming Language contributors.
|
||||
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
|
||||
*/
|
||||
|
||||
package org.jetbrains.kotlin.js.test.semantics;
|
||||
|
||||
import com.intellij.testFramework.TestDataPath;
|
||||
import org.jetbrains.kotlin.test.JUnit3RunnerWithInners;
|
||||
import org.jetbrains.kotlin.test.KotlinTestUtils;
|
||||
import org.jetbrains.kotlin.test.TargetBackend;
|
||||
import org.jetbrains.kotlin.test.TestMetadata;
|
||||
import org.junit.runner.RunWith;
|
||||
|
||||
import java.io.File;
|
||||
import java.util.regex.Pattern;
|
||||
|
||||
/** This class is generated by {@link org.jetbrains.kotlin.generators.tests.TestsPackage}. DO NOT MODIFY MANUALLY */
|
||||
@SuppressWarnings("all")
|
||||
@TestMetadata("compiler/testData/codegen/boxInline/contracts")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public class JsInlineContractsTestsGenerated extends AbstractJsInlineContractsTests {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInContracts() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/contracts"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS, true);
|
||||
}
|
||||
|
||||
@TestMetadata("cfgDependendValInitialization.kt")
|
||||
public void testCfgDependendValInitialization() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/contracts/cfgDependendValInitialization.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("complexInitializer.kt")
|
||||
public void testComplexInitializer() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/contracts/complexInitializer.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("complexInitializerWithStackTransformation.kt")
|
||||
public void testComplexInitializerWithStackTransformation() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/contracts/complexInitializerWithStackTransformation.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("crossinlineCallableReference.kt")
|
||||
public void testCrossinlineCallableReference() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/contracts/crossinlineCallableReference.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("definiteLongValInitialization.kt")
|
||||
public void testDefiniteLongValInitialization() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/contracts/definiteLongValInitialization.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("definiteNestedValInitialization.kt")
|
||||
public void testDefiniteNestedValInitialization() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/contracts/definiteNestedValInitialization.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("definiteValInitInInitializer.kt")
|
||||
public void testDefiniteValInitInInitializer() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/contracts/definiteValInitInInitializer.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("definiteValInitialization.kt")
|
||||
public void testDefiniteValInitialization() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/contracts/definiteValInitialization.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("exactlyOnceCrossinline.kt")
|
||||
public void testExactlyOnceCrossinline() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/contracts/exactlyOnceCrossinline.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("exactlyOnceCrossinline2.kt")
|
||||
public void testExactlyOnceCrossinline2() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/contracts/exactlyOnceCrossinline2.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("exactlyOnceNoinline.kt")
|
||||
public void testExactlyOnceNoinline() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/contracts/exactlyOnceNoinline.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("nonLocalReturn.kt")
|
||||
public void testNonLocalReturn() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/contracts/nonLocalReturn.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("nonLocalReturnWithCycle.kt")
|
||||
public void testNonLocalReturnWithCycle() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/contracts/nonLocalReturnWithCycle.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("propertyInitialization.kt")
|
||||
public void testPropertyInitialization() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/contracts/propertyInitialization.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("valInitializationAndUsageInNestedLambda.kt")
|
||||
public void testValInitializationAndUsageInNestedLambda() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/contracts/valInitializationAndUsageInNestedLambda.kt");
|
||||
}
|
||||
}
|
||||
Generated
-36
@@ -1,36 +0,0 @@
|
||||
/*
|
||||
* Copyright 2010-2020 JetBrains s.r.o. and Kotlin Programming Language contributors.
|
||||
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
|
||||
*/
|
||||
|
||||
package org.jetbrains.kotlin.js.test.semantics;
|
||||
|
||||
import com.intellij.testFramework.TestDataPath;
|
||||
import org.jetbrains.kotlin.test.JUnit3RunnerWithInners;
|
||||
import org.jetbrains.kotlin.test.KotlinTestUtils;
|
||||
import org.jetbrains.kotlin.test.TargetBackend;
|
||||
import org.jetbrains.kotlin.test.TestMetadata;
|
||||
import org.junit.runner.RunWith;
|
||||
|
||||
import java.io.File;
|
||||
import java.util.regex.Pattern;
|
||||
|
||||
/** This class is generated by {@link org.jetbrains.kotlin.generators.tests.TestsPackage}. DO NOT MODIFY MANUALLY */
|
||||
@SuppressWarnings("all")
|
||||
@TestMetadata("compiler/testData/codegen/boxInline/multiModule")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public class JsInlineMultiModuleTestsGenerated extends AbstractJsInlineMultiModuleTests {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInMultiModule() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/multiModule"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS, true);
|
||||
}
|
||||
|
||||
@TestMetadata("tryCatchWithRecursiveInline.kt")
|
||||
public void testTryCatchWithRecursiveInline() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/multiModule/tryCatchWithRecursiveInline.kt");
|
||||
}
|
||||
}
|
||||
-66
@@ -1,66 +0,0 @@
|
||||
/*
|
||||
* Copyright 2010-2020 JetBrains s.r.o. and Kotlin Programming Language contributors.
|
||||
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
|
||||
*/
|
||||
|
||||
package org.jetbrains.kotlin.js.test.semantics;
|
||||
|
||||
import com.intellij.testFramework.TestDataPath;
|
||||
import org.jetbrains.kotlin.test.JUnit3RunnerWithInners;
|
||||
import org.jetbrains.kotlin.test.KotlinTestUtils;
|
||||
import org.jetbrains.kotlin.test.TargetBackend;
|
||||
import org.jetbrains.kotlin.test.TestMetadata;
|
||||
import org.junit.runner.RunWith;
|
||||
|
||||
import java.io.File;
|
||||
import java.util.regex.Pattern;
|
||||
|
||||
/** This class is generated by {@link org.jetbrains.kotlin.generators.tests.TestsPackage}. DO NOT MODIFY MANUALLY */
|
||||
@SuppressWarnings("all")
|
||||
@TestMetadata("compiler/testData/codegen/boxInline/noInline")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public class NoInlineTestsGenerated extends AbstractNoInlineTests {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInNoInline() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/noInline"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS, true);
|
||||
}
|
||||
|
||||
@TestMetadata("extensionReceiver.kt")
|
||||
public void testExtensionReceiver() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/noInline/extensionReceiver.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("lambdaAsGeneric.kt")
|
||||
public void testLambdaAsGeneric() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/noInline/lambdaAsGeneric.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("lambdaAsNonFunction.kt")
|
||||
public void testLambdaAsNonFunction() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/noInline/lambdaAsNonFunction.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("noInline.kt")
|
||||
public void testNoInline() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/noInline/noInline.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("noInlineLambdaChain.kt")
|
||||
public void testNoInlineLambdaChain() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/noInline/noInlineLambdaChain.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("noInlineLambdaChainWithCapturedInline.kt")
|
||||
public void testNoInlineLambdaChainWithCapturedInline() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/noInline/noInlineLambdaChainWithCapturedInline.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("withoutInline.kt")
|
||||
public void testWithoutInline() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/noInline/withoutInline.kt");
|
||||
}
|
||||
}
|
||||
-502
@@ -1,502 +0,0 @@
|
||||
/*
|
||||
* Copyright 2010-2020 JetBrains s.r.o. and Kotlin Programming Language contributors.
|
||||
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
|
||||
*/
|
||||
|
||||
package org.jetbrains.kotlin.js.test.semantics;
|
||||
|
||||
import com.intellij.testFramework.TestDataPath;
|
||||
import org.jetbrains.kotlin.test.JUnit3RunnerWithInners;
|
||||
import org.jetbrains.kotlin.test.KotlinTestUtils;
|
||||
import org.jetbrains.kotlin.test.TargetBackend;
|
||||
import org.jetbrains.kotlin.test.TestMetadata;
|
||||
import org.junit.runner.RunWith;
|
||||
|
||||
import java.io.File;
|
||||
import java.util.regex.Pattern;
|
||||
|
||||
/** This class is generated by {@link org.jetbrains.kotlin.generators.tests.TestsPackage}. DO NOT MODIFY MANUALLY */
|
||||
@SuppressWarnings("all")
|
||||
@TestMetadata("compiler/testData/codegen/boxInline/nonLocalReturns")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public class NonLocalReturnsTestGenerated extends AbstractNonLocalReturnsTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInNonLocalReturns() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/nonLocalReturns"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS, true);
|
||||
}
|
||||
|
||||
@TestMetadata("explicitLocalReturn.kt")
|
||||
public void testExplicitLocalReturn() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/nonLocalReturns/explicitLocalReturn.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("fromInterfaceDefaultGetter.kt")
|
||||
public void testFromInterfaceDefaultGetter() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/nonLocalReturns/fromInterfaceDefaultGetter.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("justReturnInLambda.kt")
|
||||
public void testJustReturnInLambda() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/nonLocalReturns/justReturnInLambda.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt5199.kt")
|
||||
public void testKt5199() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/nonLocalReturns/kt5199.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt8948.kt")
|
||||
public void testKt8948() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/nonLocalReturns/kt8948.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt8948v2.kt")
|
||||
public void testKt8948v2() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/nonLocalReturns/kt8948v2.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("nestedNonLocals.kt")
|
||||
public void testNestedNonLocals() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/nonLocalReturns/nestedNonLocals.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("noInlineLocalReturn.kt")
|
||||
public void testNoInlineLocalReturn() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/nonLocalReturns/noInlineLocalReturn.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("nonLocalReturnFromOuterLambda.kt")
|
||||
public void testNonLocalReturnFromOuterLambda() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/nonLocalReturns/nonLocalReturnFromOuterLambda.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("propertyAccessors.kt")
|
||||
public void testPropertyAccessors() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/nonLocalReturns/propertyAccessors.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("returnFromFunctionExpr.kt")
|
||||
public void testReturnFromFunctionExpr() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/nonLocalReturns/returnFromFunctionExpr.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("simple.kt")
|
||||
public void testSimple() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/nonLocalReturns/simple.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("simpleFunctional.kt")
|
||||
public void testSimpleFunctional() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/nonLocalReturns/simpleFunctional.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("simpleVoid.kt")
|
||||
public void testSimpleVoid() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/nonLocalReturns/simpleVoid.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/codegen/boxInline/nonLocalReturns/deparenthesize")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class Deparenthesize extends AbstractNonLocalReturnsTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInDeparenthesize() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/nonLocalReturns/deparenthesize"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS, true);
|
||||
}
|
||||
|
||||
@TestMetadata("bracket.kt")
|
||||
public void testBracket() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/nonLocalReturns/deparenthesize/bracket.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("labeled.kt")
|
||||
public void testLabeled() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/nonLocalReturns/deparenthesize/labeled.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class TryFinally extends AbstractNonLocalReturnsTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInTryFinally() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS, true);
|
||||
}
|
||||
|
||||
@TestMetadata("kt16417.kt")
|
||||
public void testKt16417() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/kt16417.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt20433.kt")
|
||||
public void testKt20433() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/kt20433.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt20433_2.kt")
|
||||
public void testKt20433_2() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/kt20433_2.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt20433_2_void.kt")
|
||||
public void testKt20433_2_void() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/kt20433_2_void.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt20433_void.kt")
|
||||
public void testKt20433_void() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/kt20433_void.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt26384.kt")
|
||||
public void testKt26384() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/kt26384.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt26384_2.kt")
|
||||
public void testKt26384_2() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/kt26384_2.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt28546.kt")
|
||||
public void testKt28546() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/kt28546.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt6956.kt")
|
||||
public void testKt6956() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/kt6956.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt7273.kt")
|
||||
public void testKt7273() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/kt7273.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("nonLocalReturnFromCatchBlock.kt")
|
||||
public void testNonLocalReturnFromCatchBlock() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/nonLocalReturnFromCatchBlock.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("nonLocalReturnFromOuterLambda.kt")
|
||||
public void testNonLocalReturnFromOuterLambda() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/nonLocalReturnFromOuterLambda.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("nonLocalReturnToCatchBlock.kt")
|
||||
public void testNonLocalReturnToCatchBlock() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/nonLocalReturnToCatchBlock.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/callSite")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class CallSite extends AbstractNonLocalReturnsTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInCallSite() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/callSite"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS, true);
|
||||
}
|
||||
|
||||
@TestMetadata("callSite.kt")
|
||||
public void testCallSite() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/callSite/callSite.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("callSiteComplex.kt")
|
||||
public void testCallSiteComplex() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/callSite/callSiteComplex.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("exceptionTableSplit.kt")
|
||||
public void testExceptionTableSplit() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/callSite/exceptionTableSplit.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("exceptionTableSplitNoReturn.kt")
|
||||
public void testExceptionTableSplitNoReturn() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/callSite/exceptionTableSplitNoReturn.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("finallyInFinally.kt")
|
||||
public void testFinallyInFinally() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/callSite/finallyInFinally.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("wrongVarInterval.kt")
|
||||
public void testWrongVarInterval() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/callSite/wrongVarInterval.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/chained")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class Chained extends AbstractNonLocalReturnsTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInChained() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/chained"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS, true);
|
||||
}
|
||||
|
||||
@TestMetadata("finallyInFinally.kt")
|
||||
public void testFinallyInFinally() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/chained/finallyInFinally.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("finallyInFinally2.kt")
|
||||
public void testFinallyInFinally2() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/chained/finallyInFinally2.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("intReturn.kt")
|
||||
public void testIntReturn() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/chained/intReturn.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("intReturnComplex.kt")
|
||||
public void testIntReturnComplex() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/chained/intReturnComplex.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("intReturnComplex2.kt")
|
||||
public void testIntReturnComplex2() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/chained/intReturnComplex2.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("intReturnComplex3.kt")
|
||||
public void testIntReturnComplex3() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/chained/intReturnComplex3.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("intReturnComplex4.kt")
|
||||
public void testIntReturnComplex4() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/chained/intReturnComplex4.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("nestedLambda.kt")
|
||||
public void testNestedLambda() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/chained/nestedLambda.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/declSite")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class DeclSite extends AbstractNonLocalReturnsTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInDeclSite() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/declSite"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS, true);
|
||||
}
|
||||
|
||||
@TestMetadata("complex.kt")
|
||||
public void testComplex() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/declSite/complex.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("intReturn.kt")
|
||||
public void testIntReturn() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/declSite/intReturn.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("intReturnComplex.kt")
|
||||
public void testIntReturnComplex() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/declSite/intReturnComplex.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("longReturn.kt")
|
||||
public void testLongReturn() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/declSite/longReturn.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("nested.kt")
|
||||
public void testNested() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/declSite/nested.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("returnInFinally.kt")
|
||||
public void testReturnInFinally() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/declSite/returnInFinally.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("returnInTry.kt")
|
||||
public void testReturnInTry() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/declSite/returnInTry.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("returnInTryAndFinally.kt")
|
||||
public void testReturnInTryAndFinally() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/declSite/returnInTryAndFinally.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("severalInTry.kt")
|
||||
public void testSeveralInTry() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/declSite/severalInTry.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("severalInTryComplex.kt")
|
||||
public void testSeveralInTryComplex() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/declSite/severalInTryComplex.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("voidInlineFun.kt")
|
||||
public void testVoidInlineFun() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/declSite/voidInlineFun.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("voidNonLocal.kt")
|
||||
public void testVoidNonLocal() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/declSite/voidNonLocal.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class ExceptionTable extends AbstractNonLocalReturnsTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInExceptionTable() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS, true);
|
||||
}
|
||||
|
||||
@TestMetadata("break.kt")
|
||||
public void testBreak() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/break.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("continue.kt")
|
||||
public void testContinue() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/continue.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("exceptionInFinally.kt")
|
||||
public void testExceptionInFinally() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/exceptionInFinally.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("forInFinally.kt")
|
||||
public void testForInFinally() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/forInFinally.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("innerAndExternal.kt")
|
||||
public void testInnerAndExternal() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/innerAndExternal.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("innerAndExternalNested.kt")
|
||||
public void testInnerAndExternalNested() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/innerAndExternalNested.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("innerAndExternalSimple.kt")
|
||||
public void testInnerAndExternalSimple() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/innerAndExternalSimple.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt31653.kt")
|
||||
public void testKt31653() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/kt31653.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt31653_2.kt")
|
||||
public void testKt31653_2() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/kt31653_2.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt31923.kt")
|
||||
public void testKt31923() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/kt31923.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt31923_2.kt")
|
||||
public void testKt31923_2() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/kt31923_2.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("nested.kt")
|
||||
public void testNested() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/nested.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("nestedWithReturns.kt")
|
||||
public void testNestedWithReturns() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/nestedWithReturns.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("nestedWithReturnsSimple.kt")
|
||||
public void testNestedWithReturnsSimple() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/nestedWithReturnsSimple.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("noFinally.kt")
|
||||
public void testNoFinally() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/noFinally.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("severalCatchClause.kt")
|
||||
public void testSeveralCatchClause() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/severalCatchClause.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("simpleThrow.kt")
|
||||
public void testSimpleThrow() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/simpleThrow.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("synchonized.kt")
|
||||
public void testSynchonized() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/synchonized.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("throwInFinally.kt")
|
||||
public void testThrowInFinally() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/throwInFinally.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("tryCatchInFinally.kt")
|
||||
public void testTryCatchInFinally() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/tryCatchInFinally.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/variables")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class Variables extends AbstractNonLocalReturnsTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInVariables() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/variables"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS, true);
|
||||
}
|
||||
|
||||
@TestMetadata("kt7792.kt")
|
||||
public void testKt7792() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/variables/kt7792.kt");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Generated
-96
@@ -1,96 +0,0 @@
|
||||
/*
|
||||
* Copyright 2010-2020 JetBrains s.r.o. and Kotlin Programming Language contributors.
|
||||
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
|
||||
*/
|
||||
|
||||
package org.jetbrains.kotlin.js.test.semantics;
|
||||
|
||||
import com.intellij.testFramework.TestDataPath;
|
||||
import org.jetbrains.kotlin.test.JUnit3RunnerWithInners;
|
||||
import org.jetbrains.kotlin.test.KotlinTestUtils;
|
||||
import org.jetbrains.kotlin.test.TargetBackend;
|
||||
import org.jetbrains.kotlin.test.TestMetadata;
|
||||
import org.junit.runner.RunWith;
|
||||
|
||||
import java.io.File;
|
||||
import java.util.regex.Pattern;
|
||||
|
||||
/** This class is generated by {@link org.jetbrains.kotlin.generators.tests.TestsPackage}. DO NOT MODIFY MANUALLY */
|
||||
@SuppressWarnings("all")
|
||||
@TestMetadata("compiler/testData/codegen/boxInline/property")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public class PropertyAccessorsInlineTestsGenerated extends AbstractPropertyAccessorsInlineTests {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInProperty() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/property"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS, true);
|
||||
}
|
||||
|
||||
@TestMetadata("augAssignmentAndInc.kt")
|
||||
public void testAugAssignmentAndInc() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/property/augAssignmentAndInc.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("augAssignmentAndIncInClass.kt")
|
||||
public void testAugAssignmentAndIncInClass() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/property/augAssignmentAndIncInClass.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("augAssignmentAndIncInClassViaConvention.kt")
|
||||
public void testAugAssignmentAndIncInClassViaConvention() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/property/augAssignmentAndIncInClassViaConvention.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("augAssignmentAndIncOnExtension.kt")
|
||||
public void testAugAssignmentAndIncOnExtension() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/property/augAssignmentAndIncOnExtension.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("augAssignmentAndIncOnExtensionInClass.kt")
|
||||
public void testAugAssignmentAndIncOnExtensionInClass() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/property/augAssignmentAndIncOnExtensionInClass.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("augAssignmentAndIncViaConvention.kt")
|
||||
public void testAugAssignmentAndIncViaConvention() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/property/augAssignmentAndIncViaConvention.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("fromObject.kt")
|
||||
public void testFromObject() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/property/fromObject.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt22649.kt")
|
||||
public void testKt22649() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/property/kt22649.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("property.kt")
|
||||
public void testProperty() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/property/property.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("reifiedVal.kt")
|
||||
public void testReifiedVal() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/property/reifiedVal.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("reifiedVar.kt")
|
||||
public void testReifiedVar() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/property/reifiedVar.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("simple.kt")
|
||||
public void testSimple() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/property/simple.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("simpleExtension.kt")
|
||||
public void testSimpleExtension() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/property/simpleExtension.kt");
|
||||
}
|
||||
}
|
||||
+6
-28
@@ -7,33 +7,6 @@ package org.jetbrains.kotlin.js.test.semantics
|
||||
|
||||
import org.jetbrains.kotlin.js.test.BasicBoxTest
|
||||
|
||||
abstract class BorrowedInlineTest(relativePath: String) : BasicBoxTest(
|
||||
"compiler/testData/codegen/boxInline/$relativePath",
|
||||
"codegen/boxInline/$relativePath"
|
||||
) {
|
||||
init {
|
||||
additionalCommonFileDirectories += TEST_DATA_DIR_PATH + relativePath + "/_commonFiles/"
|
||||
}
|
||||
}
|
||||
|
||||
abstract class AbstractNonLocalReturnsTest : BorrowedInlineTest("nonLocalReturns/")
|
||||
|
||||
abstract class AbstractPropertyAccessorsInlineTests : BorrowedInlineTest("property/")
|
||||
|
||||
abstract class AbstractNoInlineTests : BorrowedInlineTest("noInline/")
|
||||
|
||||
abstract class AbstractCallableReferenceInlineTests : BorrowedInlineTest("callableReference/")
|
||||
|
||||
abstract class AbstractEnumValuesInlineTests : BorrowedInlineTest("enum/")
|
||||
|
||||
abstract class AbstractInlineDefaultValuesTests : BorrowedInlineTest("defaultValues/")
|
||||
|
||||
abstract class AbstractInlineSuspendTests : BorrowedInlineTest("suspend/")
|
||||
|
||||
abstract class AbstractJsInlineContractsTests : BorrowedInlineTest("contracts/")
|
||||
|
||||
abstract class AbstractJsInlineMultiModuleTests : BorrowedInlineTest("multiModule/")
|
||||
|
||||
abstract class AbstractBoxJsTest : BasicBoxTest(
|
||||
TEST_DATA_DIR_PATH + "box/",
|
||||
"box/"
|
||||
@@ -46,6 +19,11 @@ abstract class AbstractJsCodegenBoxTest : BasicBoxTest(
|
||||
"codegen/box/"
|
||||
)
|
||||
|
||||
abstract class AbstractJsCodegenInlineTest : BasicBoxTest(
|
||||
"compiler/testData/codegen/boxInline",
|
||||
"codegen/boxInline"
|
||||
)
|
||||
|
||||
abstract class AbstractJsLegacyPrimitiveArraysBoxTest : BasicBoxTest(
|
||||
"compiler/testData/codegen/box/arrays/",
|
||||
"codegen/box/arrays-legacy-primitivearrays/",
|
||||
@@ -57,4 +35,4 @@ abstract class AbstractSourceMapGenerationSmokeTest : BasicBoxTest(
|
||||
"sourcemap/",
|
||||
generateSourceMap = true,
|
||||
generateNodeJsRunner = false
|
||||
)
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user