add tests for incremental compilation with changed internal class
Original commit: ad274c5137
This commit is contained in:
@@ -329,6 +329,18 @@ public class IncrementalJpsTestGenerated extends AbstractIncrementalJpsTest {
|
|||||||
doTest(fileName);
|
doTest(fileName);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@TestMetadata("internalClassChanged")
|
||||||
|
public void testInternalClassChanged() throws Exception {
|
||||||
|
String fileName = JetTestUtils.navigationMetadata("jps-plugin/testData/incremental/pureKotlin/internalClassChanged/");
|
||||||
|
doTest(fileName);
|
||||||
|
}
|
||||||
|
|
||||||
|
@TestMetadata("internalMemberInClassChanged")
|
||||||
|
public void testInternalMemberInClassChanged() throws Exception {
|
||||||
|
String fileName = JetTestUtils.navigationMetadata("jps-plugin/testData/incremental/pureKotlin/internalMemberInClassChanged/");
|
||||||
|
doTest(fileName);
|
||||||
|
}
|
||||||
|
|
||||||
@TestMetadata("localClassChanged")
|
@TestMetadata("localClassChanged")
|
||||||
public void testLocalClassChanged() throws Exception {
|
public void testLocalClassChanged() throws Exception {
|
||||||
String fileName = JetTestUtils.navigationMetadata("jps-plugin/testData/incremental/pureKotlin/localClassChanged/");
|
String fileName = JetTestUtils.navigationMetadata("jps-plugin/testData/incremental/pureKotlin/localClassChanged/");
|
||||||
|
|||||||
@@ -0,0 +1,5 @@
|
|||||||
|
package test
|
||||||
|
|
||||||
|
internal class ClassA() {
|
||||||
|
public fun meth1() {}
|
||||||
|
}
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
package test
|
||||||
|
|
||||||
|
internal class ClassA() {
|
||||||
|
public fun meth1() {}
|
||||||
|
public val x = 100
|
||||||
|
}
|
||||||
@@ -0,0 +1,12 @@
|
|||||||
|
Cleaning output files:
|
||||||
|
out/production/module/test/ClassA.class
|
||||||
|
End of files
|
||||||
|
Compiling files:
|
||||||
|
src/ClassA.kt
|
||||||
|
End of files
|
||||||
|
Cleaning output files:
|
||||||
|
out/production/module/test/Usage.class
|
||||||
|
End of files
|
||||||
|
Compiling files:
|
||||||
|
src/usage.kt
|
||||||
|
End of files
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
package test
|
||||||
|
|
||||||
|
public object Usage {
|
||||||
|
public fun f() {
|
||||||
|
ClassA().meth1()
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
package test
|
||||||
|
|
||||||
|
class ClassA() {
|
||||||
|
public fun meth1() {}
|
||||||
|
internal fun f() {}
|
||||||
|
}
|
||||||
+6
@@ -0,0 +1,6 @@
|
|||||||
|
package test
|
||||||
|
|
||||||
|
class ClassA() {
|
||||||
|
public fun meth1() {}
|
||||||
|
internal fun f(arg: Int) {}
|
||||||
|
}
|
||||||
@@ -0,0 +1,12 @@
|
|||||||
|
Cleaning output files:
|
||||||
|
out/production/module/test/ClassA.class
|
||||||
|
End of files
|
||||||
|
Compiling files:
|
||||||
|
src/ClassA.kt
|
||||||
|
End of files
|
||||||
|
Cleaning output files:
|
||||||
|
out/production/module/test/Usage.class
|
||||||
|
End of files
|
||||||
|
Compiling files:
|
||||||
|
src/usage.kt
|
||||||
|
End of files
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
package test
|
||||||
|
|
||||||
|
public object Usage {
|
||||||
|
public fun f() {
|
||||||
|
ClassA().meth1()
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user