"Redundant Unit" inspection: new tests, simplification & fixes
Related to KT-23977 and KT-24066
This commit is contained in:
+10
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user