Rewrite 'goto' mpp tests to be generated

Adjust test data
Use new util in FindUsagesMultiModuleTest
This commit is contained in:
Pavel V. Talanov
2018-03-27 15:46:42 +02:00
parent 1f4926e259
commit 08b62d3564
31 changed files with 320 additions and 273 deletions
@@ -2,4 +2,4 @@ package test
actual class <caret>Expected
// REF: [common] (test).Expected
// REF: [testModule_Common] (test).Expected
@@ -6,5 +6,5 @@ actual class Expected {
actual val bar = "Hello"
}
// REF: [common] (in test.Expected).foo()
// REF: [testModule_Common] (in test.Expected).foo()
@@ -6,5 +6,5 @@ actual class Expected {
actual val <caret>bar = "Hello"
}
// REF: [common] (in test.Expected).bar
// REF: [testModule_Common] (in test.Expected).bar
@@ -8,6 +8,6 @@ class ExpectedChildChild : ExpectedChild()
class SimpleChild : SimpleParent()
// REF: [common] (test).ExpectedChildChild
// REF: [jvm] (test).ExpectedChild
// REF: [jvm] (test).ExpectedChildChildJvm
// REF: [testModule_Common] (test).ExpectedChildChild
// REF: [testModule_JVM] (test).ExpectedChild
// REF: [testModule_JVM] (test).ExpectedChildChildJvm
@@ -16,6 +16,6 @@ class SimpleChild : SimpleParent() {
override fun foo(n: Int) {}
}
// REF: [common] (in test.ExpectedChildChild).foo(Int)
// REF: [jvm] (in test.ExpectedChild).foo(Int)
// REF: [jvm] (in test.ExpectedChildChildJvm).foo(Int)
// REF: [testModule_Common] (in test.ExpectedChildChild).foo(Int)
// REF: [testModule_JVM] (in test.ExpectedChild).foo(Int)
// REF: [testModule_JVM] (in test.ExpectedChildChildJvm).foo(Int)
@@ -16,6 +16,6 @@ class SimpleChild : SimpleParent() {
override val bar: Int get() = 1
}
// REF: [common] (in test.ExpectedChildChild).bar
// REF: [jvm] (in test.ExpectedChild).bar
// REF: [jvm] (in test.ExpectedChildChildJvm).bar
// REF: [testModule_Common] (in test.ExpectedChildChild).bar
// REF: [testModule_JVM] (in test.ExpectedChild).bar
// REF: [testModule_JVM] (in test.ExpectedChildChildJvm).bar
@@ -8,8 +8,8 @@ class ExpectedChildChild : ExpectedChild()
class SimpleChild : SimpleParent()
// REF: [common] (test).ExpectedChild
// REF: [common] (test).ExpectedChildChild
// REF: [common] (test).SimpleChild
// REF: [jvm] (test).ExpectedChild
// REF: [jvm] (test).ExpectedChildChildJvm
// REF: [testModule_Common] (test).ExpectedChild
// REF: [testModule_Common] (test).ExpectedChildChild
// REF: [testModule_Common] (test).SimpleChild
// REF: [testModule_JVM] (test).ExpectedChild
// REF: [testModule_JVM] (test).ExpectedChildChildJvm
@@ -16,8 +16,8 @@ class SimpleChild : SimpleParent() {
override fun foo(n: Int) {}
}
// REF: [common] (in test.ExpectedChild).foo(Int)
// REF: [common] (in test.ExpectedChildChild).foo(Int)
// REF: [common] (in test.SimpleChild).foo(Int)
// REF: [jvm] (in test.ExpectedChild).foo(Int)
// REF: [jvm] (in test.ExpectedChildChildJvm).foo(Int)
// REF: [testModule_Common] (in test.ExpectedChild).foo(Int)
// REF: [testModule_Common] (in test.ExpectedChildChild).foo(Int)
// REF: [testModule_Common] (in test.SimpleChild).foo(Int)
// REF: [testModule_JVM] (in test.ExpectedChild).foo(Int)
// REF: [testModule_JVM] (in test.ExpectedChildChildJvm).foo(Int)
@@ -16,8 +16,8 @@ class SimpleChild : SimpleParent() {
override val bar: Int get() = 1
}
// REF: [common] (in test.ExpectedChild).bar
// REF: [common] (in test.ExpectedChildChild).bar
// REF: [common] (in test.SimpleChild).bar
// REF: [jvm] (in test.ExpectedChild).bar
// REF: [jvm] (in test.ExpectedChildChildJvm).bar
// REF: [testModule_Common] (in test.ExpectedChild).bar
// REF: [testModule_Common] (in test.ExpectedChildChild).bar
// REF: [testModule_Common] (in test.SimpleChild).bar
// REF: [testModule_JVM] (in test.ExpectedChild).bar
// REF: [testModule_JVM] (in test.ExpectedChildChildJvm).bar
@@ -4,5 +4,5 @@ interface I {
suspend fun <caret>foo(s: String)
}
// REF: [js] (in test.C).foo(String)
// REF: [jvm] (in test.C).foo(String)
// REF: [testModule_JS] (in test.C).foo(String)
// REF: [testModule_JVM] (in test.C).foo(String)
@@ -4,4 +4,4 @@ actual class Foo {
actual fun <caret>bar() {}
}
// REF: [common] (in test.Foo).bar()
// REF: [testModule_Common] (in test.Foo).bar()
@@ -4,4 +4,4 @@ actual class Foo {
actual val <caret>bar: Int get() = 1
}
// REF: [common] (in test.Foo).bar
// REF: [testModule_Common] (in test.Foo).bar
@@ -4,5 +4,5 @@ expect class Foo {
fun <caret>bar()
}
// REF: [jvm] (in test.Foo).bar()
// REF: [js] (in test.Foo).bar()
// REF: [testModule_JVM] (in test.Foo).bar()
// REF: [testModule_JS] (in test.Foo).bar()
@@ -4,5 +4,5 @@ expect class Foo {
val <caret>bar: Int
}
// REF: [jvm] (in test.Foo).bar
// REF: [js] (in test.Foo).bar
// REF: [testModule_JVM] (in test.Foo).bar
// REF: [testModule_JS] (in test.Foo).bar
@@ -4,4 +4,4 @@ actual class Foo {
actual class <caret>Bar
}
// REF: [common] (in test.Foo).Bar
// REF: [testModule_Common] (in test.Foo).Bar
@@ -4,5 +4,5 @@ expect class Foo {
class <caret>Bar
}
// REF: [js] (in test.Foo).Bar
// REF: [jvm] (in test.Foo).Bar
// REF: [testModule_JS] (in test.Foo).Bar
// REF: [testModule_JVM] (in test.Foo).Bar
@@ -2,4 +2,4 @@ package test
actual class <caret>Foo
// REF: [common] (test).Foo
// REF: [testModule_Common] (test).Foo
@@ -2,4 +2,4 @@ package test
actual fun <caret>foo() {}
// REF: [common] (test).foo()
// REF: [testModule_Common] (test).foo()
@@ -2,4 +2,4 @@ package test
actual val <caret>foo: Int get() = 1
// REF: [common] (test).foo
// REF: [testModule_Common] (test).foo
@@ -2,5 +2,5 @@ package test
expect class <caret>Foo
// REF: [jvm] (test).Foo
// REF: [js] (test).Foo
// REF: [testModule_JVM] (test).Foo
// REF: [testModule_JS] (test).Foo
@@ -2,5 +2,5 @@ package test
expect fun <caret>foo()
// REF: [jvm] (test).foo()
// REF: [js] (test).foo()
// REF: [testModule_JVM] (test).foo()
// REF: [testModule_JS] (test).foo()
@@ -2,5 +2,5 @@ package test
expect val <caret>foo: Int
// REF: [jvm] (test).foo
// REF: [js] (test).foo
// REF: [testModule_JVM] (test).foo
// REF: [testModule_JS] (test).foo