Add another package part with inline to multi-module inline test
This commit is contained in:
@@ -61,18 +61,18 @@ public class IncrementalJpsTestGenerated extends AbstractIncrementalJpsTest {
|
||||
doTest(fileName);
|
||||
}
|
||||
|
||||
@TestMetadata("inlineFunctionChanged")
|
||||
public void testInlineFunctionChanged() throws Exception {
|
||||
String fileName = JetTestUtils.navigationMetadata("jps-plugin/testData/incremental/multiModule/inlineFunctionChanged/");
|
||||
doTest(fileName);
|
||||
}
|
||||
|
||||
@TestMetadata("inlineFunctionInlined")
|
||||
public void testInlineFunctionInlined() throws Exception {
|
||||
String fileName = JetTestUtils.navigationMetadata("jps-plugin/testData/incremental/multiModule/inlineFunctionInlined/");
|
||||
doTest(fileName);
|
||||
}
|
||||
|
||||
@TestMetadata("inlineFunctionTwoPackageParts")
|
||||
public void testInlineFunctionTwoPackageParts() throws Exception {
|
||||
String fileName = JetTestUtils.navigationMetadata("jps-plugin/testData/incremental/multiModule/inlineFunctionTwoPackageParts/");
|
||||
doTest(fileName);
|
||||
}
|
||||
|
||||
@TestMetadata("simpleDependency")
|
||||
public void testSimpleDependency() throws Exception {
|
||||
String fileName = JetTestUtils.navigationMetadata("jps-plugin/testData/incremental/multiModule/simpleDependency/");
|
||||
|
||||
-4
@@ -1,4 +0,0 @@
|
||||
package usage
|
||||
|
||||
fun other() {
|
||||
}
|
||||
Vendored
+6
@@ -0,0 +1,6 @@
|
||||
package inline
|
||||
|
||||
inline fun g(body: () -> Unit) {
|
||||
println("i'm inline function")
|
||||
body()
|
||||
}
|
||||
Vendored
+6
@@ -0,0 +1,6 @@
|
||||
package inline
|
||||
|
||||
inline fun g(body: () -> Unit) {
|
||||
body()
|
||||
println("i'm inline function")
|
||||
}
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
package usage
|
||||
|
||||
fun main(args: Array<String>) {
|
||||
useF()
|
||||
useG()
|
||||
}
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
package usage
|
||||
|
||||
fun main(args: Array<String>) {
|
||||
fun useF() {
|
||||
inline.f { println("to be inlined") }
|
||||
}
|
||||
Vendored
+5
@@ -0,0 +1,5 @@
|
||||
package usage
|
||||
|
||||
fun useG() {
|
||||
inline.g { println("to be inlined") }
|
||||
}
|
||||
Reference in New Issue
Block a user