QuickFixMultiModule: change tests structure

This commit is contained in:
Dmitry Gridin
2019-08-19 21:15:18 +07:00
parent 02fd137cec
commit 18f0bbe8f1
608 changed files with 786 additions and 747 deletions
@@ -0,0 +1,5 @@
interface IFoo {
val a: Int
}
expect class End : IFoo
@@ -0,0 +1,5 @@
interface IFoo {
val a: Int
}
expect class End : IFoo
@@ -0,0 +1,3 @@
// "Implement as constructor parameters" "true"
actual class <caret>End : IFoo
@@ -0,0 +1,3 @@
// "Implement as constructor parameters" "true"
actual class End(override val a: Int) : IFoo
@@ -0,0 +1,5 @@
interface IFoo {
val a: Int
}
expect class End(i: Int) : IFoo
@@ -0,0 +1,8 @@
// "Implement as constructor parameters" "false"
// ERROR: Class 'End' is not abstract and does not implement abstract member public abstract val a: Int defined in IFoo
// ACTION: Create test
// ACTION: Implement members
// ACTION: Make 'End' abstract
// ACTION: Rename file to End.kt
actual class <caret>End actual constructor(i: Int) : IFoo
@@ -0,0 +1,5 @@
expect interface ExpInterface {
fun first()
}
expect class ExpImpl : ExpInterface { }
@@ -0,0 +1,5 @@
expect interface ExpInterface {
fun first()
}
expect class ExpImpl : ExpInterface { }
@@ -0,0 +1,9 @@
// "Remove 'actual' modifier" "true"
actual interface ExpInterface {
actual fun first()
}
actual class ExpImpl : ExpInterface {
actual override fun <caret>first() { }
}
@@ -0,0 +1,9 @@
// "Remove 'actual' modifier" "true"
actual interface ExpInterface {
actual fun first()
}
actual class ExpImpl : ExpInterface {
override fun first() { }
}
@@ -0,0 +1 @@
expect class Foo
@@ -0,0 +1 @@
expect class Foo
@@ -0,0 +1,3 @@
// "Add 'actual' modifier" "true"
class <caret>Foo
@@ -0,0 +1,3 @@
// "Add 'actual' modifier" "true"
actual class Foo
@@ -0,0 +1,3 @@
expect class Foo {
fun foo()
}
@@ -0,0 +1,3 @@
expect class Foo {
fun foo()
}
@@ -0,0 +1,5 @@
// "Add 'actual' modifier" "true"
actual class Foo {
fun <caret>foo() {}
}
@@ -0,0 +1,5 @@
// "Add 'actual' modifier" "true"
actual class Foo {
actual fun foo() {}
}
@@ -0,0 +1 @@
expect fun foo()
@@ -0,0 +1 @@
expect fun foo()
@@ -0,0 +1,3 @@
// "Add 'actual' modifier" "true"
fun <caret>foo() {}
@@ -0,0 +1,3 @@
// "Add 'actual' modifier" "true"
actual fun foo() {}
@@ -0,0 +1,5 @@
package foo
class Bar {
}
@@ -0,0 +1,8 @@
package foo
class Bar {
fun someFun() {
}
}
@@ -0,0 +1,7 @@
// "Add method 'someFun' to 'Bar'" "true"
public class Use {
public static void use(foo.Bar bar) {
bar.s<caret>omeFun();
}
}
@@ -0,0 +1,3 @@
expect class Foo {
fun unaryMinus()
}
@@ -0,0 +1,3 @@
expect class Foo {
operator fun unaryMinus()
}
@@ -0,0 +1,8 @@
// "Add 'operator' modifier" "true"
// TOOL: org.jetbrains.kotlin.idea.inspections.AddOperatorModifierInspection
actual class Foo {
actual fun <caret>unaryMinus() {
}
}
@@ -0,0 +1,8 @@
// "Add 'operator' modifier" "true"
// TOOL: org.jetbrains.kotlin.idea.inspections.AddOperatorModifierInspection
actual class Foo {
actual operator fun unaryMinus() {
}
}
@@ -0,0 +1,5 @@
actual class Foo {
actual fun unaryMinus() {
}
}
@@ -0,0 +1,5 @@
actual class Foo {
actual operator fun unaryMinus() {
}
}
@@ -0,0 +1,6 @@
// "Add 'operator' modifier" "true"
// TOOL: org.jetbrains.kotlin.idea.inspections.AddOperatorModifierInspection
expect class Foo {
fun <caret>unaryMinus()
}
@@ -0,0 +1,6 @@
// "Add 'operator' modifier" "true"
// TOOL: org.jetbrains.kotlin.idea.inspections.AddOperatorModifierInspection
expect class Foo {
operator fun unaryMinus()
}
@@ -0,0 +1,5 @@
actual class Foo {
actual fun unaryMinus() {
}
}
@@ -0,0 +1,5 @@
actual class Foo {
actual operator fun unaryMinus() {
}
}
@@ -0,0 +1,5 @@
actual class Foo {
actual fun unaryMinus() {
}
}
@@ -0,0 +1,5 @@
actual class Foo {
actual operator fun unaryMinus() {
}
}
@@ -0,0 +1,5 @@
// DISABLE-ERRORS
expect class My {
fun foo(param: String): Int
}
@@ -0,0 +1,5 @@
// DISABLE-ERRORS
expect class My {
fun foo(param: String): Int
}
@@ -0,0 +1,4 @@
// "Add missing actual members" "true"
// DISABLE-ERRORS
actual class <caret>My
@@ -0,0 +1,8 @@
// "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.
}
}
@@ -0,0 +1,5 @@
// DISABLE-ERRORS
expect object O {
fun <T : Any> hello(): MutableMap<String, T>
}
@@ -0,0 +1,5 @@
// DISABLE-ERRORS
expect object O {
fun <T : Any> hello(): MutableMap<String, T>
}
@@ -0,0 +1,8 @@
// "Add missing actual members" "true"
// DISABLE-ERRORS
actual object <caret>O {
fun <T> hello(): MutableMap<String, T> {
TODO("not implemented")
}
}
@@ -0,0 +1,12 @@
// "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.
}
}
@@ -0,0 +1,5 @@
// DISABLE-ERRORS
expect class My() {
fun test()
}
@@ -0,0 +1,5 @@
// DISABLE-ERRORS
expect class My() {
fun test()
}
@@ -0,0 +1,6 @@
// "Add missing actual members" "true"
// DISABLE-ERRORS
actual class <caret>My {
actual constructor()
}
@@ -0,0 +1,9 @@
// "Add missing actual members" "true"
// DISABLE-ERRORS
actual class My {
actual constructor()
actual fun test() {
}
}
@@ -0,0 +1,5 @@
// DISABLE-ERRORS
expect class My(a: Int, b: String) {
fun test()
}
@@ -0,0 +1,5 @@
// DISABLE-ERRORS
expect class My(a: Int, b: String) {
fun test()
}
@@ -0,0 +1,6 @@
// "Add missing actual members" "true"
// DISABLE-ERRORS
actual class <caret>My {
actual constructor(a: Int, b: String)
}
@@ -0,0 +1,9 @@
// "Add missing actual members" "true"
// DISABLE-ERRORS
actual class My {
actual constructor(a: Int, b: String)
actual fun test() {
}
}
@@ -0,0 +1,7 @@
// DISABLE-ERRORS
expect class My(a: Int, b: String) {
fun test()
constructor(b: String, a: Int)
}
@@ -0,0 +1,7 @@
// DISABLE-ERRORS
expect class My(a: Int, b: String) {
fun test()
constructor(b: String, a: Int)
}
@@ -0,0 +1,6 @@
// "Add missing actual members" "true"
// DISABLE-ERRORS
actual class <caret>My {
actual constructor(b: String, a: Int)
}
@@ -0,0 +1,9 @@
// "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() {
}
}
@@ -0,0 +1,7 @@
// DISABLE-ERRORS
expect class My {
fun foo(param: String): Int
fun foo(param: Int): Int
}
@@ -0,0 +1,7 @@
// DISABLE-ERRORS
expect class My {
fun foo(param: String): Int
fun foo(param: Int): Int
}
@@ -0,0 +1,6 @@
// "Add missing actual members" "true"
// DISABLE-ERRORS
actual class <caret>My {
fun foo(param: String) = 42
}
@@ -0,0 +1,9 @@
// "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.
}
}
@@ -0,0 +1,7 @@
// DISABLE-ERRORS
expect class My {
val name: String
val age: String
}
@@ -0,0 +1,7 @@
// DISABLE-ERRORS
expect class My {
val name: String
val age: String
}
@@ -0,0 +1,4 @@
// "Add missing actual members" "true"
// DISABLE-ERRORS
actual class <caret>My(actual val name: String)
@@ -0,0 +1,7 @@
// "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.
}
@@ -0,0 +1,11 @@
// DISABLE-ERRORS
expect class My {
fun foo(param: String): Int
val x: String
val pi: Double
val correct: Boolean
}
@@ -0,0 +1,11 @@
// DISABLE-ERRORS
expect class My {
fun foo(param: String): Int
val x: String
val pi: Double
val correct: Boolean
}
@@ -0,0 +1,8 @@
// "Add missing actual members" "true"
// DISABLE-ERRORS
actual class <caret>My {
actual fun foo(param: String) = 42
actual val correct = true
}
@@ -0,0 +1,12 @@
// "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.
}
@@ -0,0 +1,6 @@
// DISABLE-ERRORS
expect class My {
// Incompilable function
fun foo() {}
}
@@ -0,0 +1,6 @@
// DISABLE-ERRORS
expect class My {
// Incompilable function
fun foo() {}
}
@@ -0,0 +1,4 @@
// "Add missing actual members" "true"
// DISABLE-ERRORS
actual class <caret>My
@@ -0,0 +1,7 @@
// "Add missing actual members" "true"
// DISABLE-ERRORS
actual class My {
actual fun foo() {
}
}
@@ -0,0 +1,7 @@
// DISABLE-ERRORS
expect class WithCompanion {
companion object {
fun foo()
}
}
@@ -0,0 +1,7 @@
// DISABLE-ERRORS
expect class WithCompanion {
companion object {
fun foo()
}
}
@@ -0,0 +1,6 @@
// "Add missing actual members" "true"
// DISABLE-ERRORS
actual class <caret>WithCompanion {
}
@@ -0,0 +1,10 @@
// "Add missing actual members" "true"
// DISABLE-ERRORS
actual class WithCompanion {
actual companion object {
actual fun foo() {
}
}
}
@@ -0,0 +1,3 @@
expect enum class E {
A, B, C
}
@@ -0,0 +1,5 @@
<caret>expect sealed class E {
object A : E
object B : E
object C : E
}
@@ -0,0 +1,5 @@
// "Convert to sealed class" "true"
actual enum class <caret>E {
A, B, C
}
@@ -0,0 +1,7 @@
// "Convert to sealed class" "true"
actual sealed class <caret>E {
actual object A : E()
actual object B : E()
actual object C : E()
}
@@ -0,0 +1,3 @@
actual enum class E {
A, B, C
}
@@ -0,0 +1,5 @@
actual sealed class E {
actual object A : E()
actual object B : E()
actual object C : E()
}
@@ -0,0 +1,5 @@
expect sealed class E {
object A : E
object B : E
object C : E
}
@@ -0,0 +1,3 @@
expect enum class E {
A, B, C
}
@@ -0,0 +1,7 @@
// "Convert to enum class" "true"
actual sealed class <caret>E {
actual object A : E()
actual object B : E()
actual object C : E()
}
@@ -0,0 +1,5 @@
// "Convert to enum class" "true"
actual enum class <caret>E {
A, B, C
}
@@ -0,0 +1,5 @@
actual sealed class E {
actual object A : E()
actual object B : E()
actual object C : E()
}
@@ -0,0 +1,3 @@
actual enum class E {
A, B, C
}
@@ -0,0 +1,5 @@
// "Convert to sealed class" "true"
expect enum class <caret>E {
A, B, C
}
@@ -0,0 +1,7 @@
// "Convert to sealed class" "true"
expect sealed class <caret>E {
object A : E
object B : E
object C : E
}
@@ -0,0 +1,3 @@
actual enum class E {
A, B, C
}
@@ -0,0 +1,5 @@
<caret>actual sealed class E {
actual object A : E()
actual object B : E()
actual object C : E()
}
@@ -0,0 +1,3 @@
actual enum class E {
A, B, C
}
@@ -0,0 +1,5 @@
actual sealed class E {
actual object A : E()
actual object B : E()
actual object C : E()
}
@@ -0,0 +1,7 @@
// "Convert to enum class" "true"
expect sealed class <caret>E {
object A : E
object B : E
object C : E
}
@@ -0,0 +1,5 @@
// "Convert to enum class" "true"
expect enum class <caret>E {
A, B, C
}
@@ -0,0 +1,5 @@
actual sealed class E {
actual object A : E()
actual object B : E()
actual object C : E()
}
@@ -0,0 +1,3 @@
actual enum class E {
A, B, C
}
@@ -0,0 +1,5 @@
actual sealed class E {
actual object A : E()
actual object B : E()
actual object C : E()
}

Some files were not shown because too many files have changed in this diff Show More