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,11 @@
// "Create actual class for module testModule_JS (JS)" "true"
expect abstract class <caret>Abstract {
fun foo(param: String): Int
abstract fun String.bar(y: Double): Boolean
val isGood: Boolean
abstract var status: Int
}
@@ -0,0 +1,11 @@
// "Create actual class for module testModule_JS (JS)" "true"
expect abstract class Abstract {
fun foo(param: String): Int
abstract fun String.bar(y: Double): Boolean
val isGood: Boolean
abstract var status: Int
}
@@ -0,0 +1 @@
// Abstract: to be implemented
@@ -0,0 +1,12 @@
// Abstract: to be implemented
actual abstract class Abstract {
actual fun foo(param: String): Int {
TODO("not implemented") //To change body of created functions use File | Settings | File Templates.
}
actual abstract fun String.bar(y: Double): Boolean
actual val isGood: Boolean
get() = TODO("not implemented") //To change initializer of created properties use File | Settings | File Templates.
actual abstract var status: Int
}
@@ -0,0 +1,7 @@
// "Create actual class for module proj_JVM (JVM)" "true"
import kotlin.random.Random
expect abstract class My<caret>Generator {
abstract fun generate(): Random
}
@@ -0,0 +1,7 @@
// "Create actual class for module proj_JVM (JVM)" "true"
import kotlin.random.Random
expect abstract class MyGenerator {
abstract fun generate(): Random
}
@@ -0,0 +1 @@
// MyGenerator: to be implemented
@@ -0,0 +1,6 @@
import kotlin.random.Random
// MyGenerator: to be implemented
actual abstract class MyGenerator {
actual abstract fun generate(): Random
}
@@ -0,0 +1,3 @@
// "Create actual annotation class for module testModule_JVM (JVM)" "true"
expect annotation class <caret>Ann(val x: Int, val y: String)
@@ -0,0 +1,3 @@
// "Create actual annotation class for module testModule_JVM (JVM)" "true"
expect annotation class Ann(val x: Int, val y: String)
@@ -0,0 +1 @@
// Ann: to be implemented
@@ -0,0 +1,2 @@
// Ann: to be implemented
actual annotation class Ann actual constructor(actual val x: Int, actual val y: String)
@@ -0,0 +1,11 @@
// "Create actual annotation class for module testModule_JVM (JVM)" "true"
// TOOL: org.jetbrains.kotlin.idea.inspections.OptionalExpectationInspection
package kotlin
annotation class ExperimentalMultiplatform
annotation class OptionalExpectation
@ExperimentalMultiplatform
@OptionalExpectation
expect annotation class <caret>Ann
@@ -0,0 +1,11 @@
// "Create actual annotation class for module testModule_JVM (JVM)" "true"
// TOOL: org.jetbrains.kotlin.idea.inspections.OptionalExpectationInspection
package kotlin
annotation class ExperimentalMultiplatform
annotation class OptionalExpectation
@ExperimentalMultiplatform
@OptionalExpectation
expect annotation class <caret>Ann
@@ -0,0 +1 @@
// Ann: to be implemented
@@ -0,0 +1,4 @@
package kotlin
// Ann: to be implemented
actual annotation class Ann
@@ -0,0 +1,11 @@
// "Create actual annotation class for module testModule_JVM (JVM)" "true"
// TOOL: org.jetbrains.kotlin.idea.inspections.OptionalExpectationInspection
package kotlin
annotation class ExperimentalMultiplatform
annotation class OptionalExpectation
@ExperimentalMultiplatform
@OptionalExpectation
expect annotation class <caret>Ann
@@ -0,0 +1,11 @@
// "Create actual annotation class for module testModule_JVM (JVM)" "true"
// TOOL: org.jetbrains.kotlin.idea.inspections.OptionalExpectationInspection
package kotlin
annotation class ExperimentalMultiplatform
annotation class OptionalExpectation
@ExperimentalMultiplatform
@OptionalExpectation
expect annotation class <caret>Ann
@@ -0,0 +1,3 @@
package kotlin
actual annotation class Ann
@@ -0,0 +1,15 @@
// "Create actual class for module testModule_JVM (JVM)" "true"
expect class <caret>My {
fun foo(param: String): Int
fun String.bar(y: Double): Boolean
fun baz(): Unit
constructor(flag: Boolean)
val isGood: Boolean
var status: Int
}
@@ -0,0 +1,15 @@
// "Create actual class for module testModule_JVM (JVM)" "true"
expect class My {
fun foo(param: String): Int
fun String.bar(y: Double): Boolean
fun baz(): Unit
constructor(flag: Boolean)
val isGood: Boolean
var status: Int
}
@@ -0,0 +1 @@
// My: to be implemented
@@ -0,0 +1,24 @@
// My: to be implemented
actual class My {
actual fun foo(param: String): Int {
TODO("not implemented") //To change body of created functions use File | Settings | File Templates.
}
actual fun String.bar(y: Double): Boolean {
TODO("not implemented") //To change body of created functions use File | Settings | File Templates.
}
actual fun baz() {
}
actual constructor(flag: Boolean) {
TODO("not implemented") //To change body of created functions use File | Settings | File Templates.
}
actual val isGood: Boolean
get() = TODO("not implemented") //To change initializer of created properties use File | Settings | File Templates.
actual var status: Int
get() = TODO("not implemented") //To change initializer of created properties use File | Settings | File Templates.
set(value) {}
}
@@ -0,0 +1,4 @@
// "Create actual class for module testModule_JVM (JVM)" "true"
open class SimpleParent
expect class <caret>ExpectedChild : SimpleParent
@@ -0,0 +1,4 @@
// "Create actual class for module testModule_JVM (JVM)" "true"
open class SimpleParent
expect class <caret>ExpectedChild : SimpleParent
@@ -0,0 +1 @@
// ExpectedChild: to be implemented
@@ -0,0 +1,2 @@
// ExpectedChild: to be implemented
actual class ExpectedChild : SimpleParent()
@@ -0,0 +1,7 @@
// "Create actual class for module proj_JVM (JVM)" "true"
import kotlin.random.Random
expect class My<caret>Generator {
fun generate(): Random
}
@@ -0,0 +1,7 @@
// "Create actual class for module proj_JVM (JVM)" "true"
import kotlin.random.Random
expect class MyGenerator {
fun generate(): Random
}
@@ -0,0 +1 @@
// MyGenerator: to be implemented
@@ -0,0 +1,8 @@
import kotlin.random.Random
// MyGenerator: to be implemented
actual class MyGenerator {
actual fun generate(): Random {
TODO("not implemented") //To change body of created functions use File | Settings | File Templates.
}
}
@@ -0,0 +1,9 @@
// "Create actual class for module testModule_JVM (JVM)" "true"
// DISABLE-ERRORS
package my
import other.Another
import other.Other
expect class My<caret> : Other<Another>
@@ -0,0 +1,9 @@
// "Create actual class for module testModule_JVM (JVM)" "true"
// DISABLE-ERRORS
package my
import other.Another
import other.Other
expect class My : Other<Another>
@@ -0,0 +1,5 @@
package other
class Other<T>
class Another
@@ -0,0 +1,5 @@
package other
class Other<T>
class Another
@@ -0,0 +1,3 @@
// My: to be implemented
// DISABLE-ERRORS
package my
@@ -0,0 +1,8 @@
// My: to be implemented
// DISABLE-ERRORS
package my
import other.Another
import other.Other
actual class My : Other<Another>()
@@ -0,0 +1,5 @@
// "Create actual class for module testModule_JVM (JVM)" "true"
expect class <caret>Constructors(s: String) {
constructor(i: Int)
}
@@ -0,0 +1,5 @@
// "Create actual class for module testModule_JVM (JVM)" "true"
expect class <caret>Constructors(s: String) {
constructor(i: Int)
}
@@ -0,0 +1 @@
// Constructors: to be implemented
@@ -0,0 +1,6 @@
// Constructors: to be implemented
actual class Constructors actual constructor(s: String) {
actual constructor(i: Int) : this() {
TODO("not implemented") //To change body of created functions use File | Settings | File Templates.
}
}
@@ -0,0 +1,7 @@
// "Create actual class for module proj_JVM (JVM)" "true"
import kotlin.random.Random
expect class My<caret>Generator(r: Random) {
val i: Int
}
@@ -0,0 +1,7 @@
// "Create actual class for module proj_JVM (JVM)" "true"
import kotlin.random.Random
expect class My<caret>Generator(r: Random) {
val i: Int
}
@@ -0,0 +1 @@
// MyGenerator: to be implemented
@@ -0,0 +1,7 @@
import kotlin.random.Random
// MyGenerator: to be implemented
actual class MyGenerator actual constructor(r: Random) {
actual val i: Int
get() = TODO("not implemented") //To change initializer of created properties use File | Settings | File Templates.
}
@@ -0,0 +1,5 @@
// "Create actual interface for module testModule_JVM (JVM)" "true"
expect interface <caret>I {
fun f(p: Int = 1)
}
@@ -0,0 +1,5 @@
// "Create actual interface for module testModule_JVM (JVM)" "true"
expect interface I {
fun f(p: Int = 1)
}
@@ -0,0 +1 @@
// to be created
@@ -0,0 +1,4 @@
// to be created
actual interface I {
actual fun f(p: Int)
}
@@ -0,0 +1,5 @@
// "Create actual class for module testModule_JVM (JVM)" "true"
expect class <caret>C {
fun f(p: Int = 1)
}
@@ -0,0 +1,5 @@
// "Create actual class for module testModule_JVM (JVM)" "true"
expect class C {
fun f(p: Int = 1)
}
@@ -0,0 +1 @@
// to be created
@@ -0,0 +1,5 @@
// to be created
actual class C {
actual fun f(p: Int) {
}
}
@@ -0,0 +1,3 @@
// "Create actual class for module testModule_JVM (JVM)" "true"
expect class <caret>WithConstructor(s: String = "Hello")
@@ -0,0 +1,3 @@
// "Create actual class for module testModule_JVM (JVM)" "true"
expect class <caret>WithConstructor(s: String = "Hello")
@@ -0,0 +1 @@
actual class WithConstructor actual constructor(s: String)
@@ -0,0 +1,9 @@
// "Create actual enum class for module testModule_JS (JS)" "true"
expect enum class <caret>MyEnum {
FIRST,
SECOND,
LAST;
val num: Int
}
@@ -0,0 +1,9 @@
// "Create actual enum class for module testModule_JS (JS)" "true"
expect enum class MyEnum {
FIRST,
SECOND,
LAST;
val num: Int
}
@@ -0,0 +1 @@
// MyEnum: to be implemented
@@ -0,0 +1,8 @@
// MyEnum: to be implemented
actual enum class MyEnum {
FIRST, SECOND, LAST;
actual val num: Int
get() = TODO("not implemented") //To change initializer of created properties use File | Settings | File Templates.
}
@@ -0,0 +1,3 @@
// "Create actual function for module testModule_JVM (JVM)" "true"
expect fun <caret>foo(arg: Int): String
@@ -0,0 +1,3 @@
// "Create actual function for module testModule_JVM (JVM)" "true"
expect fun foo(arg: Int): String
@@ -0,0 +1 @@
// foo: to be implemented
@@ -0,0 +1,4 @@
// foo: to be implemented
actual fun foo(arg: Int): String {
TODO("not implemented") //To change body of created functions use File | Settings | File Templates.
}
@@ -0,0 +1,5 @@
// "Create actual function for module testModule_JVM (JVM)" "true"
expect fun bar()
expect fun <caret>foo(arg: Int): String
@@ -0,0 +1,5 @@
// "Create actual function for module testModule_JVM (JVM)" "true"
expect fun bar()
expect fun foo(arg: Int): String
@@ -0,0 +1,3 @@
// foo: to be implemented
actual fun bar() {}
@@ -0,0 +1,6 @@
// foo: to be implemented
actual fun bar() {}
actual fun foo(arg: Int): String {
TODO("not implemented") //To change body of created functions use File | Settings | File Templates.
}
@@ -0,0 +1,3 @@
// "Create actual class for module testModule_JVM (JVM)" "true"
expect inline class Inline<caret>Me(val x: Int)
@@ -0,0 +1,3 @@
// "Create actual class for module testModule_JVM (JVM)" "true"
expect inline class InlineMe(val x: Int)
@@ -0,0 +1 @@
actual inline class InlineMe actual constructor(actual val x: Int)
@@ -0,0 +1,15 @@
// "Create actual interface for module testModule_JVM (JVM)" "true"
expect interface <caret>Interface {
fun foo(param: String): Int
fun String.bar(y: Double): Boolean
val isGood: Boolean
var status: Int
class Nested {
fun bar()
}
}
@@ -0,0 +1,15 @@
// "Create actual interface for module testModule_JVM (JVM)" "true"
expect interface Interface {
fun foo(param: String): Int
fun String.bar(y: Double): Boolean
val isGood: Boolean
var status: Int
class Nested {
fun bar()
}
}
@@ -0,0 +1 @@
// Interface: to be implemented
@@ -0,0 +1,13 @@
// Interface: to be implemented
actual interface Interface {
actual fun foo(param: String): Int
actual fun String.bar(y: Double): Boolean
actual val isGood: Boolean
actual var status: Int
actual class Nested {
actual fun bar() {
}
}
}
@@ -0,0 +1,13 @@
// "Create actual class for module testModule_JVM (JVM)" "true"
expect class <caret>WithNested {
fun foo(): Int
class Nested {
fun bar()
}
inner class Inner {
fun baz()
}
}
@@ -0,0 +1,13 @@
// "Create actual class for module testModule_JVM (JVM)" "true"
expect class WithNested {
fun foo(): Int
class Nested {
fun bar()
}
inner class Inner {
fun baz()
}
}
@@ -0,0 +1 @@
// WithNested: to be implemented
@@ -0,0 +1,17 @@
// WithNested: to be implemented
actual class WithNested {
actual fun foo(): Int {
TODO("not implemented") //To change body of created functions use File | Settings | File Templates.
}
actual class Nested {
actual fun bar() {
}
}
actual inner class Inner {
actual fun baz() {
}
}
}
@@ -0,0 +1,5 @@
// "Create actual object for module testModule_JVM (JVM)" "true"
expect object <caret>Object {
fun foo(): String
}
@@ -0,0 +1,5 @@
// "Create actual object for module testModule_JVM (JVM)" "true"
expect object Object {
fun foo(): String
}
@@ -0,0 +1 @@
// Object: to be implemented
@@ -0,0 +1,6 @@
// Object: to be implemented
actual object Object {
actual fun foo(): String {
TODO("not implemented") //To change body of created functions use File | Settings | File Templates.
}
}
@@ -0,0 +1,6 @@
// "Create actual class for module testModule_JVM (JVM)" "true"
// SHOULD_BE_AVAILABLE_AFTER_EXECUTION
package test.inner
expect class <caret>My
@@ -0,0 +1,6 @@
// "Create actual class for module testModule_JVM (JVM)" "true"
// SHOULD_BE_AVAILABLE_AFTER_EXECUTION
package test.inner
expect class My
@@ -0,0 +1,3 @@
package test.inner
actual class My
@@ -0,0 +1,6 @@
// "Create actual class for module testModule_JVM (JVM)" "true"
// SHOULD_BE_AVAILABLE_AFTER_EXECUTION
package test.inner
expect class <caret>My
@@ -0,0 +1,6 @@
// "Create actual class for module testModule_JVM (JVM)" "true"
// SHOULD_BE_AVAILABLE_AFTER_EXECUTION
package test.inner
expect class My
@@ -0,0 +1,3 @@
package incorrect
class Some
@@ -0,0 +1,3 @@
package incorrect
class Some
@@ -0,0 +1,3 @@
package test.inner
actual class My
@@ -0,0 +1,6 @@
// "Create actual class for module testModule_JVM (JVM)" "true"
// SHOULD_BE_AVAILABLE_AFTER_EXECUTION
package test.inner
expect class <caret>My
@@ -0,0 +1,6 @@
// "Create actual class for module testModule_JVM (JVM)" "true"
// SHOULD_BE_AVAILABLE_AFTER_EXECUTION
package test.inner
expect class My
@@ -0,0 +1 @@
package incorrect
@@ -0,0 +1,3 @@
package test.inner
actual class My
@@ -0,0 +1,3 @@
// "Create actual class for module testModule_JVM (JVM)" "true"
expect class <caret>WithPrimaryConstructor(x: Int, s: String)
@@ -0,0 +1,3 @@
// "Create actual class for module testModule_JVM (JVM)" "true"
expect class WithPrimaryConstructor(x: Int, s: String)
@@ -0,0 +1 @@
// WithPrimaryConstructor: to be implemented
@@ -0,0 +1,2 @@
// WithPrimaryConstructor: to be implemented
actual class WithPrimaryConstructor actual constructor(x: Int, s: String)

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