ConvertCallChainIntoSequence: support functions added in Kotlin 1.4

#KT-40448 Fixed
This commit is contained in:
Toshiaki Kameyama
2020-07-20 17:07:33 +09:00
committed by igoriakovlev
parent 5e91ffb156
commit 4901cdb11f
50 changed files with 371 additions and 3 deletions
@@ -1372,11 +1372,46 @@ public class LocalInspectionTestGenerated extends AbstractLocalInspectionTest {
runTest("idea/testData/inspectionsLocal/collections/convertCallChainIntoSequence/termination/maxBy.kt");
}
@TestMetadata("maxByOrNull.kt")
public void testMaxByOrNull() throws Exception {
runTest("idea/testData/inspectionsLocal/collections/convertCallChainIntoSequence/termination/maxByOrNull.kt");
}
@TestMetadata("maxOf.kt")
public void testMaxOf() throws Exception {
runTest("idea/testData/inspectionsLocal/collections/convertCallChainIntoSequence/termination/maxOf.kt");
}
@TestMetadata("maxOfOrNull.kt")
public void testMaxOfOrNull() throws Exception {
runTest("idea/testData/inspectionsLocal/collections/convertCallChainIntoSequence/termination/maxOfOrNull.kt");
}
@TestMetadata("maxOfWith.kt")
public void testMaxOfWith() throws Exception {
runTest("idea/testData/inspectionsLocal/collections/convertCallChainIntoSequence/termination/maxOfWith.kt");
}
@TestMetadata("maxOfWithOrNull.kt")
public void testMaxOfWithOrNull() throws Exception {
runTest("idea/testData/inspectionsLocal/collections/convertCallChainIntoSequence/termination/maxOfWithOrNull.kt");
}
@TestMetadata("maxOrNull.kt")
public void testMaxOrNull() throws Exception {
runTest("idea/testData/inspectionsLocal/collections/convertCallChainIntoSequence/termination/maxOrNull.kt");
}
@TestMetadata("maxWith.kt")
public void testMaxWith() throws Exception {
runTest("idea/testData/inspectionsLocal/collections/convertCallChainIntoSequence/termination/maxWith.kt");
}
@TestMetadata("maxWithOrNull.kt")
public void testMaxWithOrNull() throws Exception {
runTest("idea/testData/inspectionsLocal/collections/convertCallChainIntoSequence/termination/maxWithOrNull.kt");
}
@TestMetadata("min.kt")
public void testMin() throws Exception {
runTest("idea/testData/inspectionsLocal/collections/convertCallChainIntoSequence/termination/min.kt");
@@ -1387,11 +1422,46 @@ public class LocalInspectionTestGenerated extends AbstractLocalInspectionTest {
runTest("idea/testData/inspectionsLocal/collections/convertCallChainIntoSequence/termination/minBy.kt");
}
@TestMetadata("minByOrNull.kt")
public void testMinByOrNull() throws Exception {
runTest("idea/testData/inspectionsLocal/collections/convertCallChainIntoSequence/termination/minByOrNull.kt");
}
@TestMetadata("minOf.kt")
public void testMinOf() throws Exception {
runTest("idea/testData/inspectionsLocal/collections/convertCallChainIntoSequence/termination/minOf.kt");
}
@TestMetadata("minOfOrNull.kt")
public void testMinOfOrNull() throws Exception {
runTest("idea/testData/inspectionsLocal/collections/convertCallChainIntoSequence/termination/minOfOrNull.kt");
}
@TestMetadata("minOfWith.kt")
public void testMinOfWith() throws Exception {
runTest("idea/testData/inspectionsLocal/collections/convertCallChainIntoSequence/termination/minOfWith.kt");
}
@TestMetadata("minOfWithOrNull.kt")
public void testMinOfWithOrNull() throws Exception {
runTest("idea/testData/inspectionsLocal/collections/convertCallChainIntoSequence/termination/minOfWithOrNull.kt");
}
@TestMetadata("minOrNull.kt")
public void testMinOrNull() throws Exception {
runTest("idea/testData/inspectionsLocal/collections/convertCallChainIntoSequence/termination/minOrNull.kt");
}
@TestMetadata("minWith.kt")
public void testMinWith() throws Exception {
runTest("idea/testData/inspectionsLocal/collections/convertCallChainIntoSequence/termination/minWith.kt");
}
@TestMetadata("minWithOrNull.kt")
public void testMinWithOrNull() throws Exception {
runTest("idea/testData/inspectionsLocal/collections/convertCallChainIntoSequence/termination/minWithOrNull.kt");
}
@TestMetadata("none.kt")
public void testNone() throws Exception {
runTest("idea/testData/inspectionsLocal/collections/convertCallChainIntoSequence/termination/none.kt");
@@ -1412,6 +1482,46 @@ public class LocalInspectionTestGenerated extends AbstractLocalInspectionTest {
runTest("idea/testData/inspectionsLocal/collections/convertCallChainIntoSequence/termination/reduceIndexed.kt");
}
@TestMetadata("reduceIndexedOrNull.kt")
public void testReduceIndexedOrNull() throws Exception {
runTest("idea/testData/inspectionsLocal/collections/convertCallChainIntoSequence/termination/reduceIndexedOrNull.kt");
}
@TestMetadata("reduceOrNull.kt")
public void testReduceOrNull() throws Exception {
runTest("idea/testData/inspectionsLocal/collections/convertCallChainIntoSequence/termination/reduceOrNull.kt");
}
@TestMetadata("runningFold.kt")
public void testRunningFold() throws Exception {
runTest("idea/testData/inspectionsLocal/collections/convertCallChainIntoSequence/termination/runningFold.kt");
}
@TestMetadata("runningFoldIndexed.kt")
public void testRunningFoldIndexed() throws Exception {
runTest("idea/testData/inspectionsLocal/collections/convertCallChainIntoSequence/termination/runningFoldIndexed.kt");
}
@TestMetadata("runningReduce.kt")
public void testRunningReduce() throws Exception {
runTest("idea/testData/inspectionsLocal/collections/convertCallChainIntoSequence/termination/runningReduce.kt");
}
@TestMetadata("runningReduceIndexed.kt")
public void testRunningReduceIndexed() throws Exception {
runTest("idea/testData/inspectionsLocal/collections/convertCallChainIntoSequence/termination/runningReduceIndexed.kt");
}
@TestMetadata("scan.kt")
public void testScan() throws Exception {
runTest("idea/testData/inspectionsLocal/collections/convertCallChainIntoSequence/termination/scan.kt");
}
@TestMetadata("scanIndexed.kt")
public void testScanIndexed() throws Exception {
runTest("idea/testData/inspectionsLocal/collections/convertCallChainIntoSequence/termination/scanIndexed.kt");
}
@TestMetadata("single.kt")
public void testSingle() throws Exception {
runTest("idea/testData/inspectionsLocal/collections/convertCallChainIntoSequence/termination/single.kt");
@@ -1437,6 +1547,11 @@ public class LocalInspectionTestGenerated extends AbstractLocalInspectionTest {
runTest("idea/testData/inspectionsLocal/collections/convertCallChainIntoSequence/termination/sumByDouble.kt");
}
@TestMetadata("sumOf.kt")
public void testSumOf() throws Exception {
runTest("idea/testData/inspectionsLocal/collections/convertCallChainIntoSequence/termination/sumOf.kt");
}
@TestMetadata("toCollection.kt")
public void testToCollection() throws Exception {
runTest("idea/testData/inspectionsLocal/collections/convertCallChainIntoSequence/termination/toCollection.kt");