KTIJ-16167: migrate all "generate actual" test data to new naming schema with source set suffix

GitOrigin-RevId: 00438ab4697a6a777da706e551ed5b1b209420d1
This commit is contained in:
Konstantin Tskhovrebov
2023-04-20 11:19:11 +00:00
committed by intellij-monorepo-bot
parent 9edf7dc5ff
commit b89c2fd7cf
200 changed files with 131 additions and 127 deletions
@@ -8,11 +8,11 @@ import org.junit.Test
class GradleQuickFixTest : AbstractGradleMultiFileQuickFixTest() {
@Test
@PluginTargetVersions(pluginVersion = "1.5.31+")
fun testCreateActualForJs() = doMultiFileQuickFixTest()
fun testCreateActualForJsAndJvm() = doMultiFileQuickFixTest()
@Test
@PluginTargetVersions(pluginVersion = "1.5.31+")
fun testCreateActualForJsTest() = doMultiFileQuickFixTest()
fun testCreateActualForJsAndJvmTest() = doMultiFileQuickFixTest()
@Test
@PluginTargetVersions(pluginVersion = "1.5.31+")
@@ -1,4 +1,4 @@
// "Create actual class for module testProjectName.mpp-bottom-actual.jsJvm18Main (Native (general)/JS/JVM (1.8))" "true"
// "Add missing actual declarations" "true"
// ACTION: Convert to secondary constructor
// ACTION: Create subclass
@@ -1,4 +1,4 @@
// "Create actual class for module testProjectName.mpp-bottom-actual.jsJvm18Main (Native (general)/JS/JVM (1.8))" "true"
// "Add missing actual declarations" "true"
// ACTION: Convert to secondary constructor
// ACTION: Create subclass
@@ -1,8 +0,0 @@
// "Create actual function for module fullStackWebApplication.jsMain (JS)" "true"
// ACTION: Convert function to property
// ACTION: Create actual function for module fullStackWebApplication.jvmMain (JVM)
// ERROR: Expected function 'isJs' has no actual declaration in module fullStackWebApplication.jvmMain for JVM
package my.project.pack
expect fun isJs(): Boolean
@@ -1,8 +0,0 @@
// "Create actual function for module fullStackWebApplication.jsMain (JS)" "true"
// ACTION: Convert function to property
// ACTION: Create actual function for module fullStackWebApplication.jvmMain (JVM)
// ERROR: Expected function 'isJs' has no actual declaration in module fullStackWebApplication.jvmMain for JVM
package my.project.pack
expect fun i<caret>sJs(): Boolean
@@ -0,0 +1,6 @@
// "Add missing actual declarations" "true"
// ACTION: Convert function to property
package my.project.pack
expect fun isJs(): Boolean
@@ -0,0 +1,6 @@
// "Add missing actual declarations" "true"
// ACTION: Convert function to property
package my.project.pack
expect fun i<caret>sJs(): Boolean
@@ -0,0 +1,6 @@
// "Add missing actual declarations" "true"
// ACTION: Convert function to property
package my.project.pack
expect fun isJs(): Boolean
@@ -0,0 +1,5 @@
package my.project.pack
actual fun isJs(): Boolean {
TODO("Not yet implemented")
}
@@ -0,0 +1,6 @@
// "Add missing actual declarations" "true"
// ACTION: Convert function to property
package my.project.pack
expect fun i<caret>sJs(): Boolean
@@ -1,8 +0,0 @@
// "Create actual function for module fullStackWebApplication.jsTest (JS)" "true"
// ACTION: Convert function to property
// ACTION: Create actual function for module fullStackWebApplication.jvmTest (JVM)
// ERROR: Expected function 'isJs' has no actual declaration in module fullStackWebApplication.jvmTest (test) for JVM
package my.project.pack
expect fun isJs(): Boolean
@@ -1,8 +0,0 @@
// "Create actual function for module fullStackWebApplication.jsTest (JS)" "true"
// ACTION: Convert function to property
// ACTION: Create actual function for module fullStackWebApplication.jvmTest (JVM)
// ERROR: Expected function 'isJs' has no actual declaration in module fullStackWebApplication.jvmTest (test) for JVM
package my.project.pack
expect fun i<caret>sJs(): Boolean
@@ -1,5 +1,6 @@
// "Create actual function for module fullStackWebApplication.jvmMain (JVM)" "true"
// "Add missing actual declarations" "true"
// ACTION: Convert function to property
package my.project.pack
expect fun isJs(): Boolean
@@ -0,0 +1,5 @@
package my.project.pack
actual fun isJs(): Boolean {
TODO("Not yet implemented")
}
@@ -1,5 +1,6 @@
// "Create actual function for module fullStackWebApplication.jvmMain (JVM)" "true"
// "Add missing actual declarations" "true"
// ACTION: Convert function to property
package my.project.pack
expect fun i<caret>sJs(): Boolean
@@ -1,4 +1,4 @@
// "Create actual class for module testProject.jvmTest (JVM)" "true"
// "Add missing actual declarations" "true"
// ACTION: Convert to secondary constructor
package my.project.pack
@@ -1,4 +1,4 @@
// "Create actual class for module testProject.jvmTest (JVM)" "true"
// "Add missing actual declarations" "true"
// ACTION: Convert to secondary constructor
package my.project.pack
@@ -1,4 +1,4 @@
// "Create actual class for module testProjectName.jvmMain (JVM)" "true"
// "Add missing actual declarations" "true"
// ACTION: Convert to secondary constructor
package my.test.pack
@@ -1,4 +1,4 @@
// "Create actual class for module testProjectName.jvmMain (JVM)" "true"
// "Add missing actual declarations" "true"
// ACTION: Convert to secondary constructor
package my.test.pack
@@ -1,4 +1,4 @@
// "Create actual class for module testProjectName.jvmMain (JVM)" "true"
// "Add missing actual declarations" "true"
// ACTION: Convert to secondary constructor
package my.test.pack
@@ -1,4 +1,4 @@
// "Create actual class for module testProjectName.jvmMain (JVM)" "true"
// "Add missing actual declarations" "true"
// ACTION: Convert to secondary constructor
package my.test.pack
@@ -1,4 +1,4 @@
// "Create actual class for module testProjectName.mpp-bottom-actual.iosX64Main (Native)" "true"
// "Add missing actual declarations" "true"
// ACTION: Convert to secondary constructor
// ACTION: Create subclass
@@ -1,4 +1,4 @@
// "Create actual class for module testProjectName.mpp-bottom-actual.iosX64Main (Native)" "true"
// "Add missing actual declarations" "true"
// ACTION: Convert to secondary constructor
// ACTION: Create subclass
@@ -1,4 +1,4 @@
// "Create actual class for module testProjectName.mpp-bottom-actual.iosX64Main (Native)" "true"
// "Add missing actual declarations" "true"
// ACTION: Convert to secondary constructor
// ACTION: Create subclass
@@ -1,4 +1,4 @@
// "Create actual class for module testProjectName.mpp-bottom-actual.iosX64Main (Native)" "true"
// "Add missing actual declarations" "true"
// ACTION: Convert to secondary constructor
// ACTION: Create subclass
@@ -1,4 +1,4 @@
// "Create actual function for module testProjectName.main (JVM)" "true"
// "Add missing actual declarations" "true"
// ACTION: Convert function to property
package my.pack
@@ -1,4 +1,4 @@
// "Create actual function for module testProjectName.main (JVM)" "true"
// "Add missing actual declarations" "true"
// ACTION: Convert function to property
package my.pack
@@ -1,4 +1,4 @@
// "Create actual function for module testProjectName.main (JVM)" "true"
// "Add missing actual declarations" "true"
// ACTION: Convert function to property
package my.pack
@@ -1,4 +1,4 @@
// "Create actual function for module testProjectName.main (JVM)" "true"
// "Add missing actual declarations" "true"
// ACTION: Convert function to property
package my.pack
@@ -1,4 +1,4 @@
// "Create actual class for module testModule_JVM (JVM)" "true"
// "Add missing actual declarations" "true"
// SHOULD_FAIL_WITH: Cannot generate class: Type &lt;Unknown&gt; is not accessible from target module
// DISABLE-ERRORS
@@ -1,4 +1,4 @@
// "Create actual class for module testModule_JS (JS)" "true"
// "Add missing actual declarations" "true"
expect abstract class <caret>Abstract {
fun foo(param: String): Int
@@ -1,4 +1,4 @@
// "Create actual class for module testModule_JS (JS)" "true"
// "Add missing actual declarations" "true"
expect abstract class Abstract {
fun foo(param: String): Int
@@ -1,4 +1,4 @@
// "Create actual class for module proj_JVM (JVM)" "true"
// "Add missing actual declarations" "true"
import kotlin.random.Random
@@ -1,4 +1,4 @@
// "Create actual class for module proj_JVM (JVM)" "true"
// "Add missing actual declarations" "true"
import kotlin.random.Random
@@ -1,3 +1,3 @@
// "Create actual annotation class for module testModule_JVM (JVM)" "true"
// "Add missing actual declarations" "true"
expect annotation class <caret>Ann(val x: Int, val y: String)
@@ -1,3 +1,3 @@
// "Create actual annotation class for module testModule_JVM (JVM)" "true"
// "Add missing actual declarations" "true"
expect annotation class Ann(val x: Int, val y: String)
@@ -1,4 +1,4 @@
// "Create actual annotation class for module testModule_JVM (JVM)" "true"
// "Add missing actual declarations" "true"
// TOOL: org.jetbrains.kotlin.idea.inspections.OptionalExpectationInspection
package kotlin
@@ -1,4 +1,4 @@
// "Create actual annotation class for module testModule_JVM (JVM)" "true"
// "Add missing actual declarations" "true"
// TOOL: org.jetbrains.kotlin.idea.inspections.OptionalExpectationInspection
package kotlin
@@ -1,4 +1,4 @@
// "Create actual annotation class for module testModule_JVM (JVM)" "true"
// "Add missing actual declarations" "true"
// TOOL: org.jetbrains.kotlin.idea.inspections.OptionalExpectationInspection
package kotlin
@@ -1,4 +1,4 @@
// "Create actual annotation class for module testModule_JVM (JVM)" "true"
// "Add missing actual declarations" "true"
// TOOL: org.jetbrains.kotlin.idea.inspections.OptionalExpectationInspection
package kotlin
@@ -1,4 +1,4 @@
// "Create actual annotation class for module testModule_JVM (JVM)" "true"
// "Add missing actual declarations" "true"
@RegAnn // some comment
expect annotation class SomeAnn<caret>
@@ -1,4 +1,4 @@
// "Create actual class for module testModule_JVM (JVM)" "true"
// "Add missing actual declarations" "true"
expect class <caret>My {
fun foo(param: String): Int
@@ -1,4 +1,4 @@
// "Create actual class for module testModule_JVM (JVM)" "true"
// "Add missing actual declarations" "true"
expect class My {
fun foo(param: String): Int
@@ -1,4 +1,4 @@
// "Create actual class for module testModule_JVM (JVM)" "true"
// "Add missing actual declarations" "true"
open class SimpleParent
expect class <caret>ExpectedChild : SimpleParent
@@ -1,4 +1,4 @@
// "Create actual class for module testModule_JVM (JVM)" "true"
// "Add missing actual declarations" "true"
open class SimpleParent
expect class <caret>ExpectedChild : SimpleParent
@@ -1,4 +1,4 @@
// "Create actual class for module proj_JVM (JVM)" "true"
// "Add missing actual declarations" "true"
import kotlin.random.Random
@@ -1,4 +1,4 @@
// "Create actual class for module proj_JVM (JVM)" "true"
// "Add missing actual declarations" "true"
import kotlin.random.Random
@@ -1,4 +1,4 @@
// "Create actual class for module testModule_JVM (JVM)" "true"
// "Add missing actual declarations" "true"
// DISABLE-ERRORS
package my
@@ -1,4 +1,4 @@
// "Create actual class for module testModule_JVM (JVM)" "true"
// "Add missing actual declarations" "true"
// DISABLE-ERRORS
package my
@@ -1,4 +1,4 @@
// "Create actual class for module testModule_JVM (JVM)" "true"
// "Add missing actual declarations" "true"
expect class <caret>Constructors(s: String) {
constructor(i: Int)
@@ -1,4 +1,4 @@
// "Create actual class for module testModule_JVM (JVM)" "true"
// "Add missing actual declarations" "true"
expect class <caret>Constructors(s: String) {
constructor(i: Int)
@@ -1,4 +1,4 @@
// "Create actual class for module proj_JVM (JVM)" "true"
// "Add missing actual declarations" "true"
import kotlin.random.Random
@@ -1,4 +1,4 @@
// "Create actual class for module proj_JVM (JVM)" "true"
// "Add missing actual declarations" "true"
import kotlin.random.Random
@@ -1,4 +1,4 @@
// "Create actual class for module testModule_JVM (JVM)" "true"
// "Add missing actual declarations" "true"
package a
import b.B
@@ -1,4 +1,4 @@
// "Create actual interface for module testModule_JVM (JVM)" "true"
// "Add missing actual declarations" "true"
expect interface <caret>I {
fun f(p: Int = 1)
@@ -1,4 +1,4 @@
// "Create actual interface for module testModule_JVM (JVM)" "true"
// "Add missing actual declarations" "true"
expect interface I {
fun f(p: Int = 1)

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