Redundant suspend modifier: do not report when the function has 'actual' modifier

#KT-37746 Fixed
This commit is contained in:
Toshiaki Kameyama
2020-04-12 17:24:02 +09:00
committed by klunnii
parent 188bcf0e7b
commit 08588001be
3 changed files with 12 additions and 1 deletions
@@ -8327,6 +8327,11 @@ public class LocalInspectionTestGenerated extends AbstractLocalInspectionTest {
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
}
@TestMetadata("actual.kt")
public void testActual() throws Exception {
runTest("idea/testData/inspectionsLocal/redundantSuspend/actual.kt");
}
public void testAllFilesPresentInRedundantSuspend() throws Exception {
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("idea/testData/inspectionsLocal/redundantSuspend"), Pattern.compile("^([\\w\\-_]+)\\.(kt|kts)$"), null, true);
}