Move debugger test data to the new location
This commit is contained in:
+1
@@ -0,0 +1 @@
|
||||
val array: kotlin.DoubleArray = kotlin.doubleArrayOf(10.0, 20.0)
|
||||
+1
@@ -0,0 +1 @@
|
||||
val a: kotlin.IntArray
|
||||
+1
@@ -0,0 +1 @@
|
||||
val array: kotlin.IntArray = kotlin.IntArray(10)
|
||||
+2
@@ -0,0 +1,2 @@
|
||||
a[0] = 1
|
||||
a[1] = 2
|
||||
+2
@@ -0,0 +1,2 @@
|
||||
a[10]!!
|
||||
a[11]!!
|
||||
@@ -0,0 +1,2 @@
|
||||
var a: kotlin.Int
|
||||
a = 100
|
||||
@@ -0,0 +1 @@
|
||||
this.method()
|
||||
@@ -0,0 +1 @@
|
||||
this.method(10, 20, 30)
|
||||
@@ -0,0 +1 @@
|
||||
this.method(10)
|
||||
@@ -0,0 +1,2 @@
|
||||
var a: kotlin.Int = 10
|
||||
a
|
||||
+1
@@ -0,0 +1 @@
|
||||
var a: kotlin.Int
|
||||
+1
@@ -0,0 +1 @@
|
||||
var a: kotlin.Int
|
||||
+1
@@ -0,0 +1 @@
|
||||
val a: kotlin.Int = 10
|
||||
@@ -0,0 +1,4 @@
|
||||
val objects: kotlin.collections.MutableList<kotlin.Any> = getObjects()
|
||||
for (object in objects) {
|
||||
object.toString()
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
val objects: kotlin.collections.MutableList<kotlin.Any> = getObjects()
|
||||
var i: kotlin.Int = 0
|
||||
while (i < objects.size()) {
|
||||
i.toString()
|
||||
i++
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
if (true) {
|
||||
receiver.success()
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
if (false) {
|
||||
this.success()
|
||||
} else {
|
||||
this.fail()
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
if (false) {
|
||||
this.success()
|
||||
} else {
|
||||
if (true) {
|
||||
this.failSuccess()
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
if (false) {
|
||||
this.success()
|
||||
} else {
|
||||
if (true) {
|
||||
this.failSuccess()
|
||||
} else {
|
||||
this.failFail()
|
||||
}
|
||||
}
|
||||
+4
@@ -0,0 +1,4 @@
|
||||
{ y ->
|
||||
y.method1()
|
||||
y
|
||||
}
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
{ y ->
|
||||
y
|
||||
}
|
||||
+4
@@ -0,0 +1,4 @@
|
||||
{ y ->
|
||||
y.method1()
|
||||
y.method2()
|
||||
}
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
{ x ->
|
||||
x.method()
|
||||
}
|
||||
+1
@@ -0,0 +1 @@
|
||||
var map: kotlin.collections.MutableMap<kotlin.Int, kotlin.Boolean>
|
||||
+1
@@ -0,0 +1 @@
|
||||
val map: kotlin.collections.MutableMap<kotlin.Int, kotlin.Boolean> = kotlin.collections.linkedMapOf()
|
||||
@@ -0,0 +1 @@
|
||||
var lst: kotlin.collections.MutableList<kotlin.Int>
|
||||
@@ -0,0 +1,5 @@
|
||||
val lst: kotlin.collections.MutableList<kotlin.Long> = kotlin.collections.mutableListOf()
|
||||
lst.add(100)
|
||||
lst.get(0).methodWithSideEffect()
|
||||
lst.set(1, lst.get(0))
|
||||
lst.contains(lst.size)
|
||||
@@ -0,0 +1,4 @@
|
||||
val objects: kotlin.collections.MutableList<kotlin.Any> = getObjects()
|
||||
for (object in objects) {
|
||||
break
|
||||
}
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
val objects: kotlin.collections.MutableList<kotlin.Any> = getObjects()
|
||||
for (object in objects) {
|
||||
if (object.isEmpty) {
|
||||
break
|
||||
}
|
||||
}
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
map.computeIfAbsent(key, { y ->
|
||||
map.method()
|
||||
})
|
||||
@@ -0,0 +1 @@
|
||||
(key in map)
|
||||
+13
@@ -0,0 +1,13 @@
|
||||
var resultArray: kotlin.Array<kotlin.Any?> = kotlin.arrayOfNulls<kotlin.Any>(0)
|
||||
run {
|
||||
val size: kotlin.Int = map.size
|
||||
val keys: kotlin.IntArray = kotlin.IntArray(size)
|
||||
val values: kotlin.Array<kotlin.Any?> = kotlin.arrayOfNulls<kotlin.Any>(size)
|
||||
var i: kotlin.Int = 0
|
||||
for (key in map.keys) {
|
||||
keys[i] = key
|
||||
values[i] = map.getValue(key)
|
||||
i++
|
||||
}
|
||||
resultArray = kotlin.arrayOf<kotlin.Any?>(keys, values)
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
val map: kotlin.collections.MutableMap<kotlin.Int, kotlin.Boolean>
|
||||
@@ -0,0 +1 @@
|
||||
map.getValue(key)
|
||||
+1
@@ -0,0 +1 @@
|
||||
val map: kotlin.collections.MutableMap<kotlin.Int, kotlin.Int> = kotlin.collections.mutableMapOf()
|
||||
@@ -0,0 +1 @@
|
||||
map[key] = value
|
||||
@@ -0,0 +1,2 @@
|
||||
val a: kotlin.Int = 10
|
||||
val b: kotlin.Int = 20
|
||||
+2
@@ -0,0 +1,2 @@
|
||||
val a: kotlin.Int = 10
|
||||
val b: kotlin.Int = 20
|
||||
@@ -0,0 +1 @@
|
||||
!lst.contains(1)
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
var a: kotlin.Int
|
||||
if (true) {
|
||||
a = 100
|
||||
} else {
|
||||
a = 200
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
run {
|
||||
this.method()
|
||||
run {
|
||||
this.method()
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
lst = kotlin.collections.mutableListOf<kotlin.Int>(0, 1, 2, 3)
|
||||
@@ -0,0 +1,6 @@
|
||||
val usualType: kotlin.Any
|
||||
val nullableType: kotlin.Any?
|
||||
val arrayWithNullableElements: kotlin.Array<kotlin.Any?>
|
||||
val nullableArrayWithNullableElements: kotlin.Array<kotlin.Any?>?
|
||||
val nullableList: kotlin.collections.MutableList<kotlin.Boolean>?
|
||||
val mapWithNullableValues: kotlin.collections.MutableMap<kotlin.Int, kotlin.Any?>
|
||||
@@ -0,0 +1 @@
|
||||
a.myProperty
|
||||
@@ -0,0 +1,3 @@
|
||||
run {
|
||||
this.method()
|
||||
}
|
||||
+1
@@ -0,0 +1 @@
|
||||
kotlin.arrayOfNulls<kotlin.String>(100)
|
||||
+1
@@ -0,0 +1 @@
|
||||
val time: java.util.concurrent.atomic.AtomicInteger = java.util.concurrent.atomic.AtomicInteger()
|
||||
@@ -0,0 +1,5 @@
|
||||
try {
|
||||
this.hashCode()
|
||||
} catch(e : kotlin.Throwable) {
|
||||
this.fail()
|
||||
}
|
||||
@@ -0,0 +1,2 @@
|
||||
var a: kotlin.Int = 100
|
||||
val b: kotlin.Int = a
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
fun main(args: Array<String>) {
|
||||
<caret> listOf(1, 2, 3).map { it * it }.filter { it % 2 == 0 }
|
||||
}
|
||||
Vendored
+3
@@ -0,0 +1,3 @@
|
||||
fun main(args: Array<String>) {
|
||||
<caret> listOf(1, 2, 3).filter { it < 1 }
|
||||
}
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
fun main(args: Array<String>) {
|
||||
<caret> listOf(1, 2, 3).any()
|
||||
}
|
||||
idea/jvm-debugger/jvm-debugger-test/testData/sequence/psi/collection/positive/TerminationCallUsed.kt
Vendored
+3
@@ -0,0 +1,3 @@
|
||||
fun main(args: Array<String>) {
|
||||
<caret> listOf(1, 2, 3).map { it * it }.all { it < 20 }
|
||||
}
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
fun main(args: Array<String>) {
|
||||
<caret> listOf("abc").count()
|
||||
}
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
fun main(args: Array<String>) {
|
||||
<caret> listOf("abc", 12).map { 10 }.count()
|
||||
}
|
||||
Vendored
+3
@@ -0,0 +1,3 @@
|
||||
fun main(args: Array<String>) {
|
||||
bo<caret>oleanArrayOf(true, true, false).count()
|
||||
}
|
||||
Vendored
+3
@@ -0,0 +1,3 @@
|
||||
fun main(args: Array<String>) {
|
||||
s<caret>etOf(1.toByte(), 20.toByte()).forEach { }
|
||||
}
|
||||
Vendored
+3
@@ -0,0 +1,3 @@
|
||||
fun main(args: Array<String>) {
|
||||
charArra<caret>yOf('a', 'b', 'c').count()
|
||||
}
|
||||
Vendored
+3
@@ -0,0 +1,3 @@
|
||||
fun main(args: Array<String>) {
|
||||
Doub<caret>leArray(10).count()
|
||||
}
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
fun main(args: Array<String>) {
|
||||
byteArray<caret>Of(10, 20)
|
||||
.map { it.toString() }
|
||||
.map { if (it == "10") null else 10 }
|
||||
.map { 10 }
|
||||
.contains(200)
|
||||
}
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
fun main(args: Array<String>) {
|
||||
"jetBrains".map { it.isLowerCase() }
|
||||
.flat<caret>Map { linkedSetOf(1.2, 3.0) }
|
||||
.map { it.toString() }
|
||||
.count()
|
||||
}
|
||||
Vendored
+3
@@ -0,0 +1,3 @@
|
||||
fun main(args: Array<String>) {
|
||||
listOf(1.<caret>0f).contains(2.0f)
|
||||
}
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
fun main(args: Array<String>) {
|
||||
intArrayOf<caret>(10).get(0)
|
||||
}
|
||||
Vendored
+3
@@ -0,0 +1,3 @@
|
||||
fun main(args: Array<String>) {
|
||||
longArrayOf(1L, 2L<caret>).count { it < 2 }
|
||||
}
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
fun main(args: Array<String>) {
|
||||
sortedSetOf(10.0).m<caret>ap { null }.count()
|
||||
}
|
||||
Vendored
+3
@@ -0,0 +1,3 @@
|
||||
fun main(args: Array<String>) {
|
||||
lis<caret>tOf(Any(), null).contains(10)
|
||||
}
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
fun main(args: Array<String>) {
|
||||
lis<caret>tOf(Any(), null).map { true }.contains(false)
|
||||
}
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
fun main(args: Array<String>) {
|
||||
listOf(true, nul<caret>l, false).count()
|
||||
}
|
||||
Vendored
+3
@@ -0,0 +1,3 @@
|
||||
fun main(args: Array<String>) {
|
||||
listOf(1.to<caret>Byte(), null).forEach { }
|
||||
}
|
||||
Vendored
+3
@@ -0,0 +1,3 @@
|
||||
fun main(args: Array<String>) {
|
||||
listOf(','<caret>, '.', null).component1()
|
||||
}
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
fun main(args: Array<String>) {
|
||||
listOf(0.4, null)<caret>.component2()
|
||||
}
|
||||
idea/jvm-debugger/jvm-debugger-test/testData/sequence/psi/collection/positive/types/NullableFloat.kt
Vendored
+3
@@ -0,0 +1,3 @@
|
||||
fun main(args: Array<String>) {
|
||||
listOf(0.4f, null).indexOf(0<caret>.3f)
|
||||
}
|
||||
Vendored
+3
@@ -0,0 +1,3 @@
|
||||
fun main(args: Array<String>) {
|
||||
<caret> listOf(5, null).lastIndexOf(null)
|
||||
}
|
||||
Vendored
+3
@@ -0,0 +1,3 @@
|
||||
fun main(args: Array<String>) {
|
||||
listO<caret>f(10L, null).isNotEmpty()
|
||||
}
|
||||
idea/jvm-debugger/jvm-debugger-test/testData/sequence/psi/collection/positive/types/NullableShort.kt
Vendored
+3
@@ -0,0 +1,3 @@
|
||||
fun main(args: Array<String>) {
|
||||
listOf(6.toShort<caret>(), null).last()
|
||||
}
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
fun main(args: Array<String>) {
|
||||
listOf(0.4, null).<caret>map { 10 }.count()
|
||||
}
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
fun main(args: Array<String>) {
|
||||
listOf(20, 30).m<caret>ap { Any() }.contains(Any())
|
||||
}
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
fun main(args: Array<String>) {
|
||||
listO<caret>f(20, 30).map { if(it == 20) null else it }.count()
|
||||
}
|
||||
Vendored
+3
@@ -0,0 +1,3 @@
|
||||
fun main(args: Array<String>) {
|
||||
shortArrayOf(1.toShor<caret>t(), 2.toShort()).single()
|
||||
}
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
fun main(args: Array<String>) {
|
||||
<caret> listOf("abc").asSequence().count()
|
||||
}
|
||||
Vendored
+3
@@ -0,0 +1,3 @@
|
||||
fun main(args: Array<String>) {
|
||||
<caret> listOf("abc", 12).asSequence().map { 10 }.count()
|
||||
}
|
||||
Vendored
+3
@@ -0,0 +1,3 @@
|
||||
fun main(args: Array<String>) {
|
||||
bool<caret>eanArrayOf(true, true, false).asSequence().count()
|
||||
}
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
fun main(args: Array<String>) {
|
||||
setOf(1.toB<caret>yte(), 20.toByte()).asSequence().forEach { }
|
||||
}
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
fun main(args: Array<String>) {
|
||||
charArrayOf('a', 'b', 'c').asSe<caret>quence().count()
|
||||
}
|
||||
Vendored
+3
@@ -0,0 +1,3 @@
|
||||
fun main(args: Array<String>) {
|
||||
Doub<caret>leArray(10).asSequence().count()
|
||||
}
|
||||
idea/jvm-debugger/jvm-debugger-test/testData/sequence/psi/sequence/positive/types/FewTransitions1.kt
Vendored
+7
@@ -0,0 +1,7 @@
|
||||
fun main(args: Array<String>) {
|
||||
byteArray<caret>Of(10, 20).asSequence()
|
||||
.map { it.toString() }
|
||||
.map { if (it == "10") null else 10 }
|
||||
.map { 10 }
|
||||
.contains(200)
|
||||
}
|
||||
idea/jvm-debugger/jvm-debugger-test/testData/sequence/psi/sequence/positive/types/FewTransitions2.kt
Vendored
+6
@@ -0,0 +1,6 @@
|
||||
fun main(args: Array<String>) {
|
||||
"jetBrains".asS<caret>equence().map { it.isLowerCase() }
|
||||
.flatMap { linkedSetOf(1.2, 3.0).asSequence() }
|
||||
.map { it.toString() }
|
||||
.count()
|
||||
}
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
fun main(args: Array<String>) {
|
||||
listOf(1.<caret>0f).asSequence().contains(2.0f)
|
||||
}
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
fun main(args: Array<String>) {
|
||||
intArrayOf(10).asSequence(<caret>).any()
|
||||
}
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
fun main(args: Array<String>) {
|
||||
longArrayOf(1L, 2L<caret>).asSequence().count { it < 2 }
|
||||
}
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
fun main(args: Array<String>) {
|
||||
sortedSetOf(10.0).asSequence().m<caret>ap { null }.count()
|
||||
}
|
||||
Vendored
+3
@@ -0,0 +1,3 @@
|
||||
fun main(args: Array<String>) {
|
||||
lis<caret>tOf(Any(), null).asSequence().contains(10)
|
||||
}
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
fun main(args: Array<String>) {
|
||||
lis<caret>tOf(Any(), null).asSequence().map { true }.contains(false)
|
||||
}
|
||||
idea/jvm-debugger/jvm-debugger-test/testData/sequence/psi/sequence/positive/types/NullableBoolean.kt
Vendored
+3
@@ -0,0 +1,3 @@
|
||||
fun main(args: Array<String>) {
|
||||
listOf(true, nul<caret>l, false).asSequence().count()
|
||||
}
|
||||
Vendored
+3
@@ -0,0 +1,3 @@
|
||||
fun main(args: Array<String>) {
|
||||
listOf(1.to<caret>Byte(), null).asSequence().forEach { }
|
||||
}
|
||||
Vendored
+3
@@ -0,0 +1,3 @@
|
||||
fun main(args: Array<String>) {
|
||||
listOf(',', '.', nu<caret>ll).asSequence().singleOrNull()
|
||||
}
|
||||
Vendored
+3
@@ -0,0 +1,3 @@
|
||||
fun main(args: Array<String>) {
|
||||
val elem<caret>ent = listOf(0.4, null).asSequence().elementAt(2)
|
||||
}
|
||||
Vendored
+3
@@ -0,0 +1,3 @@
|
||||
fun main(args: Array<String>) {
|
||||
listOf(0.4f, null).asSequence().indexOf(0<caret>.3f)
|
||||
}
|
||||
Vendored
+3
@@ -0,0 +1,3 @@
|
||||
fun main(args: Array<String>) {
|
||||
<caret> listOf(5, null).asSequence().lastIndexOf(null)
|
||||
}
|
||||
Vendored
+3
@@ -0,0 +1,3 @@
|
||||
fun main(args: Array<String>) {
|
||||
listOf(10L, null).asSequence().no<caret>ne()
|
||||
}
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user