Debugger: Add breakpoint applicability tests

This commit adds a number of tests that check breakpoint placing behavior, and an inline action that work the same way as tests.
This commit is contained in:
Yan Zhulanow
2019-07-16 17:05:37 +09:00
parent a8d08815a6
commit 25fb77e7ad
19 changed files with 436 additions and 17 deletions
@@ -0,0 +1,39 @@
// Should stop on primary constructor invocation
class Foo1(val a: Int) /// M
class Foo2( /// M
val a: Int, /// F
val b: String /// F
)
class Foo3(val a: Int) { /// M
constructor(a: String) : this(a.toInt()) /// M
}
// Initializers are not currently recognized as functions
class Foo4 { /// M
init { /// L
println() /// L
} /// L
}
class Foo5 {
constructor(a: String) {} /// M
constructor(a: Int) {} /// M
}
interface Intf
annotation class Anno
enum class Enum1 { /// M
FOO
}
enum class Enum2(val a: Int) { /// M
FOO(1)
}
object Obj1
object Obj2 {}