Add tests on different types of chain source
This commit is contained in:
committed by
Yan Zhulanow
parent
0d2c5c4d65
commit
14ef19418b
@@ -0,0 +1,17 @@
|
|||||||
|
LineBreakpoint created at ArrayAsSource.kt:5
|
||||||
|
Run Java
|
||||||
|
Connected to the target VM
|
||||||
|
ArrayAsSource.kt:5
|
||||||
|
arrayOf("23", "34").asIterable()
|
||||||
|
.count()
|
||||||
|
count
|
||||||
|
before: 2
|
||||||
|
after: nothing
|
||||||
|
mappings for count
|
||||||
|
direct:
|
||||||
|
2 -> nothing
|
||||||
|
reverse:
|
||||||
|
empty
|
||||||
|
Disconnected from the target VM
|
||||||
|
|
||||||
|
Process finished with exit code 0
|
||||||
@@ -0,0 +1,17 @@
|
|||||||
|
LineBreakpoint created at CollectionAsSource.kt:6
|
||||||
|
Run Java
|
||||||
|
Connected to the target VM
|
||||||
|
CollectionAsSource.kt:6
|
||||||
|
collection
|
||||||
|
.count({ it == 3 })
|
||||||
|
count
|
||||||
|
before: 4
|
||||||
|
after: nothing
|
||||||
|
mappings for count
|
||||||
|
direct:
|
||||||
|
4 -> nothing
|
||||||
|
reverse:
|
||||||
|
empty
|
||||||
|
Disconnected from the target VM
|
||||||
|
|
||||||
|
Process finished with exit code 0
|
||||||
+17
@@ -0,0 +1,17 @@
|
|||||||
|
LineBreakpoint created at PrimitiveArrayAsSource.kt:5
|
||||||
|
Run Java
|
||||||
|
Connected to the target VM
|
||||||
|
PrimitiveArrayAsSource.kt:5
|
||||||
|
booleanArrayOf(true, false).asIterable()
|
||||||
|
.count()
|
||||||
|
count
|
||||||
|
before: 2
|
||||||
|
after: nothing
|
||||||
|
mappings for count
|
||||||
|
direct:
|
||||||
|
2 -> nothing
|
||||||
|
reverse:
|
||||||
|
empty
|
||||||
|
Disconnected from the target VM
|
||||||
|
|
||||||
|
Process finished with exit code 0
|
||||||
@@ -0,0 +1,17 @@
|
|||||||
|
LineBreakpoint created at StringAsSource.kt:5
|
||||||
|
Run Java
|
||||||
|
Connected to the target VM
|
||||||
|
StringAsSource.kt:5
|
||||||
|
"Hello World!"
|
||||||
|
.count({ it.isUpperCase() })
|
||||||
|
count
|
||||||
|
before: 12
|
||||||
|
after: nothing
|
||||||
|
mappings for count
|
||||||
|
direct:
|
||||||
|
12 -> nothing
|
||||||
|
reverse:
|
||||||
|
empty
|
||||||
|
Disconnected from the target VM
|
||||||
|
|
||||||
|
Process finished with exit code 0
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
package source
|
||||||
|
|
||||||
|
fun main(args: Array<String>) {
|
||||||
|
// Breakpoint!
|
||||||
|
arrayOf("23", "34").count()
|
||||||
|
}
|
||||||
+7
@@ -0,0 +1,7 @@
|
|||||||
|
package source
|
||||||
|
|
||||||
|
fun main(args: Array<String>) {
|
||||||
|
val collection: Collection<Any> = listOf(1, 2, 3, 5)
|
||||||
|
// Breakpoint!
|
||||||
|
collection.count { it == 3 }
|
||||||
|
}
|
||||||
+6
@@ -0,0 +1,6 @@
|
|||||||
|
package source
|
||||||
|
|
||||||
|
fun main(args: Array<String>) {
|
||||||
|
// Breakpoint!
|
||||||
|
booleanArrayOf(true, false).count()
|
||||||
|
}
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
package source
|
||||||
|
|
||||||
|
fun main(args: Array<String>) {
|
||||||
|
// Breakpoint!
|
||||||
|
"Hello World!".count { it.isUpperCase() }
|
||||||
|
}
|
||||||
+11
@@ -0,0 +1,11 @@
|
|||||||
|
package com.intellij.debugger.streams.kotlin.exec.collection
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author Vitaliy.Bibaev
|
||||||
|
*/
|
||||||
|
class DifferentSourceTest : CollectionTestCase("source") {
|
||||||
|
fun testCollectionAsSource() = doTestWithResult()
|
||||||
|
fun testStringAsSource() = doTestWithResult()
|
||||||
|
fun testArrayAsSource() = doTestWithResult()
|
||||||
|
fun testPrimitiveArrayAsSource() = doTestWithResult()
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user