"Redundant Unit" inspection: new tests, simplification & fixes

Related to KT-23977 and KT-24066
This commit is contained in:
Mikhail Glukhikh
2018-05-03 16:10:04 +03:00
parent 6e150d27f1
commit e07f83ddbc
4 changed files with 37 additions and 12 deletions
@@ -3368,6 +3368,11 @@ public class LocalInspectionTestGenerated extends AbstractLocalInspectionTest {
runTest("idea/testData/inspectionsLocal/redundantUnitExpression/labeledReturnAnyInValueArgument.kt");
}
@TestMetadata("labeledReturnAnyWithParameters.kt")
public void testLabeledReturnAnyWithParameters() throws Exception {
runTest("idea/testData/inspectionsLocal/redundantUnitExpression/labeledReturnAnyWithParameters.kt");
}
@TestMetadata("labeledReturnGenericType.kt")
public void testLabeledReturnGenericType() throws Exception {
runTest("idea/testData/inspectionsLocal/redundantUnitExpression/labeledReturnGenericType.kt");
@@ -3417,6 +3422,11 @@ public class LocalInspectionTestGenerated extends AbstractLocalInspectionTest {
public void testReturnAsAny() throws Exception {
runTest("idea/testData/inspectionsLocal/redundantUnitExpression/returnAsAny.kt");
}
@TestMetadata("returnAsNullableAny.kt")
public void testReturnAsNullableAny() throws Exception {
runTest("idea/testData/inspectionsLocal/redundantUnitExpression/returnAsNullableAny.kt");
}
}
@TestMetadata("idea/testData/inspectionsLocal/removeRedundantBackticks")