Tests: extract addMissingActualMembers from multiModuleQuickFix/other

This commit is contained in:
Dmitry Gridin
2019-09-25 15:35:32 +07:00
parent a552f06526
commit fcaa897b9f
49 changed files with 73 additions and 60 deletions
@@ -1,5 +0,0 @@
// DISABLE-ERRORS
expect class My {
fun foo(param: String): Int
}
@@ -1,5 +0,0 @@
// DISABLE-ERRORS
expect class My {
fun foo(param: String): Int
}
@@ -1,4 +0,0 @@
// "Add missing actual members" "true"
// DISABLE-ERRORS
actual class <caret>My
@@ -1,8 +0,0 @@
// "Add missing actual members" "true"
// DISABLE-ERRORS
actual class My {
actual fun foo(param: String): Int {
TODO("not implemented") //To change body of created functions use File | Settings | File Templates.
}
}
@@ -1,5 +0,0 @@
// DISABLE-ERRORS
expect object O {
fun <T : Any> hello(): MutableMap<String, T>
}
@@ -1,5 +0,0 @@
// DISABLE-ERRORS
expect object O {
fun <T : Any> hello(): MutableMap<String, T>
}
@@ -1,8 +0,0 @@
// "Add missing actual members" "true"
// DISABLE-ERRORS
actual object <caret>O {
fun <T> hello(): MutableMap<String, T> {
TODO("not implemented")
}
}
@@ -1,12 +0,0 @@
// "Add missing actual members" "true"
// DISABLE-ERRORS
actual object O {
fun <T> hello(): MutableMap<String, T> {
TODO("not implemented")
}
actual fun <T : Any> hello(): MutableMap<String, T> {
TODO("not implemented") //To change body of created functions use File | Settings | File Templates.
}
}
@@ -1,5 +0,0 @@
// DISABLE-ERRORS
expect class My() {
fun test()
}
@@ -1,5 +0,0 @@
// DISABLE-ERRORS
expect class My() {
fun test()
}
@@ -1,6 +0,0 @@
// "Add missing actual members" "true"
// DISABLE-ERRORS
actual class <caret>My {
actual constructor()
}
@@ -1,9 +0,0 @@
// "Add missing actual members" "true"
// DISABLE-ERRORS
actual class My {
actual constructor()
actual fun test() {
}
}
@@ -1,5 +0,0 @@
// DISABLE-ERRORS
expect class My(a: Int, b: String) {
fun test()
}
@@ -1,5 +0,0 @@
// DISABLE-ERRORS
expect class My(a: Int, b: String) {
fun test()
}
@@ -1,6 +0,0 @@
// "Add missing actual members" "true"
// DISABLE-ERRORS
actual class <caret>My {
actual constructor(a: Int, b: String)
}
@@ -1,9 +0,0 @@
// "Add missing actual members" "true"
// DISABLE-ERRORS
actual class My {
actual constructor(a: Int, b: String)
actual fun test() {
}
}
@@ -1,7 +0,0 @@
// DISABLE-ERRORS
expect class My(a: Int, b: String) {
fun test()
constructor(b: String, a: Int)
}
@@ -1,7 +0,0 @@
// DISABLE-ERRORS
expect class My(a: Int, b: String) {
fun test()
constructor(b: String, a: Int)
}
@@ -1,6 +0,0 @@
// "Add missing actual members" "true"
// DISABLE-ERRORS
actual class <caret>My {
actual constructor(b: String, a: Int)
}
@@ -1,9 +0,0 @@
// "Add missing actual members" "true"
// DISABLE-ERRORS
actual class My actual constructor(a: Int, b: String) {
actual constructor(b: String, a: Int)
actual fun test() {
}
}
@@ -1,7 +0,0 @@
// DISABLE-ERRORS
expect class My {
fun foo(param: String): Int
fun foo(param: Int): Int
}
@@ -1,7 +0,0 @@
// DISABLE-ERRORS
expect class My {
fun foo(param: String): Int
fun foo(param: Int): Int
}
@@ -1,6 +0,0 @@
// "Add missing actual members" "true"
// DISABLE-ERRORS
actual class <caret>My {
fun foo(param: String) = 42
}
@@ -1,9 +0,0 @@
// "Add missing actual members" "true"
// DISABLE-ERRORS
actual class My {
fun foo(param: String) = 42
actual fun foo(param: Int): Int {
TODO("not implemented") //To change body of created functions use File | Settings | File Templates.
}
}
@@ -1,7 +0,0 @@
// DISABLE-ERRORS
expect class My {
val name: String
val age: String
}
@@ -1,7 +0,0 @@
// DISABLE-ERRORS
expect class My {
val name: String
val age: String
}
@@ -1,4 +0,0 @@
// "Add missing actual members" "true"
// DISABLE-ERRORS
actual class <caret>My(actual val name: String)
@@ -1,7 +0,0 @@
// "Add missing actual members" "true"
// DISABLE-ERRORS
actual class <caret>My(actual val name: String) {
actual val age: String
get() = TODO("not implemented") //To change initializer of created properties use File | Settings | File Templates.
}
@@ -1,11 +0,0 @@
// DISABLE-ERRORS
expect class My {
fun foo(param: String): Int
val x: String
val pi: Double
val correct: Boolean
}
@@ -1,11 +0,0 @@
// DISABLE-ERRORS
expect class My {
fun foo(param: String): Int
val x: String
val pi: Double
val correct: Boolean
}
@@ -1,8 +0,0 @@
// "Add missing actual members" "true"
// DISABLE-ERRORS
actual class <caret>My {
actual fun foo(param: String) = 42
actual val correct = true
}
@@ -1,12 +0,0 @@
// "Add missing actual members" "true"
// DISABLE-ERRORS
actual class <caret>My {
actual fun foo(param: String) = 42
actual val correct = true
actual val x: String
get() = TODO("not implemented") //To change initializer of created properties use File | Settings | File Templates.
actual val pi: Double
get() = TODO("not implemented") //To change initializer of created properties use File | Settings | File Templates.
}
@@ -1,6 +0,0 @@
// DISABLE-ERRORS
expect class My {
// Incompilable function
fun foo() {}
}
@@ -1,6 +0,0 @@
// DISABLE-ERRORS
expect class My {
// Incompilable function
fun foo() {}
}
@@ -1,4 +0,0 @@
// "Add missing actual members" "true"
// DISABLE-ERRORS
actual class <caret>My
@@ -1,7 +0,0 @@
// "Add missing actual members" "true"
// DISABLE-ERRORS
actual class My {
actual fun foo() {
}
}
@@ -1,7 +0,0 @@
// DISABLE-ERRORS
expect class WithCompanion {
companion object {
fun foo()
}
}
@@ -1,7 +0,0 @@
// DISABLE-ERRORS
expect class WithCompanion {
companion object {
fun foo()
}
}
@@ -1,6 +0,0 @@
// "Add missing actual members" "true"
// DISABLE-ERRORS
actual class <caret>WithCompanion {
}
@@ -1,10 +0,0 @@
// "Add missing actual members" "true"
// DISABLE-ERRORS
actual class WithCompanion {
actual companion object {
actual fun foo() {
}
}
}
@@ -1,7 +0,0 @@
// DISABLE-ERRORS
expect class WithPrimaryConstructor(x: Int, s: String) {
fun bar(x: String)
val z: Double
}
@@ -1,7 +0,0 @@
// DISABLE-ERRORS
expect class WithPrimaryConstructor(x: Int, s: String) {
fun bar(x: String)
val z: Double
}
@@ -1,8 +0,0 @@
// "Add missing actual members" "true"
// DISABLE-ERRORS
actual class <caret>WithPrimaryConstructor {
fun bar(x: String) {}
val z: Double = 3.14
}
@@ -1,8 +0,0 @@
// "Add missing actual members" "true"
// DISABLE-ERRORS
actual class WithPrimaryConstructor actual constructor(x: Int, s: String) {
fun bar(x: String) {}
val z: Double = 3.14
}
@@ -1,9 +0,0 @@
// DISABLE-ERRORS
expect class WithSecondaryConstructor {
constructor(x: Int, s: String)
fun bar(x: String)
val z: Double
}
@@ -1,9 +0,0 @@
// DISABLE-ERRORS
expect class WithSecondaryConstructor {
constructor(x: Int, s: String)
fun bar(x: String)
val z: Double
}
@@ -1,8 +0,0 @@
// "Add missing actual members" "true"
// DISABLE-ERRORS
actual class <caret>WithSecondaryConstructor {
fun bar(x: String) {}
val z: Double = 3.14
}
@@ -1,12 +0,0 @@
// "Add missing actual members" "true"
// DISABLE-ERRORS
actual class WithSecondaryConstructor {
fun bar(x: String) {}
val z: Double = 3.14
actual constructor(x: Int, s: String) {
TODO("not implemented") //To change body of created functions use File | Settings | File Templates.
}
}