Add test for inline function lines changed only
This commit is contained in:
@@ -305,6 +305,12 @@ public class IncrementalJpsTestGenerated extends AbstractIncrementalJpsTest {
|
||||
doTest(fileName);
|
||||
}
|
||||
|
||||
@TestMetadata("inlineLinesChanged")
|
||||
public void testInlineLinesChanged() throws Exception {
|
||||
String fileName = JetTestUtils.navigationMetadata("jps-plugin/testData/incremental/pureKotlin/inlineLinesChanged/");
|
||||
doTest(fileName);
|
||||
}
|
||||
|
||||
@TestMetadata("inlineTwoFunctionsOneChanged")
|
||||
public void testInlineTwoFunctionsOneChanged() throws Exception {
|
||||
String fileName = JetTestUtils.navigationMetadata("jps-plugin/testData/incremental/pureKotlin/inlineTwoFunctionsOneChanged/");
|
||||
|
||||
@@ -0,0 +1,14 @@
|
||||
Cleaning output files:
|
||||
out/production/module/inline/InlinePackage$inline$*.class
|
||||
out/production/module/inline/InlinePackage.class
|
||||
End of files
|
||||
Compiling files:
|
||||
src/inline.kt
|
||||
End of files
|
||||
Cleaning output files:
|
||||
out/production/module/usage/UsagePackage$useG$*.class
|
||||
out/production/module/usage/UsagePackage.class
|
||||
End of files
|
||||
Compiling files:
|
||||
src/useG.kt
|
||||
End of files
|
||||
@@ -0,0 +1,7 @@
|
||||
package inline
|
||||
|
||||
inline fun f(): String =
|
||||
"inline.f()"
|
||||
|
||||
inline fun g(): String =
|
||||
"inline.g()"
|
||||
@@ -0,0 +1,9 @@
|
||||
package inline
|
||||
|
||||
inline fun f(): String =
|
||||
"inline.f()"
|
||||
|
||||
|
||||
|
||||
inline fun g(): String =
|
||||
"inline.g()"
|
||||
@@ -0,0 +1,5 @@
|
||||
package usage
|
||||
|
||||
fun useF() {
|
||||
inline.f()
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
package usage
|
||||
|
||||
fun useG() {
|
||||
inline.g()
|
||||
}
|
||||
Reference in New Issue
Block a user