Refactor inline properties tests
This commit is contained in:
+6
-18
@@ -308,18 +308,6 @@ public class IncrementalJsCompilerRunnerTestGenerated extends AbstractIncrementa
|
||||
doTest(fileName);
|
||||
}
|
||||
|
||||
@TestMetadata("inlineClassValProperty")
|
||||
public void testInlineClassValProperty() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("jps-plugin/testData/incremental/pureKotlin/inlineClassValProperty/");
|
||||
doTest(fileName);
|
||||
}
|
||||
|
||||
@TestMetadata("inlineClassVarProperty")
|
||||
public void testInlineClassVarProperty() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("jps-plugin/testData/incremental/pureKotlin/inlineClassVarProperty/");
|
||||
doTest(fileName);
|
||||
}
|
||||
|
||||
@TestMetadata("inlineFunctionRemoved")
|
||||
public void testInlineFunctionRemoved() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("jps-plugin/testData/incremental/pureKotlin/inlineFunctionRemoved/");
|
||||
@@ -356,15 +344,15 @@ public class IncrementalJsCompilerRunnerTestGenerated extends AbstractIncrementa
|
||||
doTest(fileName);
|
||||
}
|
||||
|
||||
@TestMetadata("inlineTopLevelValProperty")
|
||||
public void testInlineTopLevelValProperty() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("jps-plugin/testData/incremental/pureKotlin/inlineTopLevelValProperty/");
|
||||
@TestMetadata("inlinePropertyInClass")
|
||||
public void testInlinePropertyInClass() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("jps-plugin/testData/incremental/pureKotlin/inlinePropertyInClass/");
|
||||
doTest(fileName);
|
||||
}
|
||||
|
||||
@TestMetadata("inlineTopLevelVarProperty")
|
||||
public void testInlineTopLevelVarProperty() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("jps-plugin/testData/incremental/pureKotlin/inlineTopLevelVarProperty/");
|
||||
@TestMetadata("inlinePropertyOnTopLevel")
|
||||
public void testInlinePropertyOnTopLevel() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("jps-plugin/testData/incremental/pureKotlin/inlinePropertyOnTopLevel/");
|
||||
doTest(fileName);
|
||||
}
|
||||
|
||||
|
||||
+6
-18
@@ -308,18 +308,6 @@ public class IncrementalJvmCompilerRunnerTestGenerated extends AbstractIncrement
|
||||
doTest(fileName);
|
||||
}
|
||||
|
||||
@TestMetadata("inlineClassValProperty")
|
||||
public void testInlineClassValProperty() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("jps-plugin/testData/incremental/pureKotlin/inlineClassValProperty/");
|
||||
doTest(fileName);
|
||||
}
|
||||
|
||||
@TestMetadata("inlineClassVarProperty")
|
||||
public void testInlineClassVarProperty() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("jps-plugin/testData/incremental/pureKotlin/inlineClassVarProperty/");
|
||||
doTest(fileName);
|
||||
}
|
||||
|
||||
@TestMetadata("inlineFunctionRemoved")
|
||||
public void testInlineFunctionRemoved() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("jps-plugin/testData/incremental/pureKotlin/inlineFunctionRemoved/");
|
||||
@@ -356,15 +344,15 @@ public class IncrementalJvmCompilerRunnerTestGenerated extends AbstractIncrement
|
||||
doTest(fileName);
|
||||
}
|
||||
|
||||
@TestMetadata("inlineTopLevelValProperty")
|
||||
public void testInlineTopLevelValProperty() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("jps-plugin/testData/incremental/pureKotlin/inlineTopLevelValProperty/");
|
||||
@TestMetadata("inlinePropertyInClass")
|
||||
public void testInlinePropertyInClass() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("jps-plugin/testData/incremental/pureKotlin/inlinePropertyInClass/");
|
||||
doTest(fileName);
|
||||
}
|
||||
|
||||
@TestMetadata("inlineTopLevelVarProperty")
|
||||
public void testInlineTopLevelVarProperty() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("jps-plugin/testData/incremental/pureKotlin/inlineTopLevelVarProperty/");
|
||||
@TestMetadata("inlinePropertyOnTopLevel")
|
||||
public void testInlinePropertyOnTopLevel() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("jps-plugin/testData/incremental/pureKotlin/inlinePropertyOnTopLevel/");
|
||||
doTest(fileName);
|
||||
}
|
||||
|
||||
|
||||
+6
-18
@@ -479,18 +479,6 @@ public class IncrementalJpsTestGenerated extends AbstractIncrementalJpsTest {
|
||||
doTest(fileName);
|
||||
}
|
||||
|
||||
@TestMetadata("inlineClassValProperty")
|
||||
public void testInlineClassValProperty() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("jps-plugin/testData/incremental/pureKotlin/inlineClassValProperty/");
|
||||
doTest(fileName);
|
||||
}
|
||||
|
||||
@TestMetadata("inlineClassVarProperty")
|
||||
public void testInlineClassVarProperty() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("jps-plugin/testData/incremental/pureKotlin/inlineClassVarProperty/");
|
||||
doTest(fileName);
|
||||
}
|
||||
|
||||
@TestMetadata("inlineFunctionRemoved")
|
||||
public void testInlineFunctionRemoved() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("jps-plugin/testData/incremental/pureKotlin/inlineFunctionRemoved/");
|
||||
@@ -527,15 +515,15 @@ public class IncrementalJpsTestGenerated extends AbstractIncrementalJpsTest {
|
||||
doTest(fileName);
|
||||
}
|
||||
|
||||
@TestMetadata("inlineTopLevelValProperty")
|
||||
public void testInlineTopLevelValProperty() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("jps-plugin/testData/incremental/pureKotlin/inlineTopLevelValProperty/");
|
||||
@TestMetadata("inlinePropertyInClass")
|
||||
public void testInlinePropertyInClass() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("jps-plugin/testData/incremental/pureKotlin/inlinePropertyInClass/");
|
||||
doTest(fileName);
|
||||
}
|
||||
|
||||
@TestMetadata("inlineTopLevelVarProperty")
|
||||
public void testInlineTopLevelVarProperty() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("jps-plugin/testData/incremental/pureKotlin/inlineTopLevelVarProperty/");
|
||||
@TestMetadata("inlinePropertyOnTopLevel")
|
||||
public void testInlinePropertyOnTopLevel() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("jps-plugin/testData/incremental/pureKotlin/inlinePropertyOnTopLevel/");
|
||||
doTest(fileName);
|
||||
}
|
||||
|
||||
|
||||
@@ -1,5 +0,0 @@
|
||||
package usage
|
||||
|
||||
class Usage {
|
||||
val x = inline.A().f
|
||||
}
|
||||
@@ -1,20 +0,0 @@
|
||||
================ Step #1 =================
|
||||
|
||||
Cleaning output files:
|
||||
out/production/module/inline/A.class
|
||||
End of files
|
||||
Compiling files:
|
||||
src/inline.kt
|
||||
End of files
|
||||
Marked as dirty by Kotlin:
|
||||
src/Usage.kt
|
||||
Exit code: ADDITIONAL_PASS_REQUIRED
|
||||
------------------------------------------
|
||||
Cleaning output files:
|
||||
out/production/module/usage/Usage.class
|
||||
End of files
|
||||
Compiling files:
|
||||
src/Usage.kt
|
||||
End of files
|
||||
Exit code: OK
|
||||
------------------------------------------
|
||||
@@ -1,6 +0,0 @@
|
||||
package inline
|
||||
|
||||
class A {
|
||||
inline val f: Int
|
||||
get() = 0
|
||||
}
|
||||
-6
@@ -1,6 +0,0 @@
|
||||
package inline
|
||||
|
||||
class A {
|
||||
inline val f: Int
|
||||
get() = 1
|
||||
}
|
||||
@@ -1,21 +0,0 @@
|
||||
================ Step #1 =================
|
||||
|
||||
Cleaning output files:
|
||||
out/production/module/inline/A.class
|
||||
End of files
|
||||
Compiling files:
|
||||
src/inline.kt
|
||||
End of files
|
||||
Marked as dirty by Kotlin:
|
||||
src/usage.kt
|
||||
Exit code: ADDITIONAL_PASS_REQUIRED
|
||||
------------------------------------------
|
||||
Cleaning output files:
|
||||
out/production/module/META-INF/module.kotlin_module
|
||||
out/production/module/usage/UsageKt.class
|
||||
End of files
|
||||
Compiling files:
|
||||
src/usage.kt
|
||||
End of files
|
||||
Exit code: OK
|
||||
------------------------------------------
|
||||
-5
@@ -1,5 +0,0 @@
|
||||
package usage2
|
||||
|
||||
fun b() {
|
||||
inline.A().f
|
||||
}
|
||||
@@ -0,0 +1,43 @@
|
||||
================ Step #1 =================
|
||||
|
||||
Cleaning output files:
|
||||
out/production/module/inline/A.class
|
||||
End of files
|
||||
Compiling files:
|
||||
src/inline.kt
|
||||
End of files
|
||||
Marked as dirty by Kotlin:
|
||||
src/useSetter.kt
|
||||
Exit code: ADDITIONAL_PASS_REQUIRED
|
||||
------------------------------------------
|
||||
Cleaning output files:
|
||||
out/production/module/META-INF/module.kotlin_module
|
||||
out/production/module/usage/UseSetterKt.class
|
||||
End of files
|
||||
Compiling files:
|
||||
src/useSetter.kt
|
||||
End of files
|
||||
Exit code: OK
|
||||
------------------------------------------
|
||||
|
||||
================ Step #2 =================
|
||||
|
||||
Cleaning output files:
|
||||
out/production/module/inline/A.class
|
||||
End of files
|
||||
Compiling files:
|
||||
src/inline.kt
|
||||
End of files
|
||||
Marked as dirty by Kotlin:
|
||||
src/useGetter.kt
|
||||
Exit code: ADDITIONAL_PASS_REQUIRED
|
||||
------------------------------------------
|
||||
Cleaning output files:
|
||||
out/production/module/META-INF/module.kotlin_module
|
||||
out/production/module/usage2/UseGetterKt.class
|
||||
End of files
|
||||
Compiling files:
|
||||
src/useGetter.kt
|
||||
End of files
|
||||
Exit code: OK
|
||||
------------------------------------------
|
||||
@@ -0,0 +1,3 @@
|
||||
package test
|
||||
|
||||
fun dummy() {}
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
package inline
|
||||
|
||||
class A {
|
||||
var z = 0
|
||||
|
||||
inline var f: Int
|
||||
get() = z + 1
|
||||
set(p: Int) {
|
||||
z = p + 1
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
package usage2
|
||||
|
||||
fun useGetter() = inline.A().f
|
||||
+45
@@ -0,0 +1,45 @@
|
||||
================ Step #1 =================
|
||||
|
||||
Cleaning output files:
|
||||
out/production/module/META-INF/module.kotlin_module
|
||||
out/production/module/inline/InlineKt.class
|
||||
End of files
|
||||
Compiling files:
|
||||
src/inline.kt
|
||||
End of files
|
||||
Marked as dirty by Kotlin:
|
||||
src/useSetter.kt
|
||||
Exit code: ADDITIONAL_PASS_REQUIRED
|
||||
------------------------------------------
|
||||
Cleaning output files:
|
||||
out/production/module/META-INF/module.kotlin_module
|
||||
out/production/module/usage/UseSetterKt.class
|
||||
End of files
|
||||
Compiling files:
|
||||
src/useSetter.kt
|
||||
End of files
|
||||
Exit code: OK
|
||||
------------------------------------------
|
||||
|
||||
================ Step #2 =================
|
||||
|
||||
Cleaning output files:
|
||||
out/production/module/META-INF/module.kotlin_module
|
||||
out/production/module/inline/InlineKt.class
|
||||
End of files
|
||||
Compiling files:
|
||||
src/inline.kt
|
||||
End of files
|
||||
Marked as dirty by Kotlin:
|
||||
src/useGetter.kt
|
||||
Exit code: ADDITIONAL_PASS_REQUIRED
|
||||
------------------------------------------
|
||||
Cleaning output files:
|
||||
out/production/module/META-INF/module.kotlin_module
|
||||
out/production/module/usage2/UseGetterKt.class
|
||||
End of files
|
||||
Compiling files:
|
||||
src/useGetter.kt
|
||||
End of files
|
||||
Exit code: OK
|
||||
------------------------------------------
|
||||
@@ -0,0 +1,3 @@
|
||||
package test
|
||||
|
||||
fun dummy() {}
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
package inline
|
||||
|
||||
var z = 0
|
||||
|
||||
inline var f: Int
|
||||
get() = z + 1
|
||||
set(p: Int) {
|
||||
z = p + 1
|
||||
}
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
package usage2
|
||||
|
||||
fun useGetter() = inline.f
|
||||
-22
@@ -1,22 +0,0 @@
|
||||
================ Step #1 =================
|
||||
|
||||
Cleaning output files:
|
||||
out/production/module/META-INF/module.kotlin_module
|
||||
out/production/module/inline/InlineKt.class
|
||||
End of files
|
||||
Compiling files:
|
||||
src/inline.kt
|
||||
End of files
|
||||
Marked as dirty by Kotlin:
|
||||
src/usage.kt
|
||||
Exit code: ADDITIONAL_PASS_REQUIRED
|
||||
------------------------------------------
|
||||
Cleaning output files:
|
||||
out/production/module/META-INF/module.kotlin_module
|
||||
out/production/module/usage/UsageKt.class
|
||||
End of files
|
||||
Compiling files:
|
||||
src/usage.kt
|
||||
End of files
|
||||
Exit code: OK
|
||||
------------------------------------------
|
||||
-4
@@ -1,4 +0,0 @@
|
||||
package inline
|
||||
|
||||
inline val f: Int
|
||||
get() = 0
|
||||
-4
@@ -1,4 +0,0 @@
|
||||
package inline
|
||||
|
||||
inline val f: Int
|
||||
get() = 1
|
||||
@@ -1,3 +0,0 @@
|
||||
package usage
|
||||
|
||||
val x = inline.f
|
||||
-22
@@ -1,22 +0,0 @@
|
||||
================ Step #1 =================
|
||||
|
||||
Cleaning output files:
|
||||
out/production/module/META-INF/module.kotlin_module
|
||||
out/production/module/inline/InlineKt.class
|
||||
End of files
|
||||
Compiling files:
|
||||
src/inline.kt
|
||||
End of files
|
||||
Marked as dirty by Kotlin:
|
||||
src/usage.kt
|
||||
Exit code: ADDITIONAL_PASS_REQUIRED
|
||||
------------------------------------------
|
||||
Cleaning output files:
|
||||
out/production/module/META-INF/module.kotlin_module
|
||||
out/production/module/usage/UsageKt.class
|
||||
End of files
|
||||
Compiling files:
|
||||
src/usage.kt
|
||||
End of files
|
||||
Exit code: OK
|
||||
------------------------------------------
|
||||
-5
@@ -1,5 +0,0 @@
|
||||
package usage2
|
||||
|
||||
fun b() {
|
||||
inline.f
|
||||
}
|
||||
Reference in New Issue
Block a user