IC: Add IC test with fix on rename file with only class inside
"fails" on JS and JPS tests - the IC logic there is less precise.
This commit is contained in:
+1
-1
@@ -113,7 +113,7 @@ abstract class AbstractIncrementalJpsTest(
|
||||
lateinit var kotlinCompileContext: KotlinCompileContext
|
||||
|
||||
protected open val buildLogFinder: BuildLogFinder
|
||||
get() = BuildLogFinder()
|
||||
get() = BuildLogFinder(isJpsBuild = true)
|
||||
|
||||
private fun enableDebugLogging() {
|
||||
com.intellij.openapi.diagnostic.Logger.setFactory(TestLoggerFactory::class.java)
|
||||
|
||||
Generated
+5
@@ -1246,6 +1246,11 @@ public class IncrementalJvmJpsTestGenerated extends AbstractIncrementalJvmJpsTes
|
||||
runTest("jps/jps-plugin/testData/incremental/pureKotlin/renameClass/");
|
||||
}
|
||||
|
||||
@TestMetadata("renameFileWithClassesOnly")
|
||||
public void testRenameFileWithClassesOnly() throws Exception {
|
||||
runTest("jps/jps-plugin/testData/incremental/pureKotlin/renameFileWithClassesOnly/");
|
||||
}
|
||||
|
||||
@TestMetadata("renameFileWithFunctionOverload")
|
||||
public void testRenameFileWithFunctionOverload() throws Exception {
|
||||
runTest("jps/jps-plugin/testData/incremental/pureKotlin/renameFileWithFunctionOverload/");
|
||||
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
================ Step #1 =================
|
||||
|
||||
Cleaning output files:
|
||||
out/production/module/META-INF/module.kotlin_module
|
||||
out/production/module/foo/Foo0Kt.class
|
||||
End of files
|
||||
Compiling files:
|
||||
src/foo1.kt
|
||||
End of files
|
||||
Exit code: OK
|
||||
------------------------------------------
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
package foo
|
||||
|
||||
class A(val x: Int) {}
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
package foo
|
||||
|
||||
class A(val x: Int) {}
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
package foo
|
||||
|
||||
class A(val x: Int) {}
|
||||
+15
@@ -0,0 +1,15 @@
|
||||
================ Step #1 =================
|
||||
|
||||
Cleaning output files:
|
||||
out/production/module/META-INF/module.kotlin_module
|
||||
out/production/module/foo/A.class
|
||||
End of files
|
||||
Cleaning output files:
|
||||
out/production/module/use/UseAKt.class
|
||||
End of files
|
||||
Compiling files:
|
||||
src/foo1.kt
|
||||
src/useA.kt
|
||||
End of files
|
||||
Exit code: OK
|
||||
------------------------------------------
|
||||
+15
@@ -0,0 +1,15 @@
|
||||
================ Step #1 =================
|
||||
|
||||
Cleaning output files:
|
||||
out/production/module/META-INF/module.kotlin_module
|
||||
out/production/module/foo/A.class
|
||||
End of files
|
||||
Cleaning output files:
|
||||
out/production/module/use/UseAKt.class
|
||||
End of files
|
||||
Compiling files:
|
||||
src/foo1.kt
|
||||
src/useA.kt
|
||||
End of files
|
||||
Exit code: OK
|
||||
------------------------------------------
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
package use
|
||||
|
||||
import foo.*
|
||||
|
||||
fun useA() {
|
||||
A(1)
|
||||
}
|
||||
Reference in New Issue
Block a user