[KLIB IC] Add test about incremental kotlin-js-stdlib-klib recompliation
This commit is contained in:
+5
@@ -743,6 +743,11 @@ public class IncrementalJsCompilerRunnerTestGenerated extends AbstractIncrementa
|
|||||||
runTest("jps-plugin/testData/incremental/classHierarchyAffected/inferredTypeChanged/");
|
runTest("jps-plugin/testData/incremental/classHierarchyAffected/inferredTypeChanged/");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@TestMetadata("interfaceAnyMethods")
|
||||||
|
public void testInterfaceAnyMethods() throws Exception {
|
||||||
|
runTest("jps-plugin/testData/incremental/classHierarchyAffected/interfaceAnyMethods/");
|
||||||
|
}
|
||||||
|
|
||||||
@TestMetadata("lambdaParameterAffected")
|
@TestMetadata("lambdaParameterAffected")
|
||||||
public void testLambdaParameterAffected() throws Exception {
|
public void testLambdaParameterAffected() throws Exception {
|
||||||
runTest("jps-plugin/testData/incremental/classHierarchyAffected/lambdaParameterAffected/");
|
runTest("jps-plugin/testData/incremental/classHierarchyAffected/lambdaParameterAffected/");
|
||||||
|
|||||||
+5
@@ -743,6 +743,11 @@ public class IncrementalJsCompilerRunnerWithMetadataOnlyTestGenerated extends Ab
|
|||||||
runTest("jps-plugin/testData/incremental/classHierarchyAffected/inferredTypeChanged/");
|
runTest("jps-plugin/testData/incremental/classHierarchyAffected/inferredTypeChanged/");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@TestMetadata("interfaceAnyMethods")
|
||||||
|
public void testInterfaceAnyMethods() throws Exception {
|
||||||
|
runTest("jps-plugin/testData/incremental/classHierarchyAffected/interfaceAnyMethods/");
|
||||||
|
}
|
||||||
|
|
||||||
@TestMetadata("lambdaParameterAffected")
|
@TestMetadata("lambdaParameterAffected")
|
||||||
public void testLambdaParameterAffected() throws Exception {
|
public void testLambdaParameterAffected() throws Exception {
|
||||||
runTest("jps-plugin/testData/incremental/classHierarchyAffected/lambdaParameterAffected/");
|
runTest("jps-plugin/testData/incremental/classHierarchyAffected/lambdaParameterAffected/");
|
||||||
|
|||||||
+5
@@ -746,6 +746,11 @@ public class IncrementalJsKlibCompilerRunnerTestGenerated extends AbstractIncrem
|
|||||||
runTest("jps-plugin/testData/incremental/classHierarchyAffected/inferredTypeChanged/");
|
runTest("jps-plugin/testData/incremental/classHierarchyAffected/inferredTypeChanged/");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@TestMetadata("interfaceAnyMethods")
|
||||||
|
public void testInterfaceAnyMethods() throws Exception {
|
||||||
|
runTest("jps-plugin/testData/incremental/classHierarchyAffected/interfaceAnyMethods/");
|
||||||
|
}
|
||||||
|
|
||||||
@TestMetadata("lambdaParameterAffected")
|
@TestMetadata("lambdaParameterAffected")
|
||||||
public void testLambdaParameterAffected() throws Exception {
|
public void testLambdaParameterAffected() throws Exception {
|
||||||
runTest("jps-plugin/testData/incremental/classHierarchyAffected/lambdaParameterAffected/");
|
runTest("jps-plugin/testData/incremental/classHierarchyAffected/lambdaParameterAffected/");
|
||||||
|
|||||||
+5
@@ -743,6 +743,11 @@ public class IncrementalJsKlibCompilerWithScopeExpansionRunnerTestGenerated exte
|
|||||||
runTest("jps-plugin/testData/incremental/classHierarchyAffected/inferredTypeChanged/");
|
runTest("jps-plugin/testData/incremental/classHierarchyAffected/inferredTypeChanged/");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@TestMetadata("interfaceAnyMethods")
|
||||||
|
public void testInterfaceAnyMethods() throws Exception {
|
||||||
|
runTest("jps-plugin/testData/incremental/classHierarchyAffected/interfaceAnyMethods/");
|
||||||
|
}
|
||||||
|
|
||||||
@TestMetadata("lambdaParameterAffected")
|
@TestMetadata("lambdaParameterAffected")
|
||||||
public void testLambdaParameterAffected() throws Exception {
|
public void testLambdaParameterAffected() throws Exception {
|
||||||
runTest("jps-plugin/testData/incremental/classHierarchyAffected/lambdaParameterAffected/");
|
runTest("jps-plugin/testData/incremental/classHierarchyAffected/lambdaParameterAffected/");
|
||||||
|
|||||||
+5
@@ -744,6 +744,11 @@ public class IncrementalJvmCompilerRunnerTestGenerated extends AbstractIncrement
|
|||||||
runTest("jps-plugin/testData/incremental/classHierarchyAffected/inferredTypeChanged/");
|
runTest("jps-plugin/testData/incremental/classHierarchyAffected/inferredTypeChanged/");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@TestMetadata("interfaceAnyMethods")
|
||||||
|
public void testInterfaceAnyMethods() throws Exception {
|
||||||
|
runTest("jps-plugin/testData/incremental/classHierarchyAffected/interfaceAnyMethods/");
|
||||||
|
}
|
||||||
|
|
||||||
@TestMetadata("lambdaParameterAffected")
|
@TestMetadata("lambdaParameterAffected")
|
||||||
public void testLambdaParameterAffected() throws Exception {
|
public void testLambdaParameterAffected() throws Exception {
|
||||||
runTest("jps-plugin/testData/incremental/classHierarchyAffected/lambdaParameterAffected/");
|
runTest("jps-plugin/testData/incremental/classHierarchyAffected/lambdaParameterAffected/");
|
||||||
|
|||||||
+5
@@ -744,6 +744,11 @@ public class IrIncrementalJvmCompilerRunnerTestGenerated extends AbstractIrIncre
|
|||||||
runTest("jps-plugin/testData/incremental/classHierarchyAffected/inferredTypeChanged/");
|
runTest("jps-plugin/testData/incremental/classHierarchyAffected/inferredTypeChanged/");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@TestMetadata("interfaceAnyMethods")
|
||||||
|
public void testInterfaceAnyMethods() throws Exception {
|
||||||
|
runTest("jps-plugin/testData/incremental/classHierarchyAffected/interfaceAnyMethods/");
|
||||||
|
}
|
||||||
|
|
||||||
@TestMetadata("lambdaParameterAffected")
|
@TestMetadata("lambdaParameterAffected")
|
||||||
public void testLambdaParameterAffected() throws Exception {
|
public void testLambdaParameterAffected() throws Exception {
|
||||||
runTest("jps-plugin/testData/incremental/classHierarchyAffected/lambdaParameterAffected/");
|
runTest("jps-plugin/testData/incremental/classHierarchyAffected/lambdaParameterAffected/");
|
||||||
|
|||||||
Generated
+18
@@ -3015,6 +3015,11 @@ public class IncrementalJvmJpsTestGenerated extends AbstractIncrementalJvmJpsTes
|
|||||||
runTest("jps-plugin/testData/incremental/classHierarchyAffected/inferredTypeChanged/");
|
runTest("jps-plugin/testData/incremental/classHierarchyAffected/inferredTypeChanged/");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@TestMetadata("interfaceAnyMethods")
|
||||||
|
public void testInterfaceAnyMethods() throws Exception {
|
||||||
|
runTest("jps-plugin/testData/incremental/classHierarchyAffected/interfaceAnyMethods/");
|
||||||
|
}
|
||||||
|
|
||||||
@TestMetadata("lambdaParameterAffected")
|
@TestMetadata("lambdaParameterAffected")
|
||||||
public void testLambdaParameterAffected() throws Exception {
|
public void testLambdaParameterAffected() throws Exception {
|
||||||
runTest("jps-plugin/testData/incremental/classHierarchyAffected/lambdaParameterAffected/");
|
runTest("jps-plugin/testData/incremental/classHierarchyAffected/lambdaParameterAffected/");
|
||||||
@@ -3386,6 +3391,19 @@ public class IncrementalJvmJpsTestGenerated extends AbstractIncrementalJvmJpsTes
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@TestMetadata("jps-plugin/testData/incremental/classHierarchyAffected/interfaceAnyMethods")
|
||||||
|
@TestDataPath("$PROJECT_ROOT")
|
||||||
|
@RunWith(JUnit3RunnerWithInners.class)
|
||||||
|
public static class InterfaceAnyMethods extends AbstractIncrementalJvmJpsTest {
|
||||||
|
private void runTest(String testDataFilePath) throws Exception {
|
||||||
|
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||||
|
}
|
||||||
|
|
||||||
|
public void testAllFilesPresentInInterfaceAnyMethods() throws Exception {
|
||||||
|
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("jps-plugin/testData/incremental/classHierarchyAffected/interfaceAnyMethods"), Pattern.compile("^([^\\.]+)$"), null, true);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@TestMetadata("jps-plugin/testData/incremental/classHierarchyAffected/lambdaParameterAffected")
|
@TestMetadata("jps-plugin/testData/incremental/classHierarchyAffected/lambdaParameterAffected")
|
||||||
@TestDataPath("$PROJECT_ROOT")
|
@TestDataPath("$PROJECT_ROOT")
|
||||||
@RunWith(JUnit3RunnerWithInners.class)
|
@RunWith(JUnit3RunnerWithInners.class)
|
||||||
|
|||||||
+2
@@ -0,0 +1,2 @@
|
|||||||
|
|
||||||
|
interface B
|
||||||
+4
@@ -0,0 +1,4 @@
|
|||||||
|
|
||||||
|
class D : B {
|
||||||
|
override fun toString(): String = "D"
|
||||||
|
}
|
||||||
+13
@@ -0,0 +1,13 @@
|
|||||||
|
================ Step #1 =================
|
||||||
|
|
||||||
|
Cleaning output files:
|
||||||
|
out/production/module/META-INF/module.kotlin_module
|
||||||
|
out/production/module/test/B.class
|
||||||
|
out/production/module/test/UseKt.class
|
||||||
|
End of files
|
||||||
|
Compiling files:
|
||||||
|
src/B.kt
|
||||||
|
src/use.kt
|
||||||
|
End of files
|
||||||
|
Exit code: OK
|
||||||
|
------------------------------------------
|
||||||
+2
@@ -0,0 +1,2 @@
|
|||||||
|
|
||||||
|
fun use(): String = D().toString()
|
||||||
Reference in New Issue
Block a user