Merged tests with inline functions in class and in package.
Now this test also checks situation when several class files with inline functions are emitted from one source file.
This commit is contained in:
@@ -61,11 +61,6 @@ public class IncrementalJpsTestGenerated extends AbstractIncrementalJpsTest {
|
|||||||
doTest("jps-plugin/testData/incremental/classInlineFunctionChanged/");
|
doTest("jps-plugin/testData/incremental/classInlineFunctionChanged/");
|
||||||
}
|
}
|
||||||
|
|
||||||
@TestMetadata("classInlineFunctionUnchanged")
|
|
||||||
public void testClassInlineFunctionUnchanged() throws Exception {
|
|
||||||
doTest("jps-plugin/testData/incremental/classInlineFunctionUnchanged/");
|
|
||||||
}
|
|
||||||
|
|
||||||
@TestMetadata("classObjectConstantChanged")
|
@TestMetadata("classObjectConstantChanged")
|
||||||
public void testClassObjectConstantChanged() throws Exception {
|
public void testClassObjectConstantChanged() throws Exception {
|
||||||
doTest("jps-plugin/testData/incremental/classObjectConstantChanged/");
|
doTest("jps-plugin/testData/incremental/classObjectConstantChanged/");
|
||||||
@@ -111,6 +106,11 @@ public class IncrementalJpsTestGenerated extends AbstractIncrementalJpsTest {
|
|||||||
doTest("jps-plugin/testData/incremental/inlineFunctionsCircularDependency/");
|
doTest("jps-plugin/testData/incremental/inlineFunctionsCircularDependency/");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@TestMetadata("inlineFunctionsUnchanged")
|
||||||
|
public void testInlineFunctionsUnchanged() throws Exception {
|
||||||
|
doTest("jps-plugin/testData/incremental/inlineFunctionsUnchanged/");
|
||||||
|
}
|
||||||
|
|
||||||
@TestMetadata("multiplePackagesModified")
|
@TestMetadata("multiplePackagesModified")
|
||||||
public void testMultiplePackagesModified() throws Exception {
|
public void testMultiplePackagesModified() throws Exception {
|
||||||
doTest("jps-plugin/testData/incremental/multiplePackagesModified/");
|
doTest("jps-plugin/testData/incremental/multiplePackagesModified/");
|
||||||
@@ -166,11 +166,6 @@ public class IncrementalJpsTestGenerated extends AbstractIncrementalJpsTest {
|
|||||||
doTest("jps-plugin/testData/incremental/packageInlineFunctionFromOurPackage/");
|
doTest("jps-plugin/testData/incremental/packageInlineFunctionFromOurPackage/");
|
||||||
}
|
}
|
||||||
|
|
||||||
@TestMetadata("packageInlineFunctionUnchanged")
|
|
||||||
public void testPackageInlineFunctionUnchanged() throws Exception {
|
|
||||||
doTest("jps-plugin/testData/incremental/packageInlineFunctionUnchanged/");
|
|
||||||
}
|
|
||||||
|
|
||||||
@TestMetadata("packageRecreated")
|
@TestMetadata("packageRecreated")
|
||||||
public void testPackageRecreated() throws Exception {
|
public void testPackageRecreated() throws Exception {
|
||||||
doTest("jps-plugin/testData/incremental/packageRecreated/");
|
doTest("jps-plugin/testData/incremental/packageRecreated/");
|
||||||
|
|||||||
@@ -1,6 +0,0 @@
|
|||||||
Cleaning output files:
|
|
||||||
out/production/module/inline/Klass.class
|
|
||||||
End of files
|
|
||||||
Compiling files:
|
|
||||||
src/inline.kt
|
|
||||||
End of files
|
|
||||||
+1
@@ -1,6 +1,7 @@
|
|||||||
Cleaning output files:
|
Cleaning output files:
|
||||||
out/production/module/inline/InlinePackage-inline-*.class
|
out/production/module/inline/InlinePackage-inline-*.class
|
||||||
out/production/module/inline/InlinePackage.class
|
out/production/module/inline/InlinePackage.class
|
||||||
|
out/production/module/inline/Klass.class
|
||||||
End of files
|
End of files
|
||||||
Compiling files:
|
Compiling files:
|
||||||
src/inline.kt
|
src/inline.kt
|
||||||
+5
@@ -1,5 +1,10 @@
|
|||||||
package inline
|
package inline
|
||||||
|
|
||||||
|
inline fun f(body: () -> Unit) {
|
||||||
|
println("i'm inline function")
|
||||||
|
body()
|
||||||
|
}
|
||||||
|
|
||||||
class Klass {
|
class Klass {
|
||||||
inline fun f(body: () -> Unit) {
|
inline fun f(body: () -> Unit) {
|
||||||
println("i'm inline function")
|
println("i'm inline function")
|
||||||
+5
@@ -1,5 +1,10 @@
|
|||||||
package inline
|
package inline
|
||||||
|
|
||||||
|
inline fun f(body: () -> Unit) {
|
||||||
|
println("i'm inline function")
|
||||||
|
body()
|
||||||
|
}
|
||||||
|
|
||||||
class Klass {
|
class Klass {
|
||||||
inline fun f(body: () -> Unit) {
|
inline fun f(body: () -> Unit) {
|
||||||
println("i'm inline function")
|
println("i'm inline function")
|
||||||
+1
@@ -1,5 +1,6 @@
|
|||||||
package usage
|
package usage
|
||||||
|
|
||||||
fun main(args: Array<String>) {
|
fun main(args: Array<String>) {
|
||||||
|
inline.f { println("to be inlined") }
|
||||||
inline.Klass().f { println("to be inlined") }
|
inline.Klass().f { println("to be inlined") }
|
||||||
}
|
}
|
||||||
@@ -1,6 +0,0 @@
|
|||||||
package inline
|
|
||||||
|
|
||||||
inline fun f(body: () -> Unit) {
|
|
||||||
println("i'm inline function")
|
|
||||||
body()
|
|
||||||
}
|
|
||||||
@@ -1,6 +0,0 @@
|
|||||||
package inline
|
|
||||||
|
|
||||||
inline fun f(body: () -> Unit) {
|
|
||||||
println("i'm inline function")
|
|
||||||
body()
|
|
||||||
}
|
|
||||||
@@ -1,5 +0,0 @@
|
|||||||
package usage
|
|
||||||
|
|
||||||
fun main(args: Array<String>) {
|
|
||||||
inline.f { println("to be inlined") }
|
|
||||||
}
|
|
||||||
Reference in New Issue
Block a user