KT-29926: Support completion of suspend lambda parameters in the body

- `suspendLambdaSignature` directory is just a copy of `lambdaSignature`
This commit is contained in:
Roman Golyshev
2019-10-17 12:58:41 +03:00
committed by Roman Golyshev
parent 84b9044187
commit da4097f488
10 changed files with 95 additions and 4 deletions
@@ -803,4 +803,27 @@ public class PerformanceSmartCompletionHandlerTestGenerated extends AbstractPerf
runTest("idea/idea-completion/testData/handlers/smart/lambdaSignature/Simple.kt");
}
}
@TestMetadata("idea/idea-completion/testData/handlers/smart/suspendLambdaSignature")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class SuspendLambdaSignature extends AbstractPerformanceSmartCompletionHandlerTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doPerfTest, TargetBackend.ANY, testDataFilePath);
}
public void testAllFilesPresentInSuspendLambdaSignature() throws Exception {
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/idea-completion/testData/handlers/smart/suspendLambdaSignature"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true);
}
@TestMetadata("NoAdditionalSpace.kt")
public void testNoAdditionalSpace() throws Exception {
runTest("idea/idea-completion/testData/handlers/smart/suspendLambdaSignature/NoAdditionalSpace.kt");
}
@TestMetadata("Simple.kt")
public void testSimple() throws Exception {
runTest("idea/idea-completion/testData/handlers/smart/suspendLambdaSignature/Simple.kt");
}
}
}