Debugger: Fix AbstractPositionManagerTest
MockReferenceType can't be used anymore because the new DebuggerClassNameProvider requires much more from it. The new SmartMockReferenceType implements methods such as nestedTypes() or allLineLocations() properly. Also, as PositionManager can return more than one class, we should check if any of the classes it returned matches the pattern.
This commit is contained in:
@@ -2,5 +2,5 @@
|
||||
package a
|
||||
|
||||
fun foo() {
|
||||
"" // a/ABC
|
||||
"" // a.ABC
|
||||
}
|
||||
|
||||
@@ -2,6 +2,6 @@ package insertInBlock
|
||||
|
||||
fun foo() {
|
||||
val lambda = {
|
||||
val a = 1 // insertInBlock/AnonymousNamedFunctionKt\$foo\$lambda\$1
|
||||
val a = 1 // insertInBlock.AnonymousNamedFunctionKt\$foo\$lambda\$1
|
||||
}()
|
||||
}
|
||||
|
||||
@@ -4,5 +4,5 @@ class A {
|
||||
}
|
||||
|
||||
fun A.foo() {
|
||||
"" // a/ExtensionFunctionKt
|
||||
"" // a.ExtensionFunctionKt
|
||||
}
|
||||
|
||||
+1
-1
@@ -2,7 +2,7 @@ package test
|
||||
|
||||
fun foo(): String {
|
||||
fun bar(): String {
|
||||
return "" // test/LocalFunctionKt\$foo\$1
|
||||
return "" // test.LocalFunctionKt\$foo\$1
|
||||
}
|
||||
return bar()
|
||||
}
|
||||
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
package test
|
||||
|
||||
fun foo() {
|
||||
"" // test/PackageKt
|
||||
"" // test.PackageKt
|
||||
}
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
package prop
|
||||
|
||||
val foo: Int = 5 // prop/TopLevelPropertyInitializerKt
|
||||
val foo: Int = 5 // prop.TopLevelPropertyInitializerKt
|
||||
|
||||
+4
-2
@@ -1,2 +1,4 @@
|
||||
class A { fun f() {} } // A
|
||||
class B { fun g() {} } // B
|
||||
package test
|
||||
|
||||
class A { fun f() {} } // test.A
|
||||
class B { fun g() {} } // test.B
|
||||
|
||||
Reference in New Issue
Block a user