[KLIB IC] Add test about incremental kotlin-js-stdlib-klib recompliation

Original commit: cc818025df
This commit is contained in:
Roman Artemev
2020-06-19 14:47:21 +03:00
committed by romanart
parent 62a9ad7218
commit b11a0d3fc6
7 changed files with 39 additions and 0 deletions
@@ -3015,6 +3015,11 @@ public class IncrementalJvmJpsTestGenerated extends AbstractIncrementalJvmJpsTes
runTest("jps-plugin/testData/incremental/classHierarchyAffected/inferredTypeChanged/");
}
@TestMetadata("interfaceAnyMethods")
public void testInterfaceAnyMethods() throws Exception {
runTest("jps-plugin/testData/incremental/classHierarchyAffected/interfaceAnyMethods/");
}
@TestMetadata("lambdaParameterAffected")
public void testLambdaParameterAffected() throws Exception {
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")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
@@ -0,0 +1,4 @@
class D : B {
override fun toString(): String = "D"
}
@@ -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
------------------------------------------
@@ -0,0 +1,2 @@
fun use(): String = D().toString()