[IC] Add in-module tests for incremental compilation
Two tests to check recompilation when parameter with default value was added or removed without changing use-site.
This commit is contained in:
+10
@@ -441,6 +441,16 @@ public class IncrementalJsCompilerRunnerTestGenerated extends AbstractIncrementa
|
||||
runTest("jps-plugin/testData/incremental/pureKotlin/packageRemoved/");
|
||||
}
|
||||
|
||||
@TestMetadata("parameterWithDefaultValueAdded")
|
||||
public void testParameterWithDefaultValueAdded() throws Exception {
|
||||
runTest("jps-plugin/testData/incremental/pureKotlin/parameterWithDefaultValueAdded/");
|
||||
}
|
||||
|
||||
@TestMetadata("parameterWithDefaultValueRemoved")
|
||||
public void testParameterWithDefaultValueRemoved() throws Exception {
|
||||
runTest("jps-plugin/testData/incremental/pureKotlin/parameterWithDefaultValueRemoved/");
|
||||
}
|
||||
|
||||
@TestMetadata("privateConstantsChanged")
|
||||
public void testPrivateConstantsChanged() throws Exception {
|
||||
runTest("jps-plugin/testData/incremental/pureKotlin/privateConstantsChanged/");
|
||||
|
||||
+10
@@ -441,6 +441,16 @@ public class IncrementalJsCompilerRunnerWithMetadataOnlyTestGenerated extends Ab
|
||||
runTest("jps-plugin/testData/incremental/pureKotlin/packageRemoved/");
|
||||
}
|
||||
|
||||
@TestMetadata("parameterWithDefaultValueAdded")
|
||||
public void testParameterWithDefaultValueAdded() throws Exception {
|
||||
runTest("jps-plugin/testData/incremental/pureKotlin/parameterWithDefaultValueAdded/");
|
||||
}
|
||||
|
||||
@TestMetadata("parameterWithDefaultValueRemoved")
|
||||
public void testParameterWithDefaultValueRemoved() throws Exception {
|
||||
runTest("jps-plugin/testData/incremental/pureKotlin/parameterWithDefaultValueRemoved/");
|
||||
}
|
||||
|
||||
@TestMetadata("privateConstantsChanged")
|
||||
public void testPrivateConstantsChanged() throws Exception {
|
||||
runTest("jps-plugin/testData/incremental/pureKotlin/privateConstantsChanged/");
|
||||
|
||||
+10
@@ -441,6 +441,16 @@ public class IncrementalJsKlibCompilerRunnerTestGenerated extends AbstractIncrem
|
||||
runTest("jps-plugin/testData/incremental/pureKotlin/packageRemoved/");
|
||||
}
|
||||
|
||||
@TestMetadata("parameterWithDefaultValueAdded")
|
||||
public void testParameterWithDefaultValueAdded() throws Exception {
|
||||
runTest("jps-plugin/testData/incremental/pureKotlin/parameterWithDefaultValueAdded/");
|
||||
}
|
||||
|
||||
@TestMetadata("parameterWithDefaultValueRemoved")
|
||||
public void testParameterWithDefaultValueRemoved() throws Exception {
|
||||
runTest("jps-plugin/testData/incremental/pureKotlin/parameterWithDefaultValueRemoved/");
|
||||
}
|
||||
|
||||
@TestMetadata("privateConstantsChanged")
|
||||
public void testPrivateConstantsChanged() throws Exception {
|
||||
runTest("jps-plugin/testData/incremental/pureKotlin/privateConstantsChanged/");
|
||||
|
||||
+10
@@ -441,6 +441,16 @@ public class IncrementalJsKlibCompilerWithScopeExpansionRunnerTestGenerated exte
|
||||
runTest("jps-plugin/testData/incremental/pureKotlin/packageRemoved/");
|
||||
}
|
||||
|
||||
@TestMetadata("parameterWithDefaultValueAdded")
|
||||
public void testParameterWithDefaultValueAdded() throws Exception {
|
||||
runTest("jps-plugin/testData/incremental/pureKotlin/parameterWithDefaultValueAdded/");
|
||||
}
|
||||
|
||||
@TestMetadata("parameterWithDefaultValueRemoved")
|
||||
public void testParameterWithDefaultValueRemoved() throws Exception {
|
||||
runTest("jps-plugin/testData/incremental/pureKotlin/parameterWithDefaultValueRemoved/");
|
||||
}
|
||||
|
||||
@TestMetadata("privateConstantsChanged")
|
||||
public void testPrivateConstantsChanged() throws Exception {
|
||||
runTest("jps-plugin/testData/incremental/pureKotlin/privateConstantsChanged/");
|
||||
|
||||
+10
@@ -442,6 +442,16 @@ public class IncrementalJvmCompilerRunnerTestGenerated extends AbstractIncrement
|
||||
runTest("jps-plugin/testData/incremental/pureKotlin/packageRemoved/");
|
||||
}
|
||||
|
||||
@TestMetadata("parameterWithDefaultValueAdded")
|
||||
public void testParameterWithDefaultValueAdded() throws Exception {
|
||||
runTest("jps-plugin/testData/incremental/pureKotlin/parameterWithDefaultValueAdded/");
|
||||
}
|
||||
|
||||
@TestMetadata("parameterWithDefaultValueRemoved")
|
||||
public void testParameterWithDefaultValueRemoved() throws Exception {
|
||||
runTest("jps-plugin/testData/incremental/pureKotlin/parameterWithDefaultValueRemoved/");
|
||||
}
|
||||
|
||||
@TestMetadata("privateConstantsChanged")
|
||||
public void testPrivateConstantsChanged() throws Exception {
|
||||
runTest("jps-plugin/testData/incremental/pureKotlin/privateConstantsChanged/");
|
||||
|
||||
+10
@@ -442,6 +442,16 @@ public class IrIncrementalJvmCompilerRunnerTestGenerated extends AbstractIrIncre
|
||||
runTest("jps-plugin/testData/incremental/pureKotlin/packageRemoved/");
|
||||
}
|
||||
|
||||
@TestMetadata("parameterWithDefaultValueAdded")
|
||||
public void testParameterWithDefaultValueAdded() throws Exception {
|
||||
runTest("jps-plugin/testData/incremental/pureKotlin/parameterWithDefaultValueAdded/");
|
||||
}
|
||||
|
||||
@TestMetadata("parameterWithDefaultValueRemoved")
|
||||
public void testParameterWithDefaultValueRemoved() throws Exception {
|
||||
runTest("jps-plugin/testData/incremental/pureKotlin/parameterWithDefaultValueRemoved/");
|
||||
}
|
||||
|
||||
@TestMetadata("privateConstantsChanged")
|
||||
public void testPrivateConstantsChanged() throws Exception {
|
||||
runTest("jps-plugin/testData/incremental/pureKotlin/privateConstantsChanged/");
|
||||
|
||||
Reference in New Issue
Block a user