From fc68ad3deca885d8a783c8e406e96b9f2a3f70b6 Mon Sep 17 00:00:00 2001 From: Pavel Kirpichenkov Date: Thu, 7 Mar 2024 17:40:19 +0200 Subject: [PATCH] [Kotlin] Tests: introduce K2 JS completion test and move JVM-dependent data KTIJ-27566 KT-65892 GitOrigin-RevId: 3400e0cb51a61cd205555cc19baddd487ec64f20 --- .../NoAutoInsertionOfNotImported.kt | 0 .../PrivatesInSecondPressCompletion.kt | 0 .../fromSmart/JavaStaticMethods.kt | 0 .../fromSmart/JavaStaticMethods2.kt | 0 .../staticMembers/JavaStaticFields.kt | 0 .../JavaStaticFieldsFromImports.kt | 0 .../staticMembers/JavaStaticMethods.kt | 0 .../JavaStaticMethodsFromImports.kt | 0 .../JavaStaticMethodsNoDuplicates.kt | 0 .../JavaStaticMethodsNoDuplicatesFromBases.kt | 0 .../when/nonSealedClassInWhen2.kt | 0 .../K1JSBasicCompletionTestGenerated.java | 55 - .../K1JvmBasicCompletionTestGenerated.java | 134 +- ...1MLPerformanceCompletionTestGenerated.java | 134 +- .../fir/K2JsBasicCompletionTestGenerated.java | 3620 +++++++++++++++++ .../AbstractK2JsBasicCompletionTest.kt | 30 + .../K2JvmBasicCompletionTestGenerated.java | 134 +- .../fir/testGenerator/FirGenerateTests.kt | 6 + 18 files changed, 3893 insertions(+), 220 deletions(-) rename plugins/kotlin/completion/testData/basic/{common => java}/NoAutoInsertionOfNotImported.kt (100%) rename plugins/kotlin/completion/testData/basic/{common => java}/PrivatesInSecondPressCompletion.kt (100%) rename plugins/kotlin/completion/testData/basic/{common => java}/fromSmart/JavaStaticMethods.kt (100%) rename plugins/kotlin/completion/testData/basic/{common => java}/fromSmart/JavaStaticMethods2.kt (100%) rename plugins/kotlin/completion/testData/basic/{common => java}/staticMembers/JavaStaticFields.kt (100%) rename plugins/kotlin/completion/testData/basic/{common => java}/staticMembers/JavaStaticFieldsFromImports.kt (100%) rename plugins/kotlin/completion/testData/basic/{common => java}/staticMembers/JavaStaticMethods.kt (100%) rename plugins/kotlin/completion/testData/basic/{common => java}/staticMembers/JavaStaticMethodsFromImports.kt (100%) rename plugins/kotlin/completion/testData/basic/{common => java}/staticMembers/JavaStaticMethodsNoDuplicates.kt (100%) rename plugins/kotlin/completion/testData/basic/{common => java}/staticMembers/JavaStaticMethodsNoDuplicatesFromBases.kt (100%) rename plugins/kotlin/completion/testData/basic/{common => java}/when/nonSealedClassInWhen2.kt (100%) create mode 100644 plugins/kotlin/fir/tests/test/org/jetbrains/kotlin/idea/fir/K2JsBasicCompletionTestGenerated.java create mode 100644 plugins/kotlin/fir/tests/test/org/jetbrains/kotlin/idea/fir/completion/AbstractK2JsBasicCompletionTest.kt diff --git a/plugins/kotlin/completion/testData/basic/common/NoAutoInsertionOfNotImported.kt b/plugins/kotlin/completion/testData/basic/java/NoAutoInsertionOfNotImported.kt similarity index 100% rename from plugins/kotlin/completion/testData/basic/common/NoAutoInsertionOfNotImported.kt rename to plugins/kotlin/completion/testData/basic/java/NoAutoInsertionOfNotImported.kt diff --git a/plugins/kotlin/completion/testData/basic/common/PrivatesInSecondPressCompletion.kt b/plugins/kotlin/completion/testData/basic/java/PrivatesInSecondPressCompletion.kt similarity index 100% rename from plugins/kotlin/completion/testData/basic/common/PrivatesInSecondPressCompletion.kt rename to plugins/kotlin/completion/testData/basic/java/PrivatesInSecondPressCompletion.kt diff --git a/plugins/kotlin/completion/testData/basic/common/fromSmart/JavaStaticMethods.kt b/plugins/kotlin/completion/testData/basic/java/fromSmart/JavaStaticMethods.kt similarity index 100% rename from plugins/kotlin/completion/testData/basic/common/fromSmart/JavaStaticMethods.kt rename to plugins/kotlin/completion/testData/basic/java/fromSmart/JavaStaticMethods.kt diff --git a/plugins/kotlin/completion/testData/basic/common/fromSmart/JavaStaticMethods2.kt b/plugins/kotlin/completion/testData/basic/java/fromSmart/JavaStaticMethods2.kt similarity index 100% rename from plugins/kotlin/completion/testData/basic/common/fromSmart/JavaStaticMethods2.kt rename to plugins/kotlin/completion/testData/basic/java/fromSmart/JavaStaticMethods2.kt diff --git a/plugins/kotlin/completion/testData/basic/common/staticMembers/JavaStaticFields.kt b/plugins/kotlin/completion/testData/basic/java/staticMembers/JavaStaticFields.kt similarity index 100% rename from plugins/kotlin/completion/testData/basic/common/staticMembers/JavaStaticFields.kt rename to plugins/kotlin/completion/testData/basic/java/staticMembers/JavaStaticFields.kt diff --git a/plugins/kotlin/completion/testData/basic/common/staticMembers/JavaStaticFieldsFromImports.kt b/plugins/kotlin/completion/testData/basic/java/staticMembers/JavaStaticFieldsFromImports.kt similarity index 100% rename from plugins/kotlin/completion/testData/basic/common/staticMembers/JavaStaticFieldsFromImports.kt rename to plugins/kotlin/completion/testData/basic/java/staticMembers/JavaStaticFieldsFromImports.kt diff --git a/plugins/kotlin/completion/testData/basic/common/staticMembers/JavaStaticMethods.kt b/plugins/kotlin/completion/testData/basic/java/staticMembers/JavaStaticMethods.kt similarity index 100% rename from plugins/kotlin/completion/testData/basic/common/staticMembers/JavaStaticMethods.kt rename to plugins/kotlin/completion/testData/basic/java/staticMembers/JavaStaticMethods.kt diff --git a/plugins/kotlin/completion/testData/basic/common/staticMembers/JavaStaticMethodsFromImports.kt b/plugins/kotlin/completion/testData/basic/java/staticMembers/JavaStaticMethodsFromImports.kt similarity index 100% rename from plugins/kotlin/completion/testData/basic/common/staticMembers/JavaStaticMethodsFromImports.kt rename to plugins/kotlin/completion/testData/basic/java/staticMembers/JavaStaticMethodsFromImports.kt diff --git a/plugins/kotlin/completion/testData/basic/common/staticMembers/JavaStaticMethodsNoDuplicates.kt b/plugins/kotlin/completion/testData/basic/java/staticMembers/JavaStaticMethodsNoDuplicates.kt similarity index 100% rename from plugins/kotlin/completion/testData/basic/common/staticMembers/JavaStaticMethodsNoDuplicates.kt rename to plugins/kotlin/completion/testData/basic/java/staticMembers/JavaStaticMethodsNoDuplicates.kt diff --git a/plugins/kotlin/completion/testData/basic/common/staticMembers/JavaStaticMethodsNoDuplicatesFromBases.kt b/plugins/kotlin/completion/testData/basic/java/staticMembers/JavaStaticMethodsNoDuplicatesFromBases.kt similarity index 100% rename from plugins/kotlin/completion/testData/basic/common/staticMembers/JavaStaticMethodsNoDuplicatesFromBases.kt rename to plugins/kotlin/completion/testData/basic/java/staticMembers/JavaStaticMethodsNoDuplicatesFromBases.kt diff --git a/plugins/kotlin/completion/testData/basic/common/when/nonSealedClassInWhen2.kt b/plugins/kotlin/completion/testData/basic/java/when/nonSealedClassInWhen2.kt similarity index 100% rename from plugins/kotlin/completion/testData/basic/common/when/nonSealedClassInWhen2.kt rename to plugins/kotlin/completion/testData/basic/java/when/nonSealedClassInWhen2.kt diff --git a/plugins/kotlin/completion/tests-k1/test/org/jetbrains/kotlin/idea/completion/test/K1JSBasicCompletionTestGenerated.java b/plugins/kotlin/completion/tests-k1/test/org/jetbrains/kotlin/idea/completion/test/K1JSBasicCompletionTestGenerated.java index 95d4e1c19e65..1fbee48e848b 100644 --- a/plugins/kotlin/completion/tests-k1/test/org/jetbrains/kotlin/idea/completion/test/K1JSBasicCompletionTestGenerated.java +++ b/plugins/kotlin/completion/tests-k1/test/org/jetbrains/kotlin/idea/completion/test/K1JSBasicCompletionTestGenerated.java @@ -1053,16 +1053,6 @@ public abstract class K1JSBasicCompletionTestGenerated extends AbstractK1JSBasic runTest("../testData/basic/common/fromSmart/EnumEntries.kt"); } - @TestMetadata("JavaStaticMethods.kt") - public void testJavaStaticMethods() throws Exception { - runTest("../testData/basic/common/fromSmart/JavaStaticMethods.kt"); - } - - @TestMetadata("JavaStaticMethods2.kt") - public void testJavaStaticMethods2() throws Exception { - runTest("../testData/basic/common/fromSmart/JavaStaticMethods2.kt"); - } - @TestMetadata("MultipleArgs.kt") public void testMultipleArgs() throws Exception { runTest("../testData/basic/common/fromSmart/MultipleArgs.kt"); @@ -2367,36 +2357,6 @@ public abstract class K1JSBasicCompletionTestGenerated extends AbstractK1JSBasic public void testImportsFromObjectNoDuplicates() throws Exception { runTest("../testData/basic/common/staticMembers/ImportsFromObjectNoDuplicates.kt"); } - - @TestMetadata("JavaStaticFields.kt") - public void testJavaStaticFields() throws Exception { - runTest("../testData/basic/common/staticMembers/JavaStaticFields.kt"); - } - - @TestMetadata("JavaStaticFieldsFromImports.kt") - public void testJavaStaticFieldsFromImports() throws Exception { - runTest("../testData/basic/common/staticMembers/JavaStaticFieldsFromImports.kt"); - } - - @TestMetadata("JavaStaticMethods.kt") - public void testJavaStaticMethods() throws Exception { - runTest("../testData/basic/common/staticMembers/JavaStaticMethods.kt"); - } - - @TestMetadata("JavaStaticMethodsFromImports.kt") - public void testJavaStaticMethodsFromImports() throws Exception { - runTest("../testData/basic/common/staticMembers/JavaStaticMethodsFromImports.kt"); - } - - @TestMetadata("JavaStaticMethodsNoDuplicates.kt") - public void testJavaStaticMethodsNoDuplicates() throws Exception { - runTest("../testData/basic/common/staticMembers/JavaStaticMethodsNoDuplicates.kt"); - } - - @TestMetadata("JavaStaticMethodsNoDuplicatesFromBases.kt") - public void testJavaStaticMethodsNoDuplicatesFromBases() throws Exception { - runTest("../testData/basic/common/staticMembers/JavaStaticMethodsNoDuplicatesFromBases.kt"); - } } @RunWith(JUnit3RunnerWithInners.class) @@ -3133,11 +3093,6 @@ public abstract class K1JSBasicCompletionTestGenerated extends AbstractK1JSBasic runTest("../testData/basic/common/NestedClassesOnDefaultObjectLiteral.kt"); } - @TestMetadata("NoAutoInsertionOfNotImported.kt") - public void testNoAutoInsertionOfNotImported() throws Exception { - runTest("../testData/basic/common/NoAutoInsertionOfNotImported.kt"); - } - @TestMetadata("NoClassNameDuplication.kt") public void testNoClassNameDuplication() throws Exception { runTest("../testData/basic/common/NoClassNameDuplication.kt"); @@ -3243,11 +3198,6 @@ public abstract class K1JSBasicCompletionTestGenerated extends AbstractK1JSBasic runTest("../testData/basic/common/PreferLessParameters.kt"); } - @TestMetadata("PrivatesInSecondPressCompletion.kt") - public void testPrivatesInSecondPressCompletion() throws Exception { - runTest("../testData/basic/common/PrivatesInSecondPressCompletion.kt"); - } - @TestMetadata("ProtectedExtensionMethod.kt") public void testProtectedExtensionMethod() throws Exception { runTest("../testData/basic/common/ProtectedExtensionMethod.kt"); @@ -3572,11 +3522,6 @@ public abstract class K1JSBasicCompletionTestGenerated extends AbstractK1JSBasic runTest("../testData/basic/common/when/nonSealedClassInWhen.kt"); } - @TestMetadata("nonSealedClassInWhen2.kt") - public void testNonSealedClassInWhen2() throws Exception { - runTest("../testData/basic/common/when/nonSealedClassInWhen2.kt"); - } - @TestMetadata("nonSealedClassWithTypeArgs.kt") public void testNonSealedClassWithTypeArgs() throws Exception { runTest("../testData/basic/common/when/nonSealedClassWithTypeArgs.kt"); diff --git a/plugins/kotlin/completion/tests-k1/test/org/jetbrains/kotlin/idea/completion/test/K1JvmBasicCompletionTestGenerated.java b/plugins/kotlin/completion/tests-k1/test/org/jetbrains/kotlin/idea/completion/test/K1JvmBasicCompletionTestGenerated.java index b70ed9d5b647..019609eb6211 100644 --- a/plugins/kotlin/completion/tests-k1/test/org/jetbrains/kotlin/idea/completion/test/K1JvmBasicCompletionTestGenerated.java +++ b/plugins/kotlin/completion/tests-k1/test/org/jetbrains/kotlin/idea/completion/test/K1JvmBasicCompletionTestGenerated.java @@ -1053,16 +1053,6 @@ public abstract class K1JvmBasicCompletionTestGenerated extends AbstractK1JvmBas runTest("../testData/basic/common/fromSmart/EnumEntries.kt"); } - @TestMetadata("JavaStaticMethods.kt") - public void testJavaStaticMethods() throws Exception { - runTest("../testData/basic/common/fromSmart/JavaStaticMethods.kt"); - } - - @TestMetadata("JavaStaticMethods2.kt") - public void testJavaStaticMethods2() throws Exception { - runTest("../testData/basic/common/fromSmart/JavaStaticMethods2.kt"); - } - @TestMetadata("MultipleArgs.kt") public void testMultipleArgs() throws Exception { runTest("../testData/basic/common/fromSmart/MultipleArgs.kt"); @@ -2367,36 +2357,6 @@ public abstract class K1JvmBasicCompletionTestGenerated extends AbstractK1JvmBas public void testImportsFromObjectNoDuplicates() throws Exception { runTest("../testData/basic/common/staticMembers/ImportsFromObjectNoDuplicates.kt"); } - - @TestMetadata("JavaStaticFields.kt") - public void testJavaStaticFields() throws Exception { - runTest("../testData/basic/common/staticMembers/JavaStaticFields.kt"); - } - - @TestMetadata("JavaStaticFieldsFromImports.kt") - public void testJavaStaticFieldsFromImports() throws Exception { - runTest("../testData/basic/common/staticMembers/JavaStaticFieldsFromImports.kt"); - } - - @TestMetadata("JavaStaticMethods.kt") - public void testJavaStaticMethods() throws Exception { - runTest("../testData/basic/common/staticMembers/JavaStaticMethods.kt"); - } - - @TestMetadata("JavaStaticMethodsFromImports.kt") - public void testJavaStaticMethodsFromImports() throws Exception { - runTest("../testData/basic/common/staticMembers/JavaStaticMethodsFromImports.kt"); - } - - @TestMetadata("JavaStaticMethodsNoDuplicates.kt") - public void testJavaStaticMethodsNoDuplicates() throws Exception { - runTest("../testData/basic/common/staticMembers/JavaStaticMethodsNoDuplicates.kt"); - } - - @TestMetadata("JavaStaticMethodsNoDuplicatesFromBases.kt") - public void testJavaStaticMethodsNoDuplicatesFromBases() throws Exception { - runTest("../testData/basic/common/staticMembers/JavaStaticMethodsNoDuplicatesFromBases.kt"); - } } @RunWith(JUnit3RunnerWithInners.class) @@ -3133,11 +3093,6 @@ public abstract class K1JvmBasicCompletionTestGenerated extends AbstractK1JvmBas runTest("../testData/basic/common/NestedClassesOnDefaultObjectLiteral.kt"); } - @TestMetadata("NoAutoInsertionOfNotImported.kt") - public void testNoAutoInsertionOfNotImported() throws Exception { - runTest("../testData/basic/common/NoAutoInsertionOfNotImported.kt"); - } - @TestMetadata("NoClassNameDuplication.kt") public void testNoClassNameDuplication() throws Exception { runTest("../testData/basic/common/NoClassNameDuplication.kt"); @@ -3243,11 +3198,6 @@ public abstract class K1JvmBasicCompletionTestGenerated extends AbstractK1JvmBas runTest("../testData/basic/common/PreferLessParameters.kt"); } - @TestMetadata("PrivatesInSecondPressCompletion.kt") - public void testPrivatesInSecondPressCompletion() throws Exception { - runTest("../testData/basic/common/PrivatesInSecondPressCompletion.kt"); - } - @TestMetadata("ProtectedExtensionMethod.kt") public void testProtectedExtensionMethod() throws Exception { runTest("../testData/basic/common/ProtectedExtensionMethod.kt"); @@ -3572,11 +3522,6 @@ public abstract class K1JvmBasicCompletionTestGenerated extends AbstractK1JvmBas runTest("../testData/basic/common/when/nonSealedClassInWhen.kt"); } - @TestMetadata("nonSealedClassInWhen2.kt") - public void testNonSealedClassInWhen2() throws Exception { - runTest("../testData/basic/common/when/nonSealedClassInWhen2.kt"); - } - @TestMetadata("nonSealedClassWithTypeArgs.kt") public void testNonSealedClassWithTypeArgs() throws Exception { runTest("../testData/basic/common/when/nonSealedClassWithTypeArgs.kt"); @@ -3703,6 +3648,24 @@ public abstract class K1JvmBasicCompletionTestGenerated extends AbstractK1JvmBas } } + @RunWith(JUnit3RunnerWithInners.class) + @TestMetadata("../testData/basic/java/fromSmart") + public static class FromSmart extends AbstractK1JvmBasicCompletionTest { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); + } + + @TestMetadata("JavaStaticMethods.kt") + public void testJavaStaticMethods() throws Exception { + runTest("../testData/basic/java/fromSmart/JavaStaticMethods.kt"); + } + + @TestMetadata("JavaStaticMethods2.kt") + public void testJavaStaticMethods2() throws Exception { + runTest("../testData/basic/java/fromSmart/JavaStaticMethods2.kt"); + } + } + @RunWith(JUnit3RunnerWithInners.class) @TestMetadata("../testData/basic/java/importAliases") public static class ImportAliases extends AbstractK1JvmBasicCompletionTest { @@ -3756,6 +3719,44 @@ public abstract class K1JvmBasicCompletionTestGenerated extends AbstractK1JvmBas } } + @RunWith(JUnit3RunnerWithInners.class) + @TestMetadata("../testData/basic/java/staticMembers") + public static class StaticMembers extends AbstractK1JvmBasicCompletionTest { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); + } + + @TestMetadata("JavaStaticFields.kt") + public void testJavaStaticFields() throws Exception { + runTest("../testData/basic/java/staticMembers/JavaStaticFields.kt"); + } + + @TestMetadata("JavaStaticFieldsFromImports.kt") + public void testJavaStaticFieldsFromImports() throws Exception { + runTest("../testData/basic/java/staticMembers/JavaStaticFieldsFromImports.kt"); + } + + @TestMetadata("JavaStaticMethods.kt") + public void testJavaStaticMethods() throws Exception { + runTest("../testData/basic/java/staticMembers/JavaStaticMethods.kt"); + } + + @TestMetadata("JavaStaticMethodsFromImports.kt") + public void testJavaStaticMethodsFromImports() throws Exception { + runTest("../testData/basic/java/staticMembers/JavaStaticMethodsFromImports.kt"); + } + + @TestMetadata("JavaStaticMethodsNoDuplicates.kt") + public void testJavaStaticMethodsNoDuplicates() throws Exception { + runTest("../testData/basic/java/staticMembers/JavaStaticMethodsNoDuplicates.kt"); + } + + @TestMetadata("JavaStaticMethodsNoDuplicatesFromBases.kt") + public void testJavaStaticMethodsNoDuplicatesFromBases() throws Exception { + runTest("../testData/basic/java/staticMembers/JavaStaticMethodsNoDuplicatesFromBases.kt"); + } + } + @RunWith(JUnit3RunnerWithInners.class) @TestMetadata("../testData/basic/java/syntheticExtensions") public static class SyntheticExtensions extends AbstractK1JvmBasicCompletionTest { @@ -3891,6 +3892,11 @@ public abstract class K1JvmBasicCompletionTestGenerated extends AbstractK1JvmBas runTest("../testData/basic/java/KT9166.kt"); } + @TestMetadata("NoAutoInsertionOfNotImported.kt") + public void testNoAutoInsertionOfNotImported() throws Exception { + runTest("../testData/basic/java/NoAutoInsertionOfNotImported.kt"); + } + @TestMetadata("NoDuplicationForImportedJavaClass.kt") public void testNoDuplicationForImportedJavaClass() throws Exception { runTest("../testData/basic/java/NoDuplicationForImportedJavaClass.kt"); @@ -3931,6 +3937,11 @@ public abstract class K1JvmBasicCompletionTestGenerated extends AbstractK1JvmBas runTest("../testData/basic/java/PackageDirective.kt"); } + @TestMetadata("PrivatesInSecondPressCompletion.kt") + public void testPrivatesInSecondPressCompletion() throws Exception { + runTest("../testData/basic/java/PrivatesInSecondPressCompletion.kt"); + } + @TestMetadata("ReadlineMethodLowerPriority.kt") public void testReadlineMethodLowerPriority() throws Exception { runTest("../testData/basic/java/ReadlineMethodLowerPriority.kt"); @@ -3971,5 +3982,18 @@ public abstract class K1JvmBasicCompletionTestGenerated extends AbstractK1JvmBas runTest("../testData/basic/java/TopLevelFromStandardLibrary.kt"); } } + + @RunWith(JUnit3RunnerWithInners.class) + @TestMetadata("../testData/basic/java/when") + public static class When extends AbstractK1JvmBasicCompletionTest { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); + } + + @TestMetadata("nonSealedClassInWhen2.kt") + public void testNonSealedClassInWhen2() throws Exception { + runTest("../testData/basic/java/when/nonSealedClassInWhen2.kt"); + } + } } } diff --git a/plugins/kotlin/completion/tests-k1/test/org/jetbrains/kotlin/idea/completion/test/K1MLPerformanceCompletionTestGenerated.java b/plugins/kotlin/completion/tests-k1/test/org/jetbrains/kotlin/idea/completion/test/K1MLPerformanceCompletionTestGenerated.java index c7963ed979e0..cee7efaddf5c 100644 --- a/plugins/kotlin/completion/tests-k1/test/org/jetbrains/kotlin/idea/completion/test/K1MLPerformanceCompletionTestGenerated.java +++ b/plugins/kotlin/completion/tests-k1/test/org/jetbrains/kotlin/idea/completion/test/K1MLPerformanceCompletionTestGenerated.java @@ -1053,16 +1053,6 @@ public abstract class K1MLPerformanceCompletionTestGenerated extends AbstractK1M runTest("../testData/basic/common/fromSmart/EnumEntries.kt"); } - @TestMetadata("JavaStaticMethods.kt") - public void testJavaStaticMethods() throws Exception { - runTest("../testData/basic/common/fromSmart/JavaStaticMethods.kt"); - } - - @TestMetadata("JavaStaticMethods2.kt") - public void testJavaStaticMethods2() throws Exception { - runTest("../testData/basic/common/fromSmart/JavaStaticMethods2.kt"); - } - @TestMetadata("MultipleArgs.kt") public void testMultipleArgs() throws Exception { runTest("../testData/basic/common/fromSmart/MultipleArgs.kt"); @@ -2367,36 +2357,6 @@ public abstract class K1MLPerformanceCompletionTestGenerated extends AbstractK1M public void testImportsFromObjectNoDuplicates() throws Exception { runTest("../testData/basic/common/staticMembers/ImportsFromObjectNoDuplicates.kt"); } - - @TestMetadata("JavaStaticFields.kt") - public void testJavaStaticFields() throws Exception { - runTest("../testData/basic/common/staticMembers/JavaStaticFields.kt"); - } - - @TestMetadata("JavaStaticFieldsFromImports.kt") - public void testJavaStaticFieldsFromImports() throws Exception { - runTest("../testData/basic/common/staticMembers/JavaStaticFieldsFromImports.kt"); - } - - @TestMetadata("JavaStaticMethods.kt") - public void testJavaStaticMethods() throws Exception { - runTest("../testData/basic/common/staticMembers/JavaStaticMethods.kt"); - } - - @TestMetadata("JavaStaticMethodsFromImports.kt") - public void testJavaStaticMethodsFromImports() throws Exception { - runTest("../testData/basic/common/staticMembers/JavaStaticMethodsFromImports.kt"); - } - - @TestMetadata("JavaStaticMethodsNoDuplicates.kt") - public void testJavaStaticMethodsNoDuplicates() throws Exception { - runTest("../testData/basic/common/staticMembers/JavaStaticMethodsNoDuplicates.kt"); - } - - @TestMetadata("JavaStaticMethodsNoDuplicatesFromBases.kt") - public void testJavaStaticMethodsNoDuplicatesFromBases() throws Exception { - runTest("../testData/basic/common/staticMembers/JavaStaticMethodsNoDuplicatesFromBases.kt"); - } } @RunWith(JUnit3RunnerWithInners.class) @@ -3133,11 +3093,6 @@ public abstract class K1MLPerformanceCompletionTestGenerated extends AbstractK1M runTest("../testData/basic/common/NestedClassesOnDefaultObjectLiteral.kt"); } - @TestMetadata("NoAutoInsertionOfNotImported.kt") - public void testNoAutoInsertionOfNotImported() throws Exception { - runTest("../testData/basic/common/NoAutoInsertionOfNotImported.kt"); - } - @TestMetadata("NoClassNameDuplication.kt") public void testNoClassNameDuplication() throws Exception { runTest("../testData/basic/common/NoClassNameDuplication.kt"); @@ -3243,11 +3198,6 @@ public abstract class K1MLPerformanceCompletionTestGenerated extends AbstractK1M runTest("../testData/basic/common/PreferLessParameters.kt"); } - @TestMetadata("PrivatesInSecondPressCompletion.kt") - public void testPrivatesInSecondPressCompletion() throws Exception { - runTest("../testData/basic/common/PrivatesInSecondPressCompletion.kt"); - } - @TestMetadata("ProtectedExtensionMethod.kt") public void testProtectedExtensionMethod() throws Exception { runTest("../testData/basic/common/ProtectedExtensionMethod.kt"); @@ -3572,11 +3522,6 @@ public abstract class K1MLPerformanceCompletionTestGenerated extends AbstractK1M runTest("../testData/basic/common/when/nonSealedClassInWhen.kt"); } - @TestMetadata("nonSealedClassInWhen2.kt") - public void testNonSealedClassInWhen2() throws Exception { - runTest("../testData/basic/common/when/nonSealedClassInWhen2.kt"); - } - @TestMetadata("nonSealedClassWithTypeArgs.kt") public void testNonSealedClassWithTypeArgs() throws Exception { runTest("../testData/basic/common/when/nonSealedClassWithTypeArgs.kt"); @@ -3703,6 +3648,24 @@ public abstract class K1MLPerformanceCompletionTestGenerated extends AbstractK1M } } + @RunWith(JUnit3RunnerWithInners.class) + @TestMetadata("../testData/basic/java/fromSmart") + public static class FromSmart extends AbstractK1MLPerformanceCompletionTest { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); + } + + @TestMetadata("JavaStaticMethods.kt") + public void testJavaStaticMethods() throws Exception { + runTest("../testData/basic/java/fromSmart/JavaStaticMethods.kt"); + } + + @TestMetadata("JavaStaticMethods2.kt") + public void testJavaStaticMethods2() throws Exception { + runTest("../testData/basic/java/fromSmart/JavaStaticMethods2.kt"); + } + } + @RunWith(JUnit3RunnerWithInners.class) @TestMetadata("../testData/basic/java/importAliases") public static class ImportAliases extends AbstractK1MLPerformanceCompletionTest { @@ -3756,6 +3719,44 @@ public abstract class K1MLPerformanceCompletionTestGenerated extends AbstractK1M } } + @RunWith(JUnit3RunnerWithInners.class) + @TestMetadata("../testData/basic/java/staticMembers") + public static class StaticMembers extends AbstractK1MLPerformanceCompletionTest { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); + } + + @TestMetadata("JavaStaticFields.kt") + public void testJavaStaticFields() throws Exception { + runTest("../testData/basic/java/staticMembers/JavaStaticFields.kt"); + } + + @TestMetadata("JavaStaticFieldsFromImports.kt") + public void testJavaStaticFieldsFromImports() throws Exception { + runTest("../testData/basic/java/staticMembers/JavaStaticFieldsFromImports.kt"); + } + + @TestMetadata("JavaStaticMethods.kt") + public void testJavaStaticMethods() throws Exception { + runTest("../testData/basic/java/staticMembers/JavaStaticMethods.kt"); + } + + @TestMetadata("JavaStaticMethodsFromImports.kt") + public void testJavaStaticMethodsFromImports() throws Exception { + runTest("../testData/basic/java/staticMembers/JavaStaticMethodsFromImports.kt"); + } + + @TestMetadata("JavaStaticMethodsNoDuplicates.kt") + public void testJavaStaticMethodsNoDuplicates() throws Exception { + runTest("../testData/basic/java/staticMembers/JavaStaticMethodsNoDuplicates.kt"); + } + + @TestMetadata("JavaStaticMethodsNoDuplicatesFromBases.kt") + public void testJavaStaticMethodsNoDuplicatesFromBases() throws Exception { + runTest("../testData/basic/java/staticMembers/JavaStaticMethodsNoDuplicatesFromBases.kt"); + } + } + @RunWith(JUnit3RunnerWithInners.class) @TestMetadata("../testData/basic/java/syntheticExtensions") public static class SyntheticExtensions extends AbstractK1MLPerformanceCompletionTest { @@ -3891,6 +3892,11 @@ public abstract class K1MLPerformanceCompletionTestGenerated extends AbstractK1M runTest("../testData/basic/java/KT9166.kt"); } + @TestMetadata("NoAutoInsertionOfNotImported.kt") + public void testNoAutoInsertionOfNotImported() throws Exception { + runTest("../testData/basic/java/NoAutoInsertionOfNotImported.kt"); + } + @TestMetadata("NoDuplicationForImportedJavaClass.kt") public void testNoDuplicationForImportedJavaClass() throws Exception { runTest("../testData/basic/java/NoDuplicationForImportedJavaClass.kt"); @@ -3931,6 +3937,11 @@ public abstract class K1MLPerformanceCompletionTestGenerated extends AbstractK1M runTest("../testData/basic/java/PackageDirective.kt"); } + @TestMetadata("PrivatesInSecondPressCompletion.kt") + public void testPrivatesInSecondPressCompletion() throws Exception { + runTest("../testData/basic/java/PrivatesInSecondPressCompletion.kt"); + } + @TestMetadata("ReadlineMethodLowerPriority.kt") public void testReadlineMethodLowerPriority() throws Exception { runTest("../testData/basic/java/ReadlineMethodLowerPriority.kt"); @@ -3971,5 +3982,18 @@ public abstract class K1MLPerformanceCompletionTestGenerated extends AbstractK1M runTest("../testData/basic/java/TopLevelFromStandardLibrary.kt"); } } + + @RunWith(JUnit3RunnerWithInners.class) + @TestMetadata("../testData/basic/java/when") + public static class When extends AbstractK1MLPerformanceCompletionTest { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); + } + + @TestMetadata("nonSealedClassInWhen2.kt") + public void testNonSealedClassInWhen2() throws Exception { + runTest("../testData/basic/java/when/nonSealedClassInWhen2.kt"); + } + } } } diff --git a/plugins/kotlin/fir/tests/test/org/jetbrains/kotlin/idea/fir/K2JsBasicCompletionTestGenerated.java b/plugins/kotlin/fir/tests/test/org/jetbrains/kotlin/idea/fir/K2JsBasicCompletionTestGenerated.java new file mode 100644 index 000000000000..6fbcacd0bf3e --- /dev/null +++ b/plugins/kotlin/fir/tests/test/org/jetbrains/kotlin/idea/fir/K2JsBasicCompletionTestGenerated.java @@ -0,0 +1,3620 @@ +// Copyright 2000-2024 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license. + +package org.jetbrains.kotlin.idea.fir; + +import com.intellij.testFramework.TestDataPath; +import org.jetbrains.kotlin.idea.test.JUnit3RunnerWithInners; +import org.jetbrains.kotlin.idea.test.KotlinTestUtils; +import org.jetbrains.kotlin.test.TestMetadata; +import org.jetbrains.kotlin.idea.base.test.TestRoot; +import org.junit.runner.RunWith; + +/** + * This class is generated by {@link org.jetbrains.kotlin.testGenerator.generator.TestGenerator}. + * DO NOT MODIFY MANUALLY. + */ +@SuppressWarnings("all") +@TestRoot("fir/tests") +@TestDataPath("$CONTENT_ROOT") +@RunWith(JUnit3RunnerWithInners.class) +public abstract class K2JsBasicCompletionTestGenerated extends AbstractK2JsBasicCompletionTest { + @RunWith(JUnit3RunnerWithInners.class) + @TestMetadata("../../completion/testData/basic/common") + public abstract static class Common extends AbstractK2JsBasicCompletionTest { + @RunWith(JUnit3RunnerWithInners.class) + @TestMetadata("../../completion/testData/basic/common/annotations") + public static class Annotations extends AbstractK2JsBasicCompletionTest { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); + } + + @TestMetadata("AfterPackageName.kt") + public void testAfterPackageName() throws Exception { + runTest("../../completion/testData/basic/common/annotations/AfterPackageName.kt"); + } + + @TestMetadata("Annotated.kt") + public void testAnnotated() throws Exception { + runTest("../../completion/testData/basic/common/annotations/Annotated.kt"); + } + + @TestMetadata("AnnotationTarget.kt") + public void testAnnotationTarget() throws Exception { + runTest("../../completion/testData/basic/common/annotations/AnnotationTarget.kt"); + } + + @TestMetadata("ArrayOf.kt") + public void testArrayOf() throws Exception { + runTest("../../completion/testData/basic/common/annotations/ArrayOf.kt"); + } + + @TestMetadata("ArrayOf2.kt") + public void testArrayOf2() throws Exception { + runTest("../../completion/testData/basic/common/annotations/ArrayOf2.kt"); + } + + @TestMetadata("ClassReference.kt") + public void testClassReference() throws Exception { + runTest("../../completion/testData/basic/common/annotations/ClassReference.kt"); + } + + @TestMetadata("Deprecated.kt") + public void testDeprecated() throws Exception { + runTest("../../completion/testData/basic/common/annotations/Deprecated.kt"); + } + + @TestMetadata("Deprecated2.kt") + public void testDeprecated2() throws Exception { + runTest("../../completion/testData/basic/common/annotations/Deprecated2.kt"); + } + + @TestMetadata("ForType.kt") + public void testForType() throws Exception { + runTest("../../completion/testData/basic/common/annotations/ForType.kt"); + } + + @TestMetadata("FunctionAnnotation1.kt") + public void testFunctionAnnotation1() throws Exception { + runTest("../../completion/testData/basic/common/annotations/FunctionAnnotation1.kt"); + } + + @TestMetadata("FunctionAnnotation2.kt") + public void testFunctionAnnotation2() throws Exception { + runTest("../../completion/testData/basic/common/annotations/FunctionAnnotation2.kt"); + } + + @TestMetadata("NoCatchParameterAutopopup.kt") + public void testNoCatchParameterAutopopup() throws Exception { + runTest("../../completion/testData/basic/common/annotations/NoCatchParameterAutopopup.kt"); + } + + @TestMetadata("NoSetterParameterAutopopup.kt") + public void testNoSetterParameterAutopopup() throws Exception { + runTest("../../completion/testData/basic/common/annotations/NoSetterParameterAutopopup.kt"); + } + + @TestMetadata("OnFunction.kt") + public void testOnFunction() throws Exception { + runTest("../../completion/testData/basic/common/annotations/OnFunction.kt"); + } + + @TestMetadata("OnFunction2.kt") + public void testOnFunction2() throws Exception { + runTest("../../completion/testData/basic/common/annotations/OnFunction2.kt"); + } + + @TestMetadata("OnFunctionWithoutDot.kt") + public void testOnFunctionWithoutDot() throws Exception { + runTest("../../completion/testData/basic/common/annotations/OnFunctionWithoutDot.kt"); + } + + @TestMetadata("OnFunctionWithoutDot2.kt") + public void testOnFunctionWithoutDot2() throws Exception { + runTest("../../completion/testData/basic/common/annotations/OnFunctionWithoutDot2.kt"); + } + + @TestMetadata("OnlyAnnotations.kt") + public void testOnlyAnnotations() throws Exception { + runTest("../../completion/testData/basic/common/annotations/OnlyAnnotations.kt"); + } + + @TestMetadata("OnlyCompileTimeConstants1.kt") + public void testOnlyCompileTimeConstants1() throws Exception { + runTest("../../completion/testData/basic/common/annotations/OnlyCompileTimeConstants1.kt"); + } + + @TestMetadata("OnlyCompileTimeConstants2.kt") + public void testOnlyCompileTimeConstants2() throws Exception { + runTest("../../completion/testData/basic/common/annotations/OnlyCompileTimeConstants2.kt"); + } + + @TestMetadata("OnlyCompileTimeConstants3.kt") + public void testOnlyCompileTimeConstants3() throws Exception { + runTest("../../completion/testData/basic/common/annotations/OnlyCompileTimeConstants3.kt"); + } + + @TestMetadata("OnlyCompileTimeConstants4.kt") + public void testOnlyCompileTimeConstants4() throws Exception { + runTest("../../completion/testData/basic/common/annotations/OnlyCompileTimeConstants4.kt"); + } + + @TestMetadata("ParameterAnnotation1.kt") + public void testParameterAnnotation1() throws Exception { + runTest("../../completion/testData/basic/common/annotations/ParameterAnnotation1.kt"); + } + + @TestMetadata("ParameterAnnotation2.kt") + public void testParameterAnnotation2() throws Exception { + runTest("../../completion/testData/basic/common/annotations/ParameterAnnotation2.kt"); + } + + @TestMetadata("ParameterAnnotation3.kt") + public void testParameterAnnotation3() throws Exception { + runTest("../../completion/testData/basic/common/annotations/ParameterAnnotation3.kt"); + } + + @TestMetadata("ParameterAnnotation4.kt") + public void testParameterAnnotation4() throws Exception { + runTest("../../completion/testData/basic/common/annotations/ParameterAnnotation4.kt"); + } + + @TestMetadata("ParameterAnnotation5.kt") + public void testParameterAnnotation5() throws Exception { + runTest("../../completion/testData/basic/common/annotations/ParameterAnnotation5.kt"); + } + + @TestMetadata("ParameterAnnotation6.kt") + public void testParameterAnnotation6() throws Exception { + runTest("../../completion/testData/basic/common/annotations/ParameterAnnotation6.kt"); + } + + @TestMetadata("ParameterAnnotation7.kt") + public void testParameterAnnotation7() throws Exception { + runTest("../../completion/testData/basic/common/annotations/ParameterAnnotation7.kt"); + } + + @TestMetadata("ParameterAnnotation8.kt") + public void testParameterAnnotation8() throws Exception { + runTest("../../completion/testData/basic/common/annotations/ParameterAnnotation8.kt"); + } + + @TestMetadata("ParameterAnnotation9.kt") + public void testParameterAnnotation9() throws Exception { + runTest("../../completion/testData/basic/common/annotations/ParameterAnnotation9.kt"); + } + + @TestMetadata("ParameterAnnotationArgs.kt") + public void testParameterAnnotationArgs() throws Exception { + runTest("../../completion/testData/basic/common/annotations/ParameterAnnotationArgs.kt"); + } + + @TestMetadata("ParameterAnnotationAutoPopup1.kt") + public void testParameterAnnotationAutoPopup1() throws Exception { + runTest("../../completion/testData/basic/common/annotations/ParameterAnnotationAutoPopup1.kt"); + } + + @TestMetadata("ParameterAnnotationAutoPopup2.kt") + public void testParameterAnnotationAutoPopup2() throws Exception { + runTest("../../completion/testData/basic/common/annotations/ParameterAnnotationAutoPopup2.kt"); + } + + @TestMetadata("TopLevelAnnotation1.kt") + public void testTopLevelAnnotation1() throws Exception { + runTest("../../completion/testData/basic/common/annotations/TopLevelAnnotation1.kt"); + } + + @TestMetadata("TopLevelAnnotation2.kt") + public void testTopLevelAnnotation2() throws Exception { + runTest("../../completion/testData/basic/common/annotations/TopLevelAnnotation2.kt"); + } + + @TestMetadata("TopLevelAnnotation3.kt") + public void testTopLevelAnnotation3() throws Exception { + runTest("../../completion/testData/basic/common/annotations/TopLevelAnnotation3.kt"); + } + + @TestMetadata("TopLevelAnnotation4.kt") + public void testTopLevelAnnotation4() throws Exception { + runTest("../../completion/testData/basic/common/annotations/TopLevelAnnotation4.kt"); + } + + @TestMetadata("TopLevelAnnotationArg1.kt") + public void testTopLevelAnnotationArg1() throws Exception { + runTest("../../completion/testData/basic/common/annotations/TopLevelAnnotationArg1.kt"); + } + + @TestMetadata("TopLevelAnnotationArg2.kt") + public void testTopLevelAnnotationArg2() throws Exception { + runTest("../../completion/testData/basic/common/annotations/TopLevelAnnotationArg2.kt"); + } + + @TestMetadata("TypeAliasToAnnotation.kt") + public void testTypeAliasToAnnotation() throws Exception { + runTest("../../completion/testData/basic/common/annotations/TypeAliasToAnnotation.kt"); + } + } + + @RunWith(JUnit3RunnerWithInners.class) + @TestMetadata("../../completion/testData/basic/common/autoPopup") + public static class AutoPopup extends AbstractK2JsBasicCompletionTest { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); + } + + @TestMetadata("AutoPopupBreak.kt") + public void testAutoPopupBreak() throws Exception { + runTest("../../completion/testData/basic/common/autoPopup/AutoPopupBreak.kt"); + } + + @TestMetadata("AutoPopupThis.kt") + public void testAutoPopupThis() throws Exception { + runTest("../../completion/testData/basic/common/autoPopup/AutoPopupThis.kt"); + } + + @TestMetadata("AutopopupInFunExtensionReceiver.kt") + public void testAutopopupInFunExtensionReceiver() throws Exception { + runTest("../../completion/testData/basic/common/autoPopup/AutopopupInFunExtensionReceiver.kt"); + } + + @TestMetadata("FunInterface.kt") + public void testFunInterface() throws Exception { + runTest("../../completion/testData/basic/common/autoPopup/FunInterface.kt"); + } + + @TestMetadata("GenericExtensionFunTypeArgument.kt") + public void testGenericExtensionFunTypeArgument() throws Exception { + runTest("../../completion/testData/basic/common/autoPopup/GenericExtensionFunTypeArgument.kt"); + } + + @TestMetadata("GenericExtensionFunTypeArgument2.kt") + public void testGenericExtensionFunTypeArgument2() throws Exception { + runTest("../../completion/testData/basic/common/autoPopup/GenericExtensionFunTypeArgument2.kt"); + } + + @TestMetadata("InExtFunName.kt") + public void testInExtFunName() throws Exception { + runTest("../../completion/testData/basic/common/autoPopup/InExtFunName.kt"); + } + + @TestMetadata("InGenericExtFunName.kt") + public void testInGenericExtFunName() throws Exception { + runTest("../../completion/testData/basic/common/autoPopup/InGenericExtFunName.kt"); + } + + @TestMetadata("InValExtType.kt") + public void testInValExtType() throws Exception { + runTest("../../completion/testData/basic/common/autoPopup/InValExtType.kt"); + } + + @TestMetadata("NoAutoPopupAfterNumberLiteral.kt") + public void testNoAutoPopupAfterNumberLiteral() throws Exception { + runTest("../../completion/testData/basic/common/autoPopup/NoAutoPopupAfterNumberLiteral.kt"); + } + + @TestMetadata("NoAutoPopupInValName.kt") + public void testNoAutoPopupInValName() throws Exception { + runTest("../../completion/testData/basic/common/autoPopup/NoAutoPopupInValName.kt"); + } + + @TestMetadata("NoAutopopupInFunName.kt") + public void testNoAutopopupInFunName() throws Exception { + runTest("../../completion/testData/basic/common/autoPopup/NoAutopopupInFunName.kt"); + } + + @TestMetadata("NoAutopopupInGenericFunName.kt") + public void testNoAutopopupInGenericFunName() throws Exception { + runTest("../../completion/testData/basic/common/autoPopup/NoAutopopupInGenericFunName.kt"); + } + + @TestMetadata("NoAutopopupInGenericValName.kt") + public void testNoAutopopupInGenericValName() throws Exception { + runTest("../../completion/testData/basic/common/autoPopup/NoAutopopupInGenericValName.kt"); + } + + @TestMetadata("NoAutopopupInGenericVarName.kt") + public void testNoAutopopupInGenericVarName() throws Exception { + runTest("../../completion/testData/basic/common/autoPopup/NoAutopopupInGenericVarName.kt"); + } + + @TestMetadata("NoAutopopupInVarName.kt") + public void testNoAutopopupInVarName() throws Exception { + runTest("../../completion/testData/basic/common/autoPopup/NoAutopopupInVarName.kt"); + } + + @TestMetadata("NoSecondPressCompletionInAutoPopup.kt") + public void testNoSecondPressCompletionInAutoPopup() throws Exception { + runTest("../../completion/testData/basic/common/autoPopup/NoSecondPressCompletionInAutoPopup.kt"); + } + + @TestMetadata("OnlyScopedClassesWithoutExplicit.kt") + public void testOnlyScopedClassesWithoutExplicit() throws Exception { + runTest("../../completion/testData/basic/common/autoPopup/OnlyScopedClassesWithoutExplicit.kt"); + } + } + + @RunWith(JUnit3RunnerWithInners.class) + @TestMetadata("../../completion/testData/basic/common/backticked") + public static class Backticked extends AbstractK2JsBasicCompletionTest { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); + } + + @TestMetadata("NameWithDollars.kt") + public void testNameWithDollars() throws Exception { + runTest("../../completion/testData/basic/common/backticked/NameWithDollars.kt"); + } + + @TestMetadata("PropertyAfterBacktick1.kt") + public void testPropertyAfterBacktick1() throws Exception { + runTest("../../completion/testData/basic/common/backticked/PropertyAfterBacktick1.kt"); + } + + @TestMetadata("PropertyAfterBacktick2.kt") + public void testPropertyAfterBacktick2() throws Exception { + runTest("../../completion/testData/basic/common/backticked/PropertyAfterBacktick2.kt"); + } + } + + @RunWith(JUnit3RunnerWithInners.class) + @TestMetadata("../../completion/testData/basic/common/boldOrGrayed") + public static class BoldOrGrayed extends AbstractK2JsBasicCompletionTest { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); + } + + @TestMetadata("AfterNullable.kt") + public void testAfterNullable() throws Exception { + runTest("../../completion/testData/basic/common/boldOrGrayed/AfterNullable.kt"); + } + + @TestMetadata("AfterNullable2.kt") + public void testAfterNullable2() throws Exception { + runTest("../../completion/testData/basic/common/boldOrGrayed/AfterNullable2.kt"); + } + + @TestMetadata("AfterNullableAutoCast.kt") + public void testAfterNullableAutoCast() throws Exception { + runTest("../../completion/testData/basic/common/boldOrGrayed/AfterNullableAutoCast.kt"); + } + + @TestMetadata("AfterNullableAutoCast2.kt") + public void testAfterNullableAutoCast2() throws Exception { + runTest("../../completion/testData/basic/common/boldOrGrayed/AfterNullableAutoCast2.kt"); + } + + @TestMetadata("ImmediateExtensionMembers1.kt") + public void testImmediateExtensionMembers1() throws Exception { + runTest("../../completion/testData/basic/common/boldOrGrayed/ImmediateExtensionMembers1.kt"); + } + + @TestMetadata("ImmediateExtensionMembers2.kt") + public void testImmediateExtensionMembers2() throws Exception { + runTest("../../completion/testData/basic/common/boldOrGrayed/ImmediateExtensionMembers2.kt"); + } + + @TestMetadata("ImmediateExtensionMembers3.kt") + public void testImmediateExtensionMembers3() throws Exception { + runTest("../../completion/testData/basic/common/boldOrGrayed/ImmediateExtensionMembers3.kt"); + } + + @TestMetadata("ImmediateExtensionMembers4.kt") + public void testImmediateExtensionMembers4() throws Exception { + runTest("../../completion/testData/basic/common/boldOrGrayed/ImmediateExtensionMembers4.kt"); + } + + @TestMetadata("ImmediateExtensionMembersGeneric.kt") + public void testImmediateExtensionMembersGeneric() throws Exception { + runTest("../../completion/testData/basic/common/boldOrGrayed/ImmediateExtensionMembersGeneric.kt"); + } + + @TestMetadata("ImmediateMembers1.kt") + public void testImmediateMembers1() throws Exception { + runTest("../../completion/testData/basic/common/boldOrGrayed/ImmediateMembers1.kt"); + } + + @TestMetadata("ImmediateMembers2.kt") + public void testImmediateMembers2() throws Exception { + runTest("../../completion/testData/basic/common/boldOrGrayed/ImmediateMembers2.kt"); + } + + @TestMetadata("ImmediateMembers3.kt") + public void testImmediateMembers3() throws Exception { + runTest("../../completion/testData/basic/common/boldOrGrayed/ImmediateMembers3.kt"); + } + + @TestMetadata("ImmediateMembers4.kt") + public void testImmediateMembers4() throws Exception { + runTest("../../completion/testData/basic/common/boldOrGrayed/ImmediateMembers4.kt"); + } + + @TestMetadata("ImmediateMembers5.kt") + public void testImmediateMembers5() throws Exception { + runTest("../../completion/testData/basic/common/boldOrGrayed/ImmediateMembers5.kt"); + } + + @TestMetadata("InExtensionForNullable.kt") + public void testInExtensionForNullable() throws Exception { + runTest("../../completion/testData/basic/common/boldOrGrayed/InExtensionForNullable.kt"); + } + + @TestMetadata("KT9835.kt") + public void testKT9835() throws Exception { + runTest("../../completion/testData/basic/common/boldOrGrayed/KT9835.kt"); + } + + @TestMetadata("MemberAfterNullable.kt") + public void testMemberAfterNullable() throws Exception { + runTest("../../completion/testData/basic/common/boldOrGrayed/MemberAfterNullable.kt"); + } + + @TestMetadata("NonPredictableSmartCast.kt") + public void testNonPredictableSmartCast() throws Exception { + runTest("../../completion/testData/basic/common/boldOrGrayed/NonPredictableSmartCast.kt"); + } + + @TestMetadata("NonPredictableSmartCastWithWrongReturnType.kt") + public void testNonPredictableSmartCastWithWrongReturnType() throws Exception { + runTest("../../completion/testData/basic/common/boldOrGrayed/NonPredictableSmartCastWithWrongReturnType.kt"); + } + + @TestMetadata("SafeCallAfterNullable.kt") + public void testSafeCallAfterNullable() throws Exception { + runTest("../../completion/testData/basic/common/boldOrGrayed/SafeCallAfterNullable.kt"); + } + + @TestMetadata("TwoReceivers.kt") + public void testTwoReceivers() throws Exception { + runTest("../../completion/testData/basic/common/boldOrGrayed/TwoReceivers.kt"); + } + } + + @RunWith(JUnit3RunnerWithInners.class) + @TestMetadata("../../completion/testData/basic/common/callableReference") + public static class CallableReference extends AbstractK2JsBasicCompletionTest { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); + } + + @TestMetadata("CompanionObjectMember.kt") + public void testCompanionObjectMember() throws Exception { + runTest("../../completion/testData/basic/common/callableReference/CompanionObjectMember.kt"); + } + + @TestMetadata("EmptyQualifier.kt") + public void testEmptyQualifier() throws Exception { + runTest("../../completion/testData/basic/common/callableReference/EmptyQualifier.kt"); + } + + @TestMetadata("EmptyQualifierExtensionFun.kt") + public void testEmptyQualifierExtensionFun() throws Exception { + runTest("../../completion/testData/basic/common/callableReference/EmptyQualifierExtensionFun.kt"); + } + + @TestMetadata("EmptyQualifierInExtensionFun.kt") + public void testEmptyQualifierInExtensionFun() throws Exception { + runTest("../../completion/testData/basic/common/callableReference/EmptyQualifierInExtensionFun.kt"); + } + + @TestMetadata("EnumStaticMembers.kt") + public void testEnumStaticMembers() throws Exception { + runTest("../../completion/testData/basic/common/callableReference/EnumStaticMembers.kt"); + } + + @TestMetadata("ExpressionQualifier.kt") + public void testExpressionQualifier() throws Exception { + runTest("../../completion/testData/basic/common/callableReference/ExpressionQualifier.kt"); + } + + @TestMetadata("GenericConstructor.kt") + public void testGenericConstructor() throws Exception { + runTest("../../completion/testData/basic/common/callableReference/GenericConstructor.kt"); + } + + @TestMetadata("HigherOrderFunction.kt") + public void testHigherOrderFunction() throws Exception { + runTest("../../completion/testData/basic/common/callableReference/HigherOrderFunction.kt"); + } + + @TestMetadata("JavaSyntheticPropertyReference1.kt") + public void testJavaSyntheticPropertyReference1() throws Exception { + runTest("../../completion/testData/basic/common/callableReference/JavaSyntheticPropertyReference1.kt"); + } + + @TestMetadata("JavaSyntheticPropertyReference2.kt") + public void testJavaSyntheticPropertyReference2() throws Exception { + runTest("../../completion/testData/basic/common/callableReference/JavaSyntheticPropertyReference2.kt"); + } + + @TestMetadata("JavaSyntheticPropertyReference3.kt") + public void testJavaSyntheticPropertyReference3() throws Exception { + runTest("../../completion/testData/basic/common/callableReference/JavaSyntheticPropertyReference3.kt"); + } + + @TestMetadata("JavaSyntheticPropertyReferenceTrueNegative1.kt") + public void testJavaSyntheticPropertyReferenceTrueNegative1() throws Exception { + runTest("../../completion/testData/basic/common/callableReference/JavaSyntheticPropertyReferenceTrueNegative1.kt"); + } + + @TestMetadata("JavaSyntheticPropertyReferenceTrueNegative2.kt") + public void testJavaSyntheticPropertyReferenceTrueNegative2() throws Exception { + runTest("../../completion/testData/basic/common/callableReference/JavaSyntheticPropertyReferenceTrueNegative2.kt"); + } + + @TestMetadata("JavaSyntheticPropertyReferenceTrueNegative3.kt") + public void testJavaSyntheticPropertyReferenceTrueNegative3() throws Exception { + runTest("../../completion/testData/basic/common/callableReference/JavaSyntheticPropertyReferenceTrueNegative3.kt"); + } + + @TestMetadata("NonEmptyQualifier.kt") + public void testNonEmptyQualifier() throws Exception { + runTest("../../completion/testData/basic/common/callableReference/NonEmptyQualifier.kt"); + } + + @TestMetadata("NonEmptyQualifierWithTypeArguments.kt") + public void testNonEmptyQualifierWithTypeArguments() throws Exception { + runTest("../../completion/testData/basic/common/callableReference/NonEmptyQualifierWithTypeArguments.kt"); + } + + @TestMetadata("NonEmptyQualifierWithTypeArguments2.kt") + public void testNonEmptyQualifierWithTypeArguments2() throws Exception { + runTest("../../completion/testData/basic/common/callableReference/NonEmptyQualifierWithTypeArguments2.kt"); + } + + @TestMetadata("Unsupported.kt") + public void testUnsupported() throws Exception { + runTest("../../completion/testData/basic/common/callableReference/Unsupported.kt"); + } + } + + @RunWith(JUnit3RunnerWithInners.class) + @TestMetadata("../../completion/testData/basic/common/dslMarker") + public static class DslMarker extends AbstractK2JsBasicCompletionTest { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); + } + + @TestMetadata("2dslsInsideOtherChild.kt") + public void test2dslsInsideOtherChild() throws Exception { + runTest("../../completion/testData/basic/common/dslMarker/2dslsInsideOtherChild.kt"); + } + + @TestMetadata("2receivers.kt") + public void test2receivers() throws Exception { + runTest("../../completion/testData/basic/common/dslMarker/2receivers.kt"); + } + + @TestMetadata("child.kt") + public void testChild() throws Exception { + runTest("../../completion/testData/basic/common/dslMarker/child.kt"); + } + + @TestMetadata("compositeDsl.kt") + public void testCompositeDsl() throws Exception { + runTest("../../completion/testData/basic/common/dslMarker/compositeDsl.kt"); + } + + @TestMetadata("container.kt") + public void testContainer() throws Exception { + runTest("../../completion/testData/basic/common/dslMarker/container.kt"); + } + + @TestMetadata("noDslCompletionForNonDslReciever.kt") + public void testNoDslCompletionForNonDslReciever() throws Exception { + runTest("../../completion/testData/basic/common/dslMarker/noDslCompletionForNonDslReciever.kt"); + } + + @TestMetadata("root.kt") + public void testRoot() throws Exception { + runTest("../../completion/testData/basic/common/dslMarker/root.kt"); + } + } + + @RunWith(JUnit3RunnerWithInners.class) + @TestMetadata("../../completion/testData/basic/common/extensionDeclarations") + public static class ExtensionDeclarations extends AbstractK2JsBasicCompletionTest { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); + } + + @TestMetadata("ClassTypeParameterAsReceiver.kt") + public void testClassTypeParameterAsReceiver() throws Exception { + runTest("../../completion/testData/basic/common/extensionDeclarations/ClassTypeParameterAsReceiver.kt"); + } + + @TestMetadata("CompanionObject.kt") + public void testCompanionObject() throws Exception { + runTest("../../completion/testData/basic/common/extensionDeclarations/CompanionObject.kt"); + } + + @TestMetadata("ExtensionFunReceiver.kt") + public void testExtensionFunReceiver() throws Exception { + runTest("../../completion/testData/basic/common/extensionDeclarations/ExtensionFunReceiver.kt"); + } + + @TestMetadata("ExtensionFunReceiverForce.kt") + public void testExtensionFunReceiverForce() throws Exception { + runTest("../../completion/testData/basic/common/extensionDeclarations/ExtensionFunReceiverForce.kt"); + } + + @TestMetadata("ExtensionFunReceiverInvocationCall0.kt") + public void testExtensionFunReceiverInvocationCall0() throws Exception { + runTest("../../completion/testData/basic/common/extensionDeclarations/ExtensionFunReceiverInvocationCall0.kt"); + } + + @TestMetadata("ExtensionFunReceiverLowerCase.kt") + public void testExtensionFunReceiverLowerCase() throws Exception { + runTest("../../completion/testData/basic/common/extensionDeclarations/ExtensionFunReceiverLowerCase.kt"); + } + + @TestMetadata("ExtensionFunReceiverLowerCaseWithInvocationCall.kt") + public void testExtensionFunReceiverLowerCaseWithInvocationCall() throws Exception { + runTest("../../completion/testData/basic/common/extensionDeclarations/ExtensionFunReceiverLowerCaseWithInvocationCall.kt"); + } + + @TestMetadata("ExtensionInsideFunction.kt") + public void testExtensionInsideFunction() throws Exception { + runTest("../../completion/testData/basic/common/extensionDeclarations/ExtensionInsideFunction.kt"); + } + + @TestMetadata("ExtensionPropReceiver.kt") + public void testExtensionPropReceiver() throws Exception { + runTest("../../completion/testData/basic/common/extensionDeclarations/ExtensionPropReceiver.kt"); + } + + @TestMetadata("ExtensionPropReceiverLowerCase.kt") + public void testExtensionPropReceiverLowerCase() throws Exception { + runTest("../../completion/testData/basic/common/extensionDeclarations/ExtensionPropReceiverLowerCase.kt"); + } + + @TestMetadata("ExtensionPropReceiverLowerCaseWithInvocationCall.kt") + public void testExtensionPropReceiverLowerCaseWithInvocationCall() throws Exception { + runTest("../../completion/testData/basic/common/extensionDeclarations/ExtensionPropReceiverLowerCaseWithInvocationCall.kt"); + } + + @TestMetadata("FunctionTypeParameterAsReceiver1.kt") + public void testFunctionTypeParameterAsReceiver1() throws Exception { + runTest("../../completion/testData/basic/common/extensionDeclarations/FunctionTypeParameterAsReceiver1.kt"); + } + + @TestMetadata("FunctionTypeParameterAsReceiver2.kt") + public void testFunctionTypeParameterAsReceiver2() throws Exception { + runTest("../../completion/testData/basic/common/extensionDeclarations/FunctionTypeParameterAsReceiver2.kt"); + } + + @TestMetadata("GenericExtensionFunReceiver1.kt") + public void testGenericExtensionFunReceiver1() throws Exception { + runTest("../../completion/testData/basic/common/extensionDeclarations/GenericExtensionFunReceiver1.kt"); + } + + @TestMetadata("GenericExtensionFunReceiver2.kt") + public void testGenericExtensionFunReceiver2() throws Exception { + runTest("../../completion/testData/basic/common/extensionDeclarations/GenericExtensionFunReceiver2.kt"); + } + + @TestMetadata("NestedClassName1.kt") + public void testNestedClassName1() throws Exception { + runTest("../../completion/testData/basic/common/extensionDeclarations/NestedClassName1.kt"); + } + + @TestMetadata("NestedClassName2.kt") + public void testNestedClassName2() throws Exception { + runTest("../../completion/testData/basic/common/extensionDeclarations/NestedClassName2.kt"); + } + + @TestMetadata("NestedClassNameLowerCase.kt") + public void testNestedClassNameLowerCase() throws Exception { + runTest("../../completion/testData/basic/common/extensionDeclarations/NestedClassNameLowerCase.kt"); + } + } + + @RunWith(JUnit3RunnerWithInners.class) + @TestMetadata("../../completion/testData/basic/common/extensionFunctionTypeValues") + public static class ExtensionFunctionTypeValues extends AbstractK2JsBasicCompletionTest { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); + } + + @TestMetadata("ImplicitReceiver.kt") + public void testImplicitReceiver() throws Exception { + runTest("../../completion/testData/basic/common/extensionFunctionTypeValues/ImplicitReceiver.kt"); + } + + @TestMetadata("Property.kt") + public void testProperty() throws Exception { + runTest("../../completion/testData/basic/common/extensionFunctionTypeValues/Property.kt"); + } + + @TestMetadata("SafeCall.kt") + public void testSafeCall() throws Exception { + runTest("../../completion/testData/basic/common/extensionFunctionTypeValues/SafeCall.kt"); + } + + @TestMetadata("Simple.kt") + public void testSimple() throws Exception { + runTest("../../completion/testData/basic/common/extensionFunctionTypeValues/Simple.kt"); + } + + @TestMetadata("SmartCast.kt") + public void testSmartCast() throws Exception { + runTest("../../completion/testData/basic/common/extensionFunctionTypeValues/SmartCast.kt"); + } + + @TestMetadata("TypeAliasParameter.kt") + public void testTypeAliasParameter() throws Exception { + runTest("../../completion/testData/basic/common/extensionFunctionTypeValues/TypeAliasParameter.kt"); + } + } + + @RunWith(JUnit3RunnerWithInners.class) + @TestMetadata("../../completion/testData/basic/common/extensionMethodInObject") + public static class ExtensionMethodInObject extends AbstractK2JsBasicCompletionTest { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); + } + + @TestMetadata("CompanionObjectExplicitReceiver.kt") + public void testCompanionObjectExplicitReceiver() throws Exception { + runTest("../../completion/testData/basic/common/extensionMethodInObject/CompanionObjectExplicitReceiver.kt"); + } + + @TestMetadata("CompanionObjectExplicitReceiverInfixExtension.kt") + public void testCompanionObjectExplicitReceiverInfixExtension() throws Exception { + runTest("../../completion/testData/basic/common/extensionMethodInObject/CompanionObjectExplicitReceiverInfixExtension.kt"); + } + + @TestMetadata("CompanionObjectExplicitReceiverNoPrefix.kt") + public void testCompanionObjectExplicitReceiverNoPrefix() throws Exception { + runTest("../../completion/testData/basic/common/extensionMethodInObject/CompanionObjectExplicitReceiverNoPrefix.kt"); + } + + @TestMetadata("CompanionObjectExplicitReceiverSafeAccess.kt") + public void testCompanionObjectExplicitReceiverSafeAccess() throws Exception { + runTest("../../completion/testData/basic/common/extensionMethodInObject/CompanionObjectExplicitReceiverSafeAccess.kt"); + } + + @TestMetadata("CompanionObjectImplicitReceiver.kt") + public void testCompanionObjectImplicitReceiver() throws Exception { + runTest("../../completion/testData/basic/common/extensionMethodInObject/CompanionObjectImplicitReceiver.kt"); + } + + @TestMetadata("CorrectTypeExplicitReceiver.kt") + public void testCorrectTypeExplicitReceiver() throws Exception { + runTest("../../completion/testData/basic/common/extensionMethodInObject/CorrectTypeExplicitReceiver.kt"); + } + + @TestMetadata("CorrectTypeImplicitReceiver.kt") + public void testCorrectTypeImplicitReceiver() throws Exception { + runTest("../../completion/testData/basic/common/extensionMethodInObject/CorrectTypeImplicitReceiver.kt"); + } + + @TestMetadata("InheritedExtensionConcreteType.kt") + public void testInheritedExtensionConcreteType() throws Exception { + runTest("../../completion/testData/basic/common/extensionMethodInObject/InheritedExtensionConcreteType.kt"); + } + + @TestMetadata("InheritedExtensionDeepInheritance.kt") + public void testInheritedExtensionDeepInheritance() throws Exception { + runTest("../../completion/testData/basic/common/extensionMethodInObject/InheritedExtensionDeepInheritance.kt"); + } + + @TestMetadata("InheritedExtensionGenericType.kt") + public void testInheritedExtensionGenericType() throws Exception { + runTest("../../completion/testData/basic/common/extensionMethodInObject/InheritedExtensionGenericType.kt"); + } + + @TestMetadata("InheritedExtensionGenericTypeConstraint.kt") + public void testInheritedExtensionGenericTypeConstraint() throws Exception { + runTest("../../completion/testData/basic/common/extensionMethodInObject/InheritedExtensionGenericTypeConstraint.kt"); + } + + @TestMetadata("KTIJ17933.kt") + public void testKTIJ17933() throws Exception { + runTest("../../completion/testData/basic/common/extensionMethodInObject/KTIJ17933.kt"); + } + + @TestMetadata("KTIJ19149.kt") + public void testKTIJ19149() throws Exception { + runTest("../../completion/testData/basic/common/extensionMethodInObject/KTIJ19149.kt"); + } + + @TestMetadata("MultipleImplicitReceivers.kt") + public void testMultipleImplicitReceivers() throws Exception { + runTest("../../completion/testData/basic/common/extensionMethodInObject/MultipleImplicitReceivers.kt"); + } + + @TestMetadata("ObjectExplicitReceiver.kt") + public void testObjectExplicitReceiver() throws Exception { + runTest("../../completion/testData/basic/common/extensionMethodInObject/ObjectExplicitReceiver.kt"); + } + + @TestMetadata("ObjectImplicitReceiver.kt") + public void testObjectImplicitReceiver() throws Exception { + runTest("../../completion/testData/basic/common/extensionMethodInObject/ObjectImplicitReceiver.kt"); + } + + @TestMetadata("OverridenExtensionsInObject.kt") + public void testOverridenExtensionsInObject() throws Exception { + runTest("../../completion/testData/basic/common/extensionMethodInObject/OverridenExtensionsInObject.kt"); + } + } + + @RunWith(JUnit3RunnerWithInners.class) + @TestMetadata("../../completion/testData/basic/common/extensions") + public static class Extensions extends AbstractK2JsBasicCompletionTest { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); + } + + @TestMetadata("ComplexCapture.kt") + public void testComplexCapture() throws Exception { + runTest("../../completion/testData/basic/common/extensions/ComplexCapture.kt"); + } + + @TestMetadata("ComplexCapture2.kt") + public void testComplexCapture2() throws Exception { + runTest("../../completion/testData/basic/common/extensions/ComplexCapture2.kt"); + } + + @TestMetadata("ContextReceiverType.kt") + public void testContextReceiverType() throws Exception { + runTest("../../completion/testData/basic/common/extensions/ContextReceiverType.kt"); + } + + @TestMetadata("ContextReceiverType2.kt") + public void testContextReceiverType2() throws Exception { + runTest("../../completion/testData/basic/common/extensions/ContextReceiverType2.kt"); + } + + @TestMetadata("ExtensionInExtendedClass.kt") + public void testExtensionInExtendedClass() throws Exception { + runTest("../../completion/testData/basic/common/extensions/ExtensionInExtendedClass.kt"); + } + + @TestMetadata("ExtensionInExtendedClassThis.kt") + public void testExtensionInExtendedClassThis() throws Exception { + runTest("../../completion/testData/basic/common/extensions/ExtensionInExtendedClassThis.kt"); + } + + @TestMetadata("ExtensionInExtension.kt") + public void testExtensionInExtension() throws Exception { + runTest("../../completion/testData/basic/common/extensions/ExtensionInExtension.kt"); + } + + @TestMetadata("ExtensionInExtensionThis.kt") + public void testExtensionInExtensionThis() throws Exception { + runTest("../../completion/testData/basic/common/extensions/ExtensionInExtensionThis.kt"); + } + + @TestMetadata("ExtensionOnFQObject.kt") + public void testExtensionOnFQObject() throws Exception { + runTest("../../completion/testData/basic/common/extensions/ExtensionOnFQObject.kt"); + } + + @TestMetadata("ExtensionOnNestedClassObject.kt") + public void testExtensionOnNestedClassObject() throws Exception { + runTest("../../completion/testData/basic/common/extensions/ExtensionOnNestedClassObject.kt"); + } + + @TestMetadata("ExtensionWithStubType.kt") + public void testExtensionWithStubType() throws Exception { + runTest("../../completion/testData/basic/common/extensions/ExtensionWithStubType.kt"); + } + + @TestMetadata("ExtensionWithUninferredType.kt") + public void testExtensionWithUninferredType() throws Exception { + runTest("../../completion/testData/basic/common/extensions/ExtensionWithUninferredType.kt"); + } + + @TestMetadata("Extensions.kt") + public void testExtensions() throws Exception { + runTest("../../completion/testData/basic/common/extensions/Extensions.kt"); + } + + @TestMetadata("InvalidTypeParameters.kt") + public void testInvalidTypeParameters() throws Exception { + runTest("../../completion/testData/basic/common/extensions/InvalidTypeParameters.kt"); + } + + @TestMetadata("IrrelevantExtension.kt") + public void testIrrelevantExtension() throws Exception { + runTest("../../completion/testData/basic/common/extensions/IrrelevantExtension.kt"); + } + + @TestMetadata("JavaTypeExtension.kt") + public void testJavaTypeExtension() throws Exception { + runTest("../../completion/testData/basic/common/extensions/JavaTypeExtension.kt"); + } + + @TestMetadata("KotlinGenericTypeExtension.kt") + public void testKotlinGenericTypeExtension() throws Exception { + runTest("../../completion/testData/basic/common/extensions/KotlinGenericTypeExtension.kt"); + } + + @TestMetadata("KotlinTypeExtension.kt") + public void testKotlinTypeExtension() throws Exception { + runTest("../../completion/testData/basic/common/extensions/KotlinTypeExtension.kt"); + } + + @TestMetadata("MemberExtensionFromWith.kt") + public void testMemberExtensionFromWith() throws Exception { + runTest("../../completion/testData/basic/common/extensions/MemberExtensionFromWith.kt"); + } + + @TestMetadata("MemberExtensionWithoutExplicitReceiver.kt") + public void testMemberExtensionWithoutExplicitReceiver() throws Exception { + runTest("../../completion/testData/basic/common/extensions/MemberExtensionWithoutExplicitReceiver.kt"); + } + + @TestMetadata("MemberExtensionsFromMemberExtension.kt") + public void testMemberExtensionsFromMemberExtension() throws Exception { + runTest("../../completion/testData/basic/common/extensions/MemberExtensionsFromMemberExtension.kt"); + } + + @TestMetadata("NoDuplicatedMethodForSmartCast.kt") + public void testNoDuplicatedMethodForSmartCast() throws Exception { + runTest("../../completion/testData/basic/common/extensions/NoDuplicatedMethodForSmartCast.kt"); + } + + @TestMetadata("NoExtensionFromOuter.kt") + public void testNoExtensionFromOuter() throws Exception { + runTest("../../completion/testData/basic/common/extensions/NoExtensionFromOuter.kt"); + } + + @TestMetadata("NoMemberExtensionsFromCompanionObject.kt") + public void testNoMemberExtensionsFromCompanionObject() throws Exception { + runTest("../../completion/testData/basic/common/extensions/NoMemberExtensionsFromCompanionObject.kt"); + } + + @TestMetadata("ParametrizedExpectedType.kt") + public void testParametrizedExpectedType() throws Exception { + runTest("../../completion/testData/basic/common/extensions/ParametrizedExpectedType.kt"); + } + + @TestMetadata("regularFunctionVsFunctionWithReceiver.kt") + public void testRegularFunctionVsFunctionWithReceiver() throws Exception { + runTest("../../completion/testData/basic/common/extensions/regularFunctionVsFunctionWithReceiver.kt"); + } + + @TestMetadata("runCatchingInTheScopeWithReceiver.kt") + public void testRunCatchingInTheScopeWithReceiver() throws Exception { + runTest("../../completion/testData/basic/common/extensions/runCatchingInTheScopeWithReceiver.kt"); + } + + @TestMetadata("runCatchingWithoutScope.kt") + public void testRunCatchingWithoutScope() throws Exception { + runTest("../../completion/testData/basic/common/extensions/runCatchingWithoutScope.kt"); + } + + @TestMetadata("runCatchingWithoutScopeK2.kt") + public void testRunCatchingWithoutScopeK2() throws Exception { + runTest("../../completion/testData/basic/common/extensions/runCatchingWithoutScopeK2.kt"); + } + + @TestMetadata("StarTypeArg.kt") + public void testStarTypeArg() throws Exception { + runTest("../../completion/testData/basic/common/extensions/StarTypeArg.kt"); + } + + @TestMetadata("WrongExplicitReceiver.kt") + public void testWrongExplicitReceiver() throws Exception { + runTest("../../completion/testData/basic/common/extensions/WrongExplicitReceiver.kt"); + } + + @TestMetadata("WrongImplicitReceiver.kt") + public void testWrongImplicitReceiver() throws Exception { + runTest("../../completion/testData/basic/common/extensions/WrongImplicitReceiver.kt"); + } + } + + @RunWith(JUnit3RunnerWithInners.class) + @TestMetadata("../../completion/testData/basic/common/fromSmart") + public static class FromSmart extends AbstractK2JsBasicCompletionTest { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); + } + + @TestMetadata("AfterAs.kt") + public void testAfterAs() throws Exception { + runTest("../../completion/testData/basic/common/fromSmart/AfterAs.kt"); + } + + @TestMetadata("AfterAsNoDuplicates.kt") + public void testAfterAsNoDuplicates() throws Exception { + runTest("../../completion/testData/basic/common/fromSmart/AfterAsNoDuplicates.kt"); + } + + @TestMetadata("ArrayLiteralAnnotationConstructorAsDefaultValueForArray.kt") + public void testArrayLiteralAnnotationConstructorAsDefaultValueForArray() throws Exception { + runTest("../../completion/testData/basic/common/fromSmart/ArrayLiteralAnnotationConstructorAsDefaultValueForArray.kt"); + } + + @TestMetadata("ArrayLiteralAnnotationConstructorAsDefaultValueForVararg.kt") + public void testArrayLiteralAnnotationConstructorAsDefaultValueForVararg() throws Exception { + runTest("../../completion/testData/basic/common/fromSmart/ArrayLiteralAnnotationConstructorAsDefaultValueForVararg.kt"); + } + + @TestMetadata("ArrayLiteralAnnotationUseForArray.kt") + public void testArrayLiteralAnnotationUseForArray() throws Exception { + runTest("../../completion/testData/basic/common/fromSmart/ArrayLiteralAnnotationUseForArray.kt"); + } + + @TestMetadata("ArrayLiteralAnnotationUseForVararg.kt") + public void testArrayLiteralAnnotationUseForVararg() throws Exception { + runTest("../../completion/testData/basic/common/fromSmart/ArrayLiteralAnnotationUseForVararg.kt"); + } + + @TestMetadata("CustomAnnotation.kt") + public void testCustomAnnotation() throws Exception { + runTest("../../completion/testData/basic/common/fromSmart/CustomAnnotation.kt"); + } + + @TestMetadata("EnumEntries.kt") + public void testEnumEntries() throws Exception { + runTest("../../completion/testData/basic/common/fromSmart/EnumEntries.kt"); + } + + @TestMetadata("MultipleArgs.kt") + public void testMultipleArgs() throws Exception { + runTest("../../completion/testData/basic/common/fromSmart/MultipleArgs.kt"); + } + + @TestMetadata("PropertyDelegate.kt") + public void testPropertyDelegate() throws Exception { + runTest("../../completion/testData/basic/common/fromSmart/PropertyDelegate.kt"); + } + + @TestMetadata("WhenByEnum.kt") + public void testWhenByEnum() throws Exception { + runTest("../../completion/testData/basic/common/fromSmart/WhenByEnum.kt"); + } + } + + @RunWith(JUnit3RunnerWithInners.class) + @TestMetadata("../../completion/testData/basic/common/fromUnresolvedNames") + public static class FromUnresolvedNames extends AbstractK2JsBasicCompletionTest { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); + } + + @TestMetadata("ExtensionFunction.kt") + public void testExtensionFunction() throws Exception { + runTest("../../completion/testData/basic/common/fromUnresolvedNames/ExtensionFunction.kt"); + } + + @TestMetadata("ExtensionProperty.kt") + public void testExtensionProperty() throws Exception { + runTest("../../completion/testData/basic/common/fromUnresolvedNames/ExtensionProperty.kt"); + } + + @TestMetadata("FunctionInCompanionObject.kt") + public void testFunctionInCompanionObject() throws Exception { + runTest("../../completion/testData/basic/common/fromUnresolvedNames/FunctionInCompanionObject.kt"); + } + + @TestMetadata("LocalVal.kt") + public void testLocalVal() throws Exception { + runTest("../../completion/testData/basic/common/fromUnresolvedNames/LocalVal.kt"); + } + + @TestMetadata("MemberFunction.kt") + public void testMemberFunction() throws Exception { + runTest("../../completion/testData/basic/common/fromUnresolvedNames/MemberFunction.kt"); + } + + @TestMetadata("MemberFunction2.kt") + public void testMemberFunction2() throws Exception { + runTest("../../completion/testData/basic/common/fromUnresolvedNames/MemberFunction2.kt"); + } + + @TestMetadata("MemberProperty.kt") + public void testMemberProperty() throws Exception { + runTest("../../completion/testData/basic/common/fromUnresolvedNames/MemberProperty.kt"); + } + + @TestMetadata("MemberProperty2.kt") + public void testMemberProperty2() throws Exception { + runTest("../../completion/testData/basic/common/fromUnresolvedNames/MemberProperty2.kt"); + } + + @TestMetadata("NotForExtensionFunction.kt") + public void testNotForExtensionFunction() throws Exception { + runTest("../../completion/testData/basic/common/fromUnresolvedNames/NotForExtensionFunction.kt"); + } + + @TestMetadata("Parameter.kt") + public void testParameter() throws Exception { + runTest("../../completion/testData/basic/common/fromUnresolvedNames/Parameter.kt"); + } + + @TestMetadata("TopLevelClass.kt") + public void testTopLevelClass() throws Exception { + runTest("../../completion/testData/basic/common/fromUnresolvedNames/TopLevelClass.kt"); + } + + @TestMetadata("TopLevelFunction.kt") + public void testTopLevelFunction() throws Exception { + runTest("../../completion/testData/basic/common/fromUnresolvedNames/TopLevelFunction.kt"); + } + + @TestMetadata("TopLevelInterface.kt") + public void testTopLevelInterface() throws Exception { + runTest("../../completion/testData/basic/common/fromUnresolvedNames/TopLevelInterface.kt"); + } + + @TestMetadata("TopLevelObject.kt") + public void testTopLevelObject() throws Exception { + runTest("../../completion/testData/basic/common/fromUnresolvedNames/TopLevelObject.kt"); + } + } + + @RunWith(JUnit3RunnerWithInners.class) + @TestMetadata("../../completion/testData/basic/common/getOperator") + public static class GetOperator extends AbstractK2JsBasicCompletionTest { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); + } + + @TestMetadata("Extension.kt") + public void testExtension() throws Exception { + runTest("../../completion/testData/basic/common/getOperator/Extension.kt"); + } + + @TestMetadata("NotForSafeCall.kt") + public void testNotForSafeCall() throws Exception { + runTest("../../completion/testData/basic/common/getOperator/NotForSafeCall.kt"); + } + + @TestMetadata("Simple.kt") + public void testSimple() throws Exception { + runTest("../../completion/testData/basic/common/getOperator/Simple.kt"); + } + } + + @RunWith(JUnit3RunnerWithInners.class) + @TestMetadata("../../completion/testData/basic/common/highOrderFunctions") + public static class HighOrderFunctions extends AbstractK2JsBasicCompletionTest { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); + } + + @TestMetadata("ContextVariables1.kt") + public void testContextVariables1() throws Exception { + runTest("../../completion/testData/basic/common/highOrderFunctions/ContextVariables1.kt"); + } + + @TestMetadata("ContextVariables2.kt") + public void testContextVariables2() throws Exception { + runTest("../../completion/testData/basic/common/highOrderFunctions/ContextVariables2.kt"); + } + + @TestMetadata("ContextVariables3.kt") + public void testContextVariables3() throws Exception { + runTest("../../completion/testData/basic/common/highOrderFunctions/ContextVariables3.kt"); + } + + @TestMetadata("ContextVariablesFilter.kt") + public void testContextVariablesFilter() throws Exception { + runTest("../../completion/testData/basic/common/highOrderFunctions/ContextVariablesFilter.kt"); + } + + @TestMetadata("ContextVariablesMap.kt") + public void testContextVariablesMap() throws Exception { + runTest("../../completion/testData/basic/common/highOrderFunctions/ContextVariablesMap.kt"); + } + + @TestMetadata("ContextVariablesShadowing.kt") + public void testContextVariablesShadowing() throws Exception { + runTest("../../completion/testData/basic/common/highOrderFunctions/ContextVariablesShadowing.kt"); + } + + @TestMetadata("HigherOrderFunction1.kt") + public void testHigherOrderFunction1() throws Exception { + runTest("../../completion/testData/basic/common/highOrderFunctions/HigherOrderFunction1.kt"); + } + + @TestMetadata("HigherOrderFunction2.kt") + public void testHigherOrderFunction2() throws Exception { + runTest("../../completion/testData/basic/common/highOrderFunctions/HigherOrderFunction2.kt"); + } + + @TestMetadata("OptionalParameters.kt") + public void testOptionalParameters() throws Exception { + runTest("../../completion/testData/basic/common/highOrderFunctions/OptionalParameters.kt"); + } + + @TestMetadata("SuspendFunction.kt") + public void testSuspendFunction() throws Exception { + runTest("../../completion/testData/basic/common/highOrderFunctions/SuspendFunction.kt"); + } + } + + @RunWith(JUnit3RunnerWithInners.class) + @TestMetadata("../../completion/testData/basic/common/inInitBlock") + public static class InInitBlock extends AbstractK2JsBasicCompletionTest { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); + } + + @TestMetadata("localVariable.kt") + public void testLocalVariable() throws Exception { + runTest("../../completion/testData/basic/common/inInitBlock/localVariable.kt"); + } + + @TestMetadata("property.kt") + public void testProperty() throws Exception { + runTest("../../completion/testData/basic/common/inInitBlock/property.kt"); + } + } + + @RunWith(JUnit3RunnerWithInners.class) + @TestMetadata("../../completion/testData/basic/common/inStringLiterals") + public static class InStringLiterals extends AbstractK2JsBasicCompletionTest { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); + } + + @TestMetadata("EA76497.kt") + public void testEA76497() throws Exception { + runTest("../../completion/testData/basic/common/inStringLiterals/EA76497.kt"); + } + + @TestMetadata("StringTemplate1.kt") + public void testStringTemplate1() throws Exception { + runTest("../../completion/testData/basic/common/inStringLiterals/StringTemplate1.kt"); + } + + @TestMetadata("StringTemplate2.kt") + public void testStringTemplate2() throws Exception { + runTest("../../completion/testData/basic/common/inStringLiterals/StringTemplate2.kt"); + } + + @TestMetadata("StringTemplateDot.kt") + public void testStringTemplateDot() throws Exception { + runTest("../../completion/testData/basic/common/inStringLiterals/StringTemplateDot.kt"); + } + + @TestMetadata("StringTemplateDot2.kt") + public void testStringTemplateDot2() throws Exception { + runTest("../../completion/testData/basic/common/inStringLiterals/StringTemplateDot2.kt"); + } + + @TestMetadata("StringTemplateDotSomething.kt") + public void testStringTemplateDotSomething() throws Exception { + runTest("../../completion/testData/basic/common/inStringLiterals/StringTemplateDotSomething.kt"); + } + } + + @RunWith(JUnit3RunnerWithInners.class) + @TestMetadata("../../completion/testData/basic/common/inSuperTypes") + public static class InSuperTypes extends AbstractK2JsBasicCompletionTest { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); + } + + @TestMetadata("baseClass.kt") + public void testBaseClass() throws Exception { + runTest("../../completion/testData/basic/common/inSuperTypes/baseClass.kt"); + } + + @TestMetadata("baseClassWithPrefix.kt") + public void testBaseClassWithPrefix() throws Exception { + runTest("../../completion/testData/basic/common/inSuperTypes/baseClassWithPrefix.kt"); + } + + @TestMetadata("typeParameter.kt") + public void testTypeParameter() throws Exception { + runTest("../../completion/testData/basic/common/inSuperTypes/typeParameter.kt"); + } + } + + @RunWith(JUnit3RunnerWithInners.class) + @TestMetadata("../../completion/testData/basic/common/inTypeAlias") + public static class InTypeAlias extends AbstractK2JsBasicCompletionTest { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); + } + + @TestMetadata("member.kt") + public void testMember() throws Exception { + runTest("../../completion/testData/basic/common/inTypeAlias/member.kt"); + } + + @TestMetadata("topLevel.kt") + public void testTopLevel() throws Exception { + runTest("../../completion/testData/basic/common/inTypeAlias/topLevel.kt"); + } + } + + @RunWith(JUnit3RunnerWithInners.class) + @TestMetadata("../../completion/testData/basic/common/lambdaAndTypeParams") + public static class LambdaAndTypeParams extends AbstractK2JsBasicCompletionTest { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); + } + + @TestMetadata("LambdaAndErrorType.kt") + public void testLambdaAndErrorType() throws Exception { + runTest("../../completion/testData/basic/common/lambdaAndTypeParams/LambdaAndErrorType.kt"); + } + + @TestMetadata("LambdaAndNothingCommon.kt") + public void testLambdaAndNothingCommon() throws Exception { + runTest("../../completion/testData/basic/common/lambdaAndTypeParams/LambdaAndNothingCommon.kt"); + } + + @TestMetadata("LambdaAndNothingList.kt") + public void testLambdaAndNothingList() throws Exception { + runTest("../../completion/testData/basic/common/lambdaAndTypeParams/LambdaAndNothingList.kt"); + } + + @TestMetadata("LambdaAndNothingMap.kt") + public void testLambdaAndNothingMap() throws Exception { + runTest("../../completion/testData/basic/common/lambdaAndTypeParams/LambdaAndNothingMap.kt"); + } + + @TestMetadata("LambdaAndTypeVariable.kt") + public void testLambdaAndTypeVariable() throws Exception { + runTest("../../completion/testData/basic/common/lambdaAndTypeParams/LambdaAndTypeVariable.kt"); + } + } + + @RunWith(JUnit3RunnerWithInners.class) + @TestMetadata("../../completion/testData/basic/common/lambdaSignature") + public static class LambdaSignature extends AbstractK2JsBasicCompletionTest { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); + } + + @TestMetadata("ParameterName1.kt") + public void testParameterName1() throws Exception { + runTest("../../completion/testData/basic/common/lambdaSignature/ParameterName1.kt"); + } + + @TestMetadata("ParameterName2.kt") + public void testParameterName2() throws Exception { + runTest("../../completion/testData/basic/common/lambdaSignature/ParameterName2.kt"); + } + + @TestMetadata("ParameterName3.kt") + public void testParameterName3() throws Exception { + runTest("../../completion/testData/basic/common/lambdaSignature/ParameterName3.kt"); + } + + @TestMetadata("ParameterName4.kt") + public void testParameterName4() throws Exception { + runTest("../../completion/testData/basic/common/lambdaSignature/ParameterName4.kt"); + } + + @TestMetadata("ParameterName5.kt") + public void testParameterName5() throws Exception { + runTest("../../completion/testData/basic/common/lambdaSignature/ParameterName5.kt"); + } + + @TestMetadata("ParameterType1.kt") + public void testParameterType1() throws Exception { + runTest("../../completion/testData/basic/common/lambdaSignature/ParameterType1.kt"); + } + + @TestMetadata("ParameterType2.kt") + public void testParameterType2() throws Exception { + runTest("../../completion/testData/basic/common/lambdaSignature/ParameterType2.kt"); + } + + @TestMetadata("ParameterType3.kt") + public void testParameterType3() throws Exception { + runTest("../../completion/testData/basic/common/lambdaSignature/ParameterType3.kt"); + } + + @TestMetadata("ParameterType4.kt") + public void testParameterType4() throws Exception { + runTest("../../completion/testData/basic/common/lambdaSignature/ParameterType4.kt"); + } + + @TestMetadata("ParameterType5.kt") + public void testParameterType5() throws Exception { + runTest("../../completion/testData/basic/common/lambdaSignature/ParameterType5.kt"); + } + } + + @RunWith(JUnit3RunnerWithInners.class) + @TestMetadata("../../completion/testData/basic/common/namedArguments") + public static class NamedArguments extends AbstractK2JsBasicCompletionTest { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); + } + + @TestMetadata("AfterBrace.kt") + public void testAfterBrace() throws Exception { + runTest("../../completion/testData/basic/common/namedArguments/AfterBrace.kt"); + } + + @TestMetadata("AfterComma.kt") + public void testAfterComma() throws Exception { + runTest("../../completion/testData/basic/common/namedArguments/AfterComma.kt"); + } + + @TestMetadata("AfterVararg.kt") + public void testAfterVararg() throws Exception { + runTest("../../completion/testData/basic/common/namedArguments/AfterVararg.kt"); + } + + @TestMetadata("ArgumentWithDefaultNotExpected.kt") + public void testArgumentWithDefaultNotExpected() throws Exception { + runTest("../../completion/testData/basic/common/namedArguments/ArgumentWithDefaultNotExpected.kt"); + } + + @TestMetadata("ArgumentWithDefaultNotExpected2.kt") + public void testArgumentWithDefaultNotExpected2() throws Exception { + runTest("../../completion/testData/basic/common/namedArguments/ArgumentWithDefaultNotExpected2.kt"); + } + + @TestMetadata("ArgumentWithDefaultNotExpected3.kt") + public void testArgumentWithDefaultNotExpected3() throws Exception { + runTest("../../completion/testData/basic/common/namedArguments/ArgumentWithDefaultNotExpected3.kt"); + } + + @TestMetadata("BooleanArgumentExpected.kt") + public void testBooleanArgumentExpected() throws Exception { + runTest("../../completion/testData/basic/common/namedArguments/BooleanArgumentExpected.kt"); + } + + @TestMetadata("CompactTypeNames.kt") + public void testCompactTypeNames() throws Exception { + runTest("../../completion/testData/basic/common/namedArguments/CompactTypeNames.kt"); + } + + @TestMetadata("ForEmptyParametersFunction.kt") + public void testForEmptyParametersFunction() throws Exception { + runTest("../../completion/testData/basic/common/namedArguments/ForEmptyParametersFunction.kt"); + } + + @TestMetadata("InParameterExpression.kt") + public void testInParameterExpression() throws Exception { + runTest("../../completion/testData/basic/common/namedArguments/InParameterExpression.kt"); + } + + @TestMetadata("NamedArgumentOnIncorrectPosition.kt") + public void testNamedArgumentOnIncorrectPosition() throws Exception { + runTest("../../completion/testData/basic/common/namedArguments/NamedArgumentOnIncorrectPosition.kt"); + } + + @TestMetadata("NamedArgumentOnItsOwnPosition.kt") + public void testNamedArgumentOnItsOwnPosition() throws Exception { + runTest("../../completion/testData/basic/common/namedArguments/NamedArgumentOnItsOwnPosition.kt"); + } + + @TestMetadata("NamedArgumentOnItsOwnPosition2.kt") + public void testNamedArgumentOnItsOwnPosition2() throws Exception { + runTest("../../completion/testData/basic/common/namedArguments/NamedArgumentOnItsOwnPosition2.kt"); + } + + @TestMetadata("NamedArgumentsFromOverloads.kt") + public void testNamedArgumentsFromOverloads() throws Exception { + runTest("../../completion/testData/basic/common/namedArguments/NamedArgumentsFromOverloads.kt"); + } + + @TestMetadata("NamedArgumentsFromOverloads2.kt") + public void testNamedArgumentsFromOverloads2() throws Exception { + runTest("../../completion/testData/basic/common/namedArguments/NamedArgumentsFromOverloads2.kt"); + } + + @TestMetadata("NoAlreadyUsedParameters.kt") + public void testNoAlreadyUsedParameters() throws Exception { + runTest("../../completion/testData/basic/common/namedArguments/NoAlreadyUsedParameters.kt"); + } + + @TestMetadata("NoParamsFromUnapplicableOverload.kt") + public void testNoParamsFromUnapplicableOverload() throws Exception { + runTest("../../completion/testData/basic/common/namedArguments/NoParamsFromUnapplicableOverload.kt"); + } + + @TestMetadata("NotAfterDot.kt") + public void testNotAfterDot() throws Exception { + runTest("../../completion/testData/basic/common/namedArguments/NotAfterDot.kt"); + } + + @TestMetadata("NotInBrackets.kt") + public void testNotInBrackets() throws Exception { + runTest("../../completion/testData/basic/common/namedArguments/NotInBrackets.kt"); + } + + @TestMetadata("NotInElse.kt") + public void testNotInElse() throws Exception { + runTest("../../completion/testData/basic/common/namedArguments/NotInElse.kt"); + } + + @TestMetadata("NotOnlyNamedArguments.kt") + public void testNotOnlyNamedArguments() throws Exception { + runTest("../../completion/testData/basic/common/namedArguments/NotOnlyNamedArguments.kt"); + } + + @TestMetadata("NotOnlyNamedArguments2.kt") + public void testNotOnlyNamedArguments2() throws Exception { + runTest("../../completion/testData/basic/common/namedArguments/NotOnlyNamedArguments2.kt"); + } + + @TestMetadata("OfConstructor.kt") + public void testOfConstructor() throws Exception { + runTest("../../completion/testData/basic/common/namedArguments/OfConstructor.kt"); + } + + @TestMetadata("OnlyNamedArguments.kt") + public void testOnlyNamedArguments() throws Exception { + runTest("../../completion/testData/basic/common/namedArguments/OnlyNamedArguments.kt"); + } + + @TestMetadata("ParamsFromSingleUnapplicableOverload.kt") + public void testParamsFromSingleUnapplicableOverload() throws Exception { + runTest("../../completion/testData/basic/common/namedArguments/ParamsFromSingleUnapplicableOverload.kt"); + } + + @TestMetadata("PrivateFunction.kt") + public void testPrivateFunction() throws Exception { + runTest("../../completion/testData/basic/common/namedArguments/PrivateFunction.kt"); + } + + @TestMetadata("TypeAliasParameter.kt") + public void testTypeAliasParameter() throws Exception { + runTest("../../completion/testData/basic/common/namedArguments/TypeAliasParameter.kt"); + } + + @TestMetadata("WithParameterExpression.kt") + public void testWithParameterExpression() throws Exception { + runTest("../../completion/testData/basic/common/namedArguments/WithParameterExpression.kt"); + } + } + + @RunWith(JUnit3RunnerWithInners.class) + @TestMetadata("../../completion/testData/basic/common/noCompletion") + public static class NoCompletion extends AbstractK2JsBasicCompletionTest { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); + } + + @TestMetadata("DoNotCompleteForErrorReceivers.kt") + public void testDoNotCompleteForErrorReceivers() throws Exception { + runTest("../../completion/testData/basic/common/noCompletion/DoNotCompleteForErrorReceivers.kt"); + } + + @TestMetadata("DoNotCompleteForErrorReceiversForce.kt") + public void testDoNotCompleteForErrorReceiversForce() throws Exception { + runTest("../../completion/testData/basic/common/noCompletion/DoNotCompleteForErrorReceiversForce.kt"); + } + + @TestMetadata("DoWhileLoop.kt") + public void testDoWhileLoop() throws Exception { + runTest("../../completion/testData/basic/common/noCompletion/DoWhileLoop.kt"); + } + + @TestMetadata("InPackageBegin.kt") + public void testInPackageBegin() throws Exception { + runTest("../../completion/testData/basic/common/noCompletion/InPackageBegin.kt"); + } + + @TestMetadata("NoCompletionAfterBigFloat.kt") + public void testNoCompletionAfterBigFloat() throws Exception { + runTest("../../completion/testData/basic/common/noCompletion/NoCompletionAfterBigFloat.kt"); + } + + @TestMetadata("NoCompletionAfterFloat.kt") + public void testNoCompletionAfterFloat() throws Exception { + runTest("../../completion/testData/basic/common/noCompletion/NoCompletionAfterFloat.kt"); + } + + @TestMetadata("NoCompletionAfterInt.kt") + public void testNoCompletionAfterInt() throws Exception { + runTest("../../completion/testData/basic/common/noCompletion/NoCompletionAfterInt.kt"); + } + + @TestMetadata("NoCompletionAfterLong.kt") + public void testNoCompletionAfterLong() throws Exception { + runTest("../../completion/testData/basic/common/noCompletion/NoCompletionAfterLong.kt"); + } + + @TestMetadata("UnresolvedCallWithLambdaArgument.kt") + public void testUnresolvedCallWithLambdaArgument() throws Exception { + runTest("../../completion/testData/basic/common/noCompletion/UnresolvedCallWithLambdaArgument.kt"); + } + } + + @RunWith(JUnit3RunnerWithInners.class) + @TestMetadata("../../completion/testData/basic/common/objects") + public static class Objects extends AbstractK2JsBasicCompletionTest { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); + } + + @TestMetadata("PropertyFromCompanionObjectFromTypeAliasToNestedInObjectClass.kt") + public void testPropertyFromCompanionObjectFromTypeAliasToNestedInObjectClass() throws Exception { + runTest("../../completion/testData/basic/common/objects/PropertyFromCompanionObjectFromTypeAliasToNestedInObjectClass.kt"); + } + + @TestMetadata("PropertyOfTypeAliasToObject.kt") + public void testPropertyOfTypeAliasToObject() throws Exception { + runTest("../../completion/testData/basic/common/objects/PropertyOfTypeAliasToObject.kt"); + } + + @TestMetadata("TypeAliasToNestedObject.kt") + public void testTypeAliasToNestedObject() throws Exception { + runTest("../../completion/testData/basic/common/objects/TypeAliasToNestedObject.kt"); + } + } + + @RunWith(JUnit3RunnerWithInners.class) + @TestMetadata("../../completion/testData/basic/common/operatorNames") + public static class OperatorNames extends AbstractK2JsBasicCompletionTest { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); + } + + @TestMetadata("NoOperatorNameForTopLevel.kt") + public void testNoOperatorNameForTopLevel() throws Exception { + runTest("../../completion/testData/basic/common/operatorNames/NoOperatorNameForTopLevel.kt"); + } + + @TestMetadata("OperatorNameForExtension.kt") + public void testOperatorNameForExtension() throws Exception { + runTest("../../completion/testData/basic/common/operatorNames/OperatorNameForExtension.kt"); + } + + @TestMetadata("OperatorNameForMember.kt") + public void testOperatorNameForMember() throws Exception { + runTest("../../completion/testData/basic/common/operatorNames/OperatorNameForMember.kt"); + } + } + + @RunWith(JUnit3RunnerWithInners.class) + @TestMetadata("../../completion/testData/basic/common/override") + public static class Override extends AbstractK2JsBasicCompletionTest { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); + } + + @TestMetadata("AfterFunKeyword.kt") + public void testAfterFunKeyword() throws Exception { + runTest("../../completion/testData/basic/common/override/AfterFunKeyword.kt"); + } + + @TestMetadata("AfterValKeyword.kt") + public void testAfterValKeyword() throws Exception { + runTest("../../completion/testData/basic/common/override/AfterValKeyword.kt"); + } + + @TestMetadata("AfterValKeywordInConstructorParameter.kt") + public void testAfterValKeywordInConstructorParameter() throws Exception { + runTest("../../completion/testData/basic/common/override/AfterValKeywordInConstructorParameter.kt"); + } + + @TestMetadata("AfterVarKeyword.kt") + public void testAfterVarKeyword() throws Exception { + runTest("../../completion/testData/basic/common/override/AfterVarKeyword.kt"); + } + + @TestMetadata("Generics.kt") + public void testGenerics() throws Exception { + runTest("../../completion/testData/basic/common/override/Generics.kt"); + } + + @TestMetadata("InConstructorParameters.kt") + public void testInConstructorParameters() throws Exception { + runTest("../../completion/testData/basic/common/override/InConstructorParameters.kt"); + } + + @TestMetadata("InConstructorParameters2.kt") + public void testInConstructorParameters2() throws Exception { + runTest("../../completion/testData/basic/common/override/InConstructorParameters2.kt"); + } + + @TestMetadata("NoOverrideAfterFunKeyword.kt") + public void testNoOverrideAfterFunKeyword() throws Exception { + runTest("../../completion/testData/basic/common/override/NoOverrideAfterFunKeyword.kt"); + } + + @TestMetadata("PreferImplementToOverride.kt") + public void testPreferImplementToOverride() throws Exception { + runTest("../../completion/testData/basic/common/override/PreferImplementToOverride.kt"); + } + + @TestMetadata("SecondConstructorParameter.kt") + public void testSecondConstructorParameter() throws Exception { + runTest("../../completion/testData/basic/common/override/SecondConstructorParameter.kt"); + } + + @TestMetadata("Simple.kt") + public void testSimple() throws Exception { + runTest("../../completion/testData/basic/common/override/Simple.kt"); + } + + @TestMetadata("TypeFunctionName.kt") + public void testTypeFunctionName() throws Exception { + runTest("../../completion/testData/basic/common/override/TypeFunctionName.kt"); + } + } + + @RunWith(JUnit3RunnerWithInners.class) + @TestMetadata("../../completion/testData/basic/common/parameterNameAndType") + public static class ParameterNameAndType extends AbstractK2JsBasicCompletionTest { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); + } + + @TestMetadata("ByAbbreviation.kt") + public void testByAbbreviation() throws Exception { + runTest("../../completion/testData/basic/common/parameterNameAndType/ByAbbreviation.kt"); + } + + @TestMetadata("FunctionCall.kt") + public void testFunctionCall() throws Exception { + runTest("../../completion/testData/basic/common/parameterNameAndType/FunctionCall.kt"); + } + + @TestMetadata("InSecondaryConstructor.kt") + public void testInSecondaryConstructor() throws Exception { + runTest("../../completion/testData/basic/common/parameterNameAndType/InSecondaryConstructor.kt"); + } + + @TestMetadata("NoAutoInsertion.kt") + public void testNoAutoInsertion() throws Exception { + runTest("../../completion/testData/basic/common/parameterNameAndType/NoAutoInsertion.kt"); + } + + @TestMetadata("NoDuplication.kt") + public void testNoDuplication() throws Exception { + runTest("../../completion/testData/basic/common/parameterNameAndType/NoDuplication.kt"); + } + + @TestMetadata("NoDuplicationJava.kt") + public void testNoDuplicationJava() throws Exception { + runTest("../../completion/testData/basic/common/parameterNameAndType/NoDuplicationJava.kt"); + } + + @TestMetadata("NoFromFileAndFromClassesDuplication.kt") + public void testNoFromFileAndFromClassesDuplication() throws Exception { + runTest("../../completion/testData/basic/common/parameterNameAndType/NoFromFileAndFromClassesDuplication.kt"); + } + + @TestMetadata("NoObjects.kt") + public void testNoObjects() throws Exception { + runTest("../../completion/testData/basic/common/parameterNameAndType/NoObjects.kt"); + } + + @TestMetadata("NotForAnnnotationTypeConstructor.kt") + public void testNotForAnnnotationTypeConstructor() throws Exception { + runTest("../../completion/testData/basic/common/parameterNameAndType/NotForAnnnotationTypeConstructor.kt"); + } + + @TestMetadata("NotForAnonymousFunction.kt") + public void testNotForAnonymousFunction() throws Exception { + runTest("../../completion/testData/basic/common/parameterNameAndType/NotForAnonymousFunction.kt"); + } + + @TestMetadata("NotForCatchParameter.kt") + public void testNotForCatchParameter() throws Exception { + runTest("../../completion/testData/basic/common/parameterNameAndType/NotForCatchParameter.kt"); + } + + @TestMetadata("NotForLambdaParameter1.kt") + public void testNotForLambdaParameter1() throws Exception { + runTest("../../completion/testData/basic/common/parameterNameAndType/NotForLambdaParameter1.kt"); + } + + @TestMetadata("NotForLambdaParameter2.kt") + public void testNotForLambdaParameter2() throws Exception { + runTest("../../completion/testData/basic/common/parameterNameAndType/NotForLambdaParameter2.kt"); + } + + @TestMetadata("NotForLambdaParameter3.kt") + public void testNotForLambdaParameter3() throws Exception { + runTest("../../completion/testData/basic/common/parameterNameAndType/NotForLambdaParameter3.kt"); + } + + @TestMetadata("NotForSetterParameter.kt") + public void testNotForSetterParameter() throws Exception { + runTest("../../completion/testData/basic/common/parameterNameAndType/NotForSetterParameter.kt"); + } + + @TestMetadata("NotImported.kt") + public void testNotImported() throws Exception { + runTest("../../completion/testData/basic/common/parameterNameAndType/NotImported.kt"); + } + + @TestMetadata("NotImportedJava.kt") + public void testNotImportedJava() throws Exception { + runTest("../../completion/testData/basic/common/parameterNameAndType/NotImportedJava.kt"); + } + + @TestMetadata("ParametersInFile.kt") + public void testParametersInFile() throws Exception { + runTest("../../completion/testData/basic/common/parameterNameAndType/ParametersInFile.kt"); + } + + @TestMetadata("ParametersInFileInaccessibleType.kt") + public void testParametersInFileInaccessibleType() throws Exception { + runTest("../../completion/testData/basic/common/parameterNameAndType/ParametersInFileInaccessibleType.kt"); + } + + @TestMetadata("ParametersInFileInaccessibleType2.kt") + public void testParametersInFileInaccessibleType2() throws Exception { + runTest("../../completion/testData/basic/common/parameterNameAndType/ParametersInFileInaccessibleType2.kt"); + } + + @TestMetadata("ParametersInFileNoDuplication.kt") + public void testParametersInFileNoDuplication() throws Exception { + runTest("../../completion/testData/basic/common/parameterNameAndType/ParametersInFileNoDuplication.kt"); + } + + @TestMetadata("ParametersInFileNoLocalTypes.kt") + public void testParametersInFileNoLocalTypes() throws Exception { + runTest("../../completion/testData/basic/common/parameterNameAndType/ParametersInFileNoLocalTypes.kt"); + } + + @TestMetadata("ParametersInFileNoTypeAnnotations.kt") + public void testParametersInFileNoTypeAnnotations() throws Exception { + runTest("../../completion/testData/basic/common/parameterNameAndType/ParametersInFileNoTypeAnnotations.kt"); + } + + @TestMetadata("ParametersInFileTypeParameter1.kt") + public void testParametersInFileTypeParameter1() throws Exception { + runTest("../../completion/testData/basic/common/parameterNameAndType/ParametersInFileTypeParameter1.kt"); + } + + @TestMetadata("ParametersInFileTypeParameter2.kt") + public void testParametersInFileTypeParameter2() throws Exception { + runTest("../../completion/testData/basic/common/parameterNameAndType/ParametersInFileTypeParameter2.kt"); + } + + @TestMetadata("ParametersInFileTypeParameter3.kt") + public void testParametersInFileTypeParameter3() throws Exception { + runTest("../../completion/testData/basic/common/parameterNameAndType/ParametersInFileTypeParameter3.kt"); + } + + @TestMetadata("Simple.kt") + public void testSimple() throws Exception { + runTest("../../completion/testData/basic/common/parameterNameAndType/Simple.kt"); + } + + @TestMetadata("TypeAlias.kt") + public void testTypeAlias() throws Exception { + runTest("../../completion/testData/basic/common/parameterNameAndType/TypeAlias.kt"); + } + + @TestMetadata("TypeParameter1.kt") + public void testTypeParameter1() throws Exception { + runTest("../../completion/testData/basic/common/parameterNameAndType/TypeParameter1.kt"); + } + + @TestMetadata("TypeParameter2.kt") + public void testTypeParameter2() throws Exception { + runTest("../../completion/testData/basic/common/parameterNameAndType/TypeParameter2.kt"); + } + + @TestMetadata("URLConnection.kt") + public void testURLConnection() throws Exception { + runTest("../../completion/testData/basic/common/parameterNameAndType/URLConnection.kt"); + } + + @TestMetadata("UserPrefix1.kt") + public void testUserPrefix1() throws Exception { + runTest("../../completion/testData/basic/common/parameterNameAndType/UserPrefix1.kt"); + } + + @TestMetadata("UserPrefix2.kt") + public void testUserPrefix2() throws Exception { + runTest("../../completion/testData/basic/common/parameterNameAndType/UserPrefix2.kt"); + } + + @TestMetadata("UserPrefix3.kt") + public void testUserPrefix3() throws Exception { + runTest("../../completion/testData/basic/common/parameterNameAndType/UserPrefix3.kt"); + } + + @TestMetadata("ValParameter.kt") + public void testValParameter() throws Exception { + runTest("../../completion/testData/basic/common/parameterNameAndType/ValParameter.kt"); + } + + @TestMetadata("VarParameter.kt") + public void testVarParameter() throws Exception { + runTest("../../completion/testData/basic/common/parameterNameAndType/VarParameter.kt"); + } + } + + @RunWith(JUnit3RunnerWithInners.class) + @TestMetadata("../../completion/testData/basic/common/primaryConstructor") + public static class PrimaryConstructor extends AbstractK2JsBasicCompletionTest { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); + } + + @TestMetadata("parameterDefaultValue.kt") + public void testParameterDefaultValue() throws Exception { + runTest("../../completion/testData/basic/common/primaryConstructor/parameterDefaultValue.kt"); + } + + @TestMetadata("previousParameter.kt") + public void testPreviousParameter() throws Exception { + runTest("../../completion/testData/basic/common/primaryConstructor/previousParameter.kt"); + } + + @TestMetadata("propertyType.kt") + public void testPropertyType() throws Exception { + runTest("../../completion/testData/basic/common/primaryConstructor/propertyType.kt"); + } + } + + @RunWith(JUnit3RunnerWithInners.class) + @TestMetadata("../../completion/testData/basic/common/primitiveCompletion") + public static class PrimitiveCompletion extends AbstractK2JsBasicCompletionTest { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); + } + + @TestMetadata("classExtensionFunctionExplicitReceiver.kt") + public void testClassExtensionFunctionExplicitReceiver() throws Exception { + runTest("../../completion/testData/basic/common/primitiveCompletion/classExtensionFunctionExplicitReceiver.kt"); + } + + @TestMetadata("classFieldsAndFunctions.kt") + public void testClassFieldsAndFunctions() throws Exception { + runTest("../../completion/testData/basic/common/primitiveCompletion/classFieldsAndFunctions.kt"); + } + + @TestMetadata("classFieldsAndFunctionsExplicitReceiver.kt") + public void testClassFieldsAndFunctionsExplicitReceiver() throws Exception { + runTest("../../completion/testData/basic/common/primitiveCompletion/classFieldsAndFunctionsExplicitReceiver.kt"); + } + + @TestMetadata("classFieldsAndFunctionsFromInheritor.kt") + public void testClassFieldsAndFunctionsFromInheritor() throws Exception { + runTest("../../completion/testData/basic/common/primitiveCompletion/classFieldsAndFunctionsFromInheritor.kt"); + } + + @TestMetadata("classFieldsAndFunctionsFromInnerClass.kt") + public void testClassFieldsAndFunctionsFromInnerClass() throws Exception { + runTest("../../completion/testData/basic/common/primitiveCompletion/classFieldsAndFunctionsFromInnerClass.kt"); + } + + @TestMetadata("classFieldsAndFunctionsFromInnerClassExplicitReceiver.kt") + public void testClassFieldsAndFunctionsFromInnerClassExplicitReceiver() throws Exception { + runTest("../../completion/testData/basic/common/primitiveCompletion/classFieldsAndFunctionsFromInnerClassExplicitReceiver.kt"); + } + + @TestMetadata("completionInLocalFunction.kt") + public void testCompletionInLocalFunction() throws Exception { + runTest("../../completion/testData/basic/common/primitiveCompletion/completionInLocalFunction.kt"); + } + + @TestMetadata("completionInPropertyLambdaInitializer.kt") + public void testCompletionInPropertyLambdaInitializer() throws Exception { + runTest("../../completion/testData/basic/common/primitiveCompletion/completionInPropertyLambdaInitializer.kt"); + } + + @TestMetadata("defaultKotlinImports.kt") + public void testDefaultKotlinImports() throws Exception { + runTest("../../completion/testData/basic/common/primitiveCompletion/defaultKotlinImports.kt"); + } + + @TestMetadata("explicitReceiverCompletion.kt") + public void testExplicitReceiverCompletion() throws Exception { + runTest("../../completion/testData/basic/common/primitiveCompletion/explicitReceiverCompletion.kt"); + } + + @TestMetadata("extensionPropertyAndFunctionExplicitReceiver.kt") + public void testExtensionPropertyAndFunctionExplicitReceiver() throws Exception { + runTest("../../completion/testData/basic/common/primitiveCompletion/extensionPropertyAndFunctionExplicitReceiver.kt"); + } + + @TestMetadata("extensionPropertyAndFunctionImplicitReceiver.kt") + public void testExtensionPropertyAndFunctionImplicitReceiver() throws Exception { + runTest("../../completion/testData/basic/common/primitiveCompletion/extensionPropertyAndFunctionImplicitReceiver.kt"); + } + + @TestMetadata("extensionRecompletion.kt") + public void testExtensionRecompletion() throws Exception { + runTest("../../completion/testData/basic/common/primitiveCompletion/extensionRecompletion.kt"); + } + + @TestMetadata("genericExtensionPropertyAndFunctionExplicitReceiver.kt") + public void testGenericExtensionPropertyAndFunctionExplicitReceiver() throws Exception { + runTest("../../completion/testData/basic/common/primitiveCompletion/genericExtensionPropertyAndFunctionExplicitReceiver.kt"); + } + + @TestMetadata("implicitReceiverCompletion.kt") + public void testImplicitReceiverCompletion() throws Exception { + runTest("../../completion/testData/basic/common/primitiveCompletion/implicitReceiverCompletion.kt"); + } + + @TestMetadata("implicitReceiverFromExtensionMethod.kt") + public void testImplicitReceiverFromExtensionMethod() throws Exception { + runTest("../../completion/testData/basic/common/primitiveCompletion/implicitReceiverFromExtensionMethod.kt"); + } + + @TestMetadata("insideFunctionWithParameters.kt") + public void testInsideFunctionWithParameters() throws Exception { + runTest("../../completion/testData/basic/common/primitiveCompletion/insideFunctionWithParameters.kt"); + } + + @TestMetadata("localClassConstructor.kt") + public void testLocalClassConstructor() throws Exception { + runTest("../../completion/testData/basic/common/primitiveCompletion/localClassConstructor.kt"); + } + + @TestMetadata("localClassMember.kt") + public void testLocalClassMember() throws Exception { + runTest("../../completion/testData/basic/common/primitiveCompletion/localClassMember.kt"); + } + + @TestMetadata("localVariablesAndFunctions.kt") + public void testLocalVariablesAndFunctions() throws Exception { + runTest("../../completion/testData/basic/common/primitiveCompletion/localVariablesAndFunctions.kt"); + } + + @TestMetadata("localVariablesAndFunctionsFromNestedScope.kt") + public void testLocalVariablesAndFunctionsFromNestedScope() throws Exception { + runTest("../../completion/testData/basic/common/primitiveCompletion/localVariablesAndFunctionsFromNestedScope.kt"); + } + + @TestMetadata("noCompletionAfterNumberLiteral1.kt") + public void testNoCompletionAfterNumberLiteral1() throws Exception { + runTest("../../completion/testData/basic/common/primitiveCompletion/noCompletionAfterNumberLiteral1.kt"); + } + + @TestMetadata("noCompletionAfterNumberLiteral2.kt") + public void testNoCompletionAfterNumberLiteral2() throws Exception { + runTest("../../completion/testData/basic/common/primitiveCompletion/noCompletionAfterNumberLiteral2.kt"); + } + + @TestMetadata("nullableCompletion.kt") + public void testNullableCompletion() throws Exception { + runTest("../../completion/testData/basic/common/primitiveCompletion/nullableCompletion.kt"); + } + + @TestMetadata("smartCast.kt") + public void testSmartCast() throws Exception { + runTest("../../completion/testData/basic/common/primitiveCompletion/smartCast.kt"); + } + + @TestMetadata("stringCompletion.kt") + public void testStringCompletion() throws Exception { + runTest("../../completion/testData/basic/common/primitiveCompletion/stringCompletion.kt"); + } + + @TestMetadata("topLevelClasses.kt") + public void testTopLevelClasses() throws Exception { + runTest("../../completion/testData/basic/common/primitiveCompletion/topLevelClasses.kt"); + } + + @TestMetadata("topLevelPropertyGetterBodyCompletion.kt") + public void testTopLevelPropertyGetterBodyCompletion() throws Exception { + runTest("../../completion/testData/basic/common/primitiveCompletion/topLevelPropertyGetterBodyCompletion.kt"); + } + + @TestMetadata("topLevelPropertyGetterExpressionCompletion.kt") + public void testTopLevelPropertyGetterExpressionCompletion() throws Exception { + runTest("../../completion/testData/basic/common/primitiveCompletion/topLevelPropertyGetterExpressionCompletion.kt"); + } + + @TestMetadata("topLevelPropertyGetterTypeCompletion.kt") + public void testTopLevelPropertyGetterTypeCompletion() throws Exception { + runTest("../../completion/testData/basic/common/primitiveCompletion/topLevelPropertyGetterTypeCompletion.kt"); + } + + @TestMetadata("topLevelPropertyInitializerCompletion.kt") + public void testTopLevelPropertyInitializerCompletion() throws Exception { + runTest("../../completion/testData/basic/common/primitiveCompletion/topLevelPropertyInitializerCompletion.kt"); + } + + @TestMetadata("topLevelPropertySetterBodyCompletion.kt") + public void testTopLevelPropertySetterBodyCompletion() throws Exception { + runTest("../../completion/testData/basic/common/primitiveCompletion/topLevelPropertySetterBodyCompletion.kt"); + } + + @TestMetadata("topLevelPropertySetterExpressionCompletion.kt") + public void testTopLevelPropertySetterExpressionCompletion() throws Exception { + runTest("../../completion/testData/basic/common/primitiveCompletion/topLevelPropertySetterExpressionCompletion.kt"); + } + + @TestMetadata("topLevelPropertyTypeCompletion.kt") + public void testTopLevelPropertyTypeCompletion() throws Exception { + runTest("../../completion/testData/basic/common/primitiveCompletion/topLevelPropertyTypeCompletion.kt"); + } + + @TestMetadata("topLevelVariablesAndFunctions.kt") + public void testTopLevelVariablesAndFunctions() throws Exception { + runTest("../../completion/testData/basic/common/primitiveCompletion/topLevelVariablesAndFunctions.kt"); + } + + @TestMetadata("twoReceivers.kt") + public void testTwoReceivers() throws Exception { + runTest("../../completion/testData/basic/common/primitiveCompletion/twoReceivers.kt"); + } + } + + @RunWith(JUnit3RunnerWithInners.class) + @TestMetadata("../../completion/testData/basic/common/shadowing") + public static class Shadowing extends AbstractK2JsBasicCompletionTest { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); + } + + @TestMetadata("ExtensionShadows.kt") + public void testExtensionShadows() throws Exception { + runTest("../../completion/testData/basic/common/shadowing/ExtensionShadows.kt"); + } + + @TestMetadata("InInitializer1.kt") + public void testInInitializer1() throws Exception { + runTest("../../completion/testData/basic/common/shadowing/InInitializer1.kt"); + } + + @TestMetadata("InInitializer2.kt") + public void testInInitializer2() throws Exception { + runTest("../../completion/testData/basic/common/shadowing/InInitializer2.kt"); + } + + @TestMetadata("InInitializer3.kt") + public void testInInitializer3() throws Exception { + runTest("../../completion/testData/basic/common/shadowing/InInitializer3.kt"); + } + + @TestMetadata("InInitializer4.kt") + public void testInInitializer4() throws Exception { + runTest("../../completion/testData/basic/common/shadowing/InInitializer4.kt"); + } + + @TestMetadata("InInitializer5.kt") + public void testInInitializer5() throws Exception { + runTest("../../completion/testData/basic/common/shadowing/InInitializer5.kt"); + } + + @TestMetadata("InInitializer6.kt") + public void testInInitializer6() throws Exception { + runTest("../../completion/testData/basic/common/shadowing/InInitializer6.kt"); + } + + @TestMetadata("InInitializer7.kt") + public void testInInitializer7() throws Exception { + runTest("../../completion/testData/basic/common/shadowing/InInitializer7.kt"); + } + + @TestMetadata("InInitializerProperty.kt") + public void testInInitializerProperty() throws Exception { + runTest("../../completion/testData/basic/common/shadowing/InInitializerProperty.kt"); + } + + @TestMetadata("Locals1.kt") + public void testLocals1() throws Exception { + runTest("../../completion/testData/basic/common/shadowing/Locals1.kt"); + } + + @TestMetadata("Locals2.kt") + public void testLocals2() throws Exception { + runTest("../../completion/testData/basic/common/shadowing/Locals2.kt"); + } + + @TestMetadata("Overloads.kt") + public void testOverloads() throws Exception { + runTest("../../completion/testData/basic/common/shadowing/Overloads.kt"); + } + + @TestMetadata("OverloadsAndVararg.kt") + public void testOverloadsAndVararg() throws Exception { + runTest("../../completion/testData/basic/common/shadowing/OverloadsAndVararg.kt"); + } + + @TestMetadata("PreferCloserMember.kt") + public void testPreferCloserMember() throws Exception { + runTest("../../completion/testData/basic/common/shadowing/PreferCloserMember.kt"); + } + + @TestMetadata("PreferCloserReceiverGeneric.kt") + public void testPreferCloserReceiverGeneric() throws Exception { + runTest("../../completion/testData/basic/common/shadowing/PreferCloserReceiverGeneric.kt"); + } + + @TestMetadata("PreferExtensionFunctionToFunctionalVariable.kt") + public void testPreferExtensionFunctionToFunctionalVariable() throws Exception { + runTest("../../completion/testData/basic/common/shadowing/PreferExtensionFunctionToFunctionalVariable.kt"); + } + + @TestMetadata("PreferExtensionsForCloserReceiver.kt") + public void testPreferExtensionsForCloserReceiver() throws Exception { + runTest("../../completion/testData/basic/common/shadowing/PreferExtensionsForCloserReceiver.kt"); + } + + @TestMetadata("PreferMemberExtension.kt") + public void testPreferMemberExtension() throws Exception { + runTest("../../completion/testData/basic/common/shadowing/PreferMemberExtension.kt"); + } + + @TestMetadata("PreferMemberToExtension.kt") + public void testPreferMemberToExtension() throws Exception { + runTest("../../completion/testData/basic/common/shadowing/PreferMemberToExtension.kt"); + } + + @TestMetadata("PreferMemberToGlobal.kt") + public void testPreferMemberToGlobal() throws Exception { + runTest("../../completion/testData/basic/common/shadowing/PreferMemberToGlobal.kt"); + } + + @TestMetadata("PreferMoreSpecificExtension.kt") + public void testPreferMoreSpecificExtension() throws Exception { + runTest("../../completion/testData/basic/common/shadowing/PreferMoreSpecificExtension.kt"); + } + + @TestMetadata("PreferMoreSpecificExtensionGeneric.kt") + public void testPreferMoreSpecificExtensionGeneric() throws Exception { + runTest("../../completion/testData/basic/common/shadowing/PreferMoreSpecificExtensionGeneric.kt"); + } + + @TestMetadata("PreferMoreSpecificExtensionGeneric2.kt") + public void testPreferMoreSpecificExtensionGeneric2() throws Exception { + runTest("../../completion/testData/basic/common/shadowing/PreferMoreSpecificExtensionGeneric2.kt"); + } + + @TestMetadata("PreferMoreSpecificExtensionGenericWithMultipleParam.kt") + public void testPreferMoreSpecificExtensionGenericWithMultipleParam() throws Exception { + runTest("../../completion/testData/basic/common/shadowing/PreferMoreSpecificExtensionGenericWithMultipleParam.kt"); + } + + @TestMetadata("PreferMoreSpecificExtensionGenericWithParam.kt") + public void testPreferMoreSpecificExtensionGenericWithParam() throws Exception { + runTest("../../completion/testData/basic/common/shadowing/PreferMoreSpecificExtensionGenericWithParam.kt"); + } + + @TestMetadata("PreferMoreSpecificExtensionLocalClass.kt") + public void testPreferMoreSpecificExtensionLocalClass() throws Exception { + runTest("../../completion/testData/basic/common/shadowing/PreferMoreSpecificExtensionLocalClass.kt"); + } + + @TestMetadata("VarargValueParameter.kt") + public void testVarargValueParameter() throws Exception { + runTest("../../completion/testData/basic/common/shadowing/VarargValueParameter.kt"); + } + } + + @RunWith(JUnit3RunnerWithInners.class) + @TestMetadata("../../completion/testData/basic/common/smartCast") + public static class SmartCast extends AbstractK2JsBasicCompletionTest { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); + } + + @TestMetadata("DispatchReceiver.kt") + public void testDispatchReceiver() throws Exception { + runTest("../../completion/testData/basic/common/smartCast/DispatchReceiver.kt"); + } + + @TestMetadata("functionWithContract.kt") + public void testFunctionWithContract() throws Exception { + runTest("../../completion/testData/basic/common/smartCast/functionWithContract.kt"); + } + + @TestMetadata("MemberExtensionAfterThisSmartCast.kt") + public void testMemberExtensionAfterThisSmartCast() throws Exception { + runTest("../../completion/testData/basic/common/smartCast/MemberExtensionAfterThisSmartCast.kt"); + } + + @TestMetadata("MembersAfterSmartCast.kt") + public void testMembersAfterSmartCast() throws Exception { + runTest("../../completion/testData/basic/common/smartCast/MembersAfterSmartCast.kt"); + } + + @TestMetadata("SmartCastAfterIf.kt") + public void testSmartCastAfterIf() throws Exception { + runTest("../../completion/testData/basic/common/smartCast/SmartCastAfterIf.kt"); + } + + @TestMetadata("SmartCastAfterIfMethod.kt") + public void testSmartCastAfterIfMethod() throws Exception { + runTest("../../completion/testData/basic/common/smartCast/SmartCastAfterIfMethod.kt"); + } + + @TestMetadata("SmartCastForThis.kt") + public void testSmartCastForThis() throws Exception { + runTest("../../completion/testData/basic/common/smartCast/SmartCastForThis.kt"); + } + + @TestMetadata("SmartCastInWhen.kt") + public void testSmartCastInWhen() throws Exception { + runTest("../../completion/testData/basic/common/smartCast/SmartCastInWhen.kt"); + } + + @TestMetadata("SmartCastThis.kt") + public void testSmartCastThis() throws Exception { + runTest("../../completion/testData/basic/common/smartCast/SmartCastThis.kt"); + } + } + + @RunWith(JUnit3RunnerWithInners.class) + @TestMetadata("../../completion/testData/basic/common/staticMembers") + public static class StaticMembers extends AbstractK2JsBasicCompletionTest { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); + } + + @TestMetadata("CompanionObjectMembers.kt") + public void testCompanionObjectMembers() throws Exception { + runTest("../../completion/testData/basic/common/staticMembers/CompanionObjectMembers.kt"); + } + + @TestMetadata("EnumWithoutCompanionObject.kt") + public void testEnumWithoutCompanionObject() throws Exception { + runTest("../../completion/testData/basic/common/staticMembers/EnumWithoutCompanionObject.kt"); + } + + @TestMetadata("ImportsFromEnumEntry.kt") + public void testImportsFromEnumEntry() throws Exception { + runTest("../../completion/testData/basic/common/staticMembers/ImportsFromEnumEntry.kt"); + } + + @TestMetadata("ImportsFromNonObject.kt") + public void testImportsFromNonObject() throws Exception { + runTest("../../completion/testData/basic/common/staticMembers/ImportsFromNonObject.kt"); + } + + @TestMetadata("ImportsFromObjectNoDuplicates.kt") + public void testImportsFromObjectNoDuplicates() throws Exception { + runTest("../../completion/testData/basic/common/staticMembers/ImportsFromObjectNoDuplicates.kt"); + } + } + + @RunWith(JUnit3RunnerWithInners.class) + @TestMetadata("../../completion/testData/basic/common/substitutedSignature") + public static class SubstitutedSignature extends AbstractK2JsBasicCompletionTest { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); + } + + @TestMetadata("SubstitutedSignature1.kt") + public void testSubstitutedSignature1() throws Exception { + runTest("../../completion/testData/basic/common/substitutedSignature/SubstitutedSignature1.kt"); + } + + @TestMetadata("SubstitutedSignature2.kt") + public void testSubstitutedSignature2() throws Exception { + runTest("../../completion/testData/basic/common/substitutedSignature/SubstitutedSignature2.kt"); + } + + @TestMetadata("SubstitutedSignature3.kt") + public void testSubstitutedSignature3() throws Exception { + runTest("../../completion/testData/basic/common/substitutedSignature/SubstitutedSignature3.kt"); + } + + @TestMetadata("SubstitutedSignature4.kt") + public void testSubstitutedSignature4() throws Exception { + runTest("../../completion/testData/basic/common/substitutedSignature/SubstitutedSignature4.kt"); + } + + @TestMetadata("SubstitutedSignature5.kt") + public void testSubstitutedSignature5() throws Exception { + runTest("../../completion/testData/basic/common/substitutedSignature/SubstitutedSignature5.kt"); + } + + @TestMetadata("SubstitutedSignature6.kt") + public void testSubstitutedSignature6() throws Exception { + runTest("../../completion/testData/basic/common/substitutedSignature/SubstitutedSignature6.kt"); + } + + @TestMetadata("SubstitutedSignatureSOE.kt") + public void testSubstitutedSignatureSOE() throws Exception { + runTest("../../completion/testData/basic/common/substitutedSignature/SubstitutedSignatureSOE.kt"); + } + } + + @RunWith(JUnit3RunnerWithInners.class) + @TestMetadata("../../completion/testData/basic/common/super") + public static class Super extends AbstractK2JsBasicCompletionTest { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); + } + + @TestMetadata("QualifierType1.kt") + public void testQualifierType1() throws Exception { + runTest("../../completion/testData/basic/common/super/QualifierType1.kt"); + } + + @TestMetadata("QualifierType2.kt") + public void testQualifierType2() throws Exception { + runTest("../../completion/testData/basic/common/super/QualifierType2.kt"); + } + + @TestMetadata("QualifierType3.kt") + public void testQualifierType3() throws Exception { + runTest("../../completion/testData/basic/common/super/QualifierType3.kt"); + } + + @TestMetadata("QualifierType4.kt") + public void testQualifierType4() throws Exception { + runTest("../../completion/testData/basic/common/super/QualifierType4.kt"); + } + + @TestMetadata("QualifierType5.kt") + public void testQualifierType5() throws Exception { + runTest("../../completion/testData/basic/common/super/QualifierType5.kt"); + } + + @TestMetadata("QualifierType6.kt") + public void testQualifierType6() throws Exception { + runTest("../../completion/testData/basic/common/super/QualifierType6.kt"); + } + + @TestMetadata("QualifierTypeAny.kt") + public void testQualifierTypeAny() throws Exception { + runTest("../../completion/testData/basic/common/super/QualifierTypeAny.kt"); + } + + @TestMetadata("QualifierTypeAnyInInterface.kt") + public void testQualifierTypeAnyInInterface() throws Exception { + runTest("../../completion/testData/basic/common/super/QualifierTypeAnyInInterface.kt"); + } + + @TestMetadata("QualifierTypeGeneric.kt") + public void testQualifierTypeGeneric() throws Exception { + runTest("../../completion/testData/basic/common/super/QualifierTypeGeneric.kt"); + } + + @TestMetadata("SuperMethod.kt") + public void testSuperMethod() throws Exception { + runTest("../../completion/testData/basic/common/super/SuperMethod.kt"); + } + } + + @RunWith(JUnit3RunnerWithInners.class) + @TestMetadata("../../completion/testData/basic/common/typeAliasTypes") + public static class TypeAliasTypes extends AbstractK2JsBasicCompletionTest { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); + } + + @TestMetadata("TypeAliasParameter.kt") + public void testTypeAliasParameter() throws Exception { + runTest("../../completion/testData/basic/common/typeAliasTypes/TypeAliasParameter.kt"); + } + + @TestMetadata("TypeAliasThis.kt") + public void testTypeAliasThis() throws Exception { + runTest("../../completion/testData/basic/common/typeAliasTypes/TypeAliasThis.kt"); + } + } + + @RunWith(JUnit3RunnerWithInners.class) + @TestMetadata("../../completion/testData/basic/common/typeArgsOrNot") + public static class TypeArgsOrNot extends AbstractK2JsBasicCompletionTest { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); + } + + @TestMetadata("ConstructorTypeArg.kt") + public void testConstructorTypeArg() throws Exception { + runTest("../../completion/testData/basic/common/typeArgsOrNot/ConstructorTypeArg.kt"); + } + + @TestMetadata("FunctionTypeArg.kt") + public void testFunctionTypeArg() throws Exception { + runTest("../../completion/testData/basic/common/typeArgsOrNot/FunctionTypeArg.kt"); + } + + @TestMetadata("FunctionTypeArg2.kt") + public void testFunctionTypeArg2() throws Exception { + runTest("../../completion/testData/basic/common/typeArgsOrNot/FunctionTypeArg2.kt"); + } + + @TestMetadata("LessThan.kt") + public void testLessThan() throws Exception { + runTest("../../completion/testData/basic/common/typeArgsOrNot/LessThan.kt"); + } + + @TestMetadata("NestedTypeArg.kt") + public void testNestedTypeArg() throws Exception { + runTest("../../completion/testData/basic/common/typeArgsOrNot/NestedTypeArg.kt"); + } + + @TestMetadata("SecondTypeArg.kt") + public void testSecondTypeArg() throws Exception { + runTest("../../completion/testData/basic/common/typeArgsOrNot/SecondTypeArg.kt"); + } + + @TestMetadata("SecondTypeArg2.kt") + public void testSecondTypeArg2() throws Exception { + runTest("../../completion/testData/basic/common/typeArgsOrNot/SecondTypeArg2.kt"); + } + + @TestMetadata("SecondTypeArg3.kt") + public void testSecondTypeArg3() throws Exception { + runTest("../../completion/testData/basic/common/typeArgsOrNot/SecondTypeArg3.kt"); + } + + @TestMetadata("SecondTypeArg4.kt") + public void testSecondTypeArg4() throws Exception { + runTest("../../completion/testData/basic/common/typeArgsOrNot/SecondTypeArg4.kt"); + } + } + + @RunWith(JUnit3RunnerWithInners.class) + @TestMetadata("../../completion/testData/basic/common") + public static class Uncategorized extends AbstractK2JsBasicCompletionTest { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); + } + + @TestMetadata("AfterFloatOnNewLine.kt") + public void testAfterFloatOnNewLine() throws Exception { + runTest("../../completion/testData/basic/common/AfterFloatOnNewLine.kt"); + } + + @TestMetadata("AfterIntSeparatedWithComments.kt") + public void testAfterIntSeparatedWithComments() throws Exception { + runTest("../../completion/testData/basic/common/AfterIntSeparatedWithComments.kt"); + } + + @TestMetadata("ambiguousSuperMethod.kt") + public void testAmbiguousSuperMethod() throws Exception { + runTest("../../completion/testData/basic/common/ambiguousSuperMethod.kt"); + } + + @TestMetadata("ambiguousSuperMethodDiamond.kt") + public void testAmbiguousSuperMethodDiamond() throws Exception { + runTest("../../completion/testData/basic/common/ambiguousSuperMethodDiamond.kt"); + } + + @TestMetadata("ambiguousSuperMethodDiamondAny.kt") + public void testAmbiguousSuperMethodDiamondAny() throws Exception { + runTest("../../completion/testData/basic/common/ambiguousSuperMethodDiamondAny.kt"); + } + + @TestMetadata("ambiguousSuperMethodHigherUp.kt") + public void testAmbiguousSuperMethodHigherUp() throws Exception { + runTest("../../completion/testData/basic/common/ambiguousSuperMethodHigherUp.kt"); + } + + @TestMetadata("ambiguousSuperMethodLambdaArgument.kt") + public void testAmbiguousSuperMethodLambdaArgument() throws Exception { + runTest("../../completion/testData/basic/common/ambiguousSuperMethodLambdaArgument.kt"); + } + + @TestMetadata("ambiguousSuperMethodSingleImpl.kt") + public void testAmbiguousSuperMethodSingleImpl() throws Exception { + runTest("../../completion/testData/basic/common/ambiguousSuperMethodSingleImpl.kt"); + } + + @TestMetadata("BasicAny.kt") + public void testBasicAny() throws Exception { + runTest("../../completion/testData/basic/common/BasicAny.kt"); + } + + @TestMetadata("BasicInt.kt") + public void testBasicInt() throws Exception { + runTest("../../completion/testData/basic/common/BasicInt.kt"); + } + + @TestMetadata("BeforeDotInCall.kt") + public void testBeforeDotInCall() throws Exception { + runTest("../../completion/testData/basic/common/BeforeDotInCall.kt"); + } + + @TestMetadata("CallLocalLambda.kt") + public void testCallLocalLambda() throws Exception { + runTest("../../completion/testData/basic/common/CallLocalLambda.kt"); + } + + @TestMetadata("classObjectElementsInClass.kt") + public void testClassObjectElementsInClass() throws Exception { + runTest("../../completion/testData/basic/common/classObjectElementsInClass.kt"); + } + + @TestMetadata("ClassRedeclaration1.kt") + public void testClassRedeclaration1() throws Exception { + runTest("../../completion/testData/basic/common/ClassRedeclaration1.kt"); + } + + @TestMetadata("ClassRedeclaration2.kt") + public void testClassRedeclaration2() throws Exception { + runTest("../../completion/testData/basic/common/ClassRedeclaration2.kt"); + } + + @TestMetadata("CompletionInSetter.kt") + public void testCompletionInSetter() throws Exception { + runTest("../../completion/testData/basic/common/CompletionInSetter.kt"); + } + + @TestMetadata("ComponentFunction.kt") + public void testComponentFunction() throws Exception { + runTest("../../completion/testData/basic/common/ComponentFunction.kt"); + } + + @TestMetadata("ConsiderExtensionType.kt") + public void testConsiderExtensionType() throws Exception { + runTest("../../completion/testData/basic/common/ConsiderExtensionType.kt"); + } + + @TestMetadata("CoroutineContextReleaseCoroutines.kt") + public void testCoroutineContextReleaseCoroutines() throws Exception { + runTest("../../completion/testData/basic/common/CoroutineContextReleaseCoroutines.kt"); + } + + @TestMetadata("DataClassMembers.kt") + public void testDataClassMembers() throws Exception { + runTest("../../completion/testData/basic/common/DataClassMembers.kt"); + } + + @TestMetadata("DataClassMembers2.kt") + public void testDataClassMembers2() throws Exception { + runTest("../../completion/testData/basic/common/DataClassMembers2.kt"); + } + + @TestMetadata("EnumEntriesInsideAbsentWhenFeatureDisabled.kt") + public void testEnumEntriesInsideAbsentWhenFeatureDisabled() throws Exception { + runTest("../../completion/testData/basic/common/EnumEntriesInsideAbsentWhenFeatureDisabled.kt"); + } + + @TestMetadata("EnumEntriesQualifiedAbsentWhenFeatureDisabled.kt") + public void testEnumEntriesQualifiedAbsentWhenFeatureDisabled() throws Exception { + runTest("../../completion/testData/basic/common/EnumEntriesQualifiedAbsentWhenFeatureDisabled.kt"); + } + + @TestMetadata("EnumEntryInitializerMethods.kt") + public void testEnumEntryInitializerMethods() throws Exception { + runTest("../../completion/testData/basic/common/EnumEntryInitializerMethods.kt"); + } + + @TestMetadata("EnumEntryInitializerMethods2.kt") + public void testEnumEntryInitializerMethods2() throws Exception { + runTest("../../completion/testData/basic/common/EnumEntryInitializerMethods2.kt"); + } + + @TestMetadata("EnumItemsThroughChainedTypeAlias.kt") + public void testEnumItemsThroughChainedTypeAlias() throws Exception { + runTest("../../completion/testData/basic/common/EnumItemsThroughChainedTypeAlias.kt"); + } + + @TestMetadata("EnumItemsThroughSingleTypeAlias.kt") + public void testEnumItemsThroughSingleTypeAlias() throws Exception { + runTest("../../completion/testData/basic/common/EnumItemsThroughSingleTypeAlias.kt"); + } + + @TestMetadata("EnumUserDefinedEntriesNotAbsentWhenFeatureDisabled.kt") + public void testEnumUserDefinedEntriesNotAbsentWhenFeatureDisabled() throws Exception { + runTest("../../completion/testData/basic/common/EnumUserDefinedEntriesNotAbsentWhenFeatureDisabled.kt"); + } + + @TestMetadata("EnumValuesMethodLowerPriority.kt") + public void testEnumValuesMethodLowerPriority() throws Exception { + runTest("../../completion/testData/basic/common/EnumValuesMethodLowerPriority.kt"); + } + + @TestMetadata("EnumValuesMethodUsualPriorityWhenFeatureDisabled.kt") + public void testEnumValuesMethodUsualPriorityWhenFeatureDisabled() throws Exception { + runTest("../../completion/testData/basic/common/EnumValuesMethodUsualPriorityWhenFeatureDisabled.kt"); + } + + @TestMetadata("ExtendClassName.kt") + public void testExtendClassName() throws Exception { + runTest("../../completion/testData/basic/common/ExtendClassName.kt"); + } + + @TestMetadata("ExtendQualifiedClassName.kt") + public void testExtendQualifiedClassName() throws Exception { + runTest("../../completion/testData/basic/common/ExtendQualifiedClassName.kt"); + } + + @TestMetadata("ExtensionForProperty.kt") + public void testExtensionForProperty() throws Exception { + runTest("../../completion/testData/basic/common/ExtensionForProperty.kt"); + } + + @TestMetadata("ExtensionFunctionInClassObject.kt") + public void testExtensionFunctionInClassObject() throws Exception { + runTest("../../completion/testData/basic/common/ExtensionFunctionInClassObject.kt"); + } + + @TestMetadata("ExtensionOnTypeAliasFromOtherTypeAlias.kt") + public void testExtensionOnTypeAliasFromOtherTypeAlias() throws Exception { + runTest("../../completion/testData/basic/common/ExtensionOnTypeAliasFromOtherTypeAlias.kt"); + } + + @TestMetadata("ExtensionToIntInFloatStyle.kt") + public void testExtensionToIntInFloatStyle() throws Exception { + runTest("../../completion/testData/basic/common/ExtensionToIntInFloatStyle.kt"); + } + + @TestMetadata("ExtensionWithAdditionalTypeParameters.kt") + public void testExtensionWithAdditionalTypeParameters() throws Exception { + runTest("../../completion/testData/basic/common/ExtensionWithAdditionalTypeParameters.kt"); + } + + @TestMetadata("ExtensionWithGenericParamInReceiver.kt") + public void testExtensionWithGenericParamInReceiver() throws Exception { + runTest("../../completion/testData/basic/common/ExtensionWithGenericParamInReceiver.kt"); + } + + @TestMetadata("ExtensionWithGenericReceiver.kt") + public void testExtensionWithGenericReceiver() throws Exception { + runTest("../../completion/testData/basic/common/ExtensionWithGenericReceiver.kt"); + } + + @TestMetadata("ExtensionWithInternalGenericParameters.kt") + public void testExtensionWithInternalGenericParameters() throws Exception { + runTest("../../completion/testData/basic/common/ExtensionWithInternalGenericParameters.kt"); + } + + @TestMetadata("ExtensionWithManyTypeParamsInReceiver.kt") + public void testExtensionWithManyTypeParamsInReceiver() throws Exception { + runTest("../../completion/testData/basic/common/ExtensionWithManyTypeParamsInReceiver.kt"); + } + + @TestMetadata("ExtensionsWithTypeParameterConstraints.kt") + public void testExtensionsWithTypeParameterConstraints() throws Exception { + runTest("../../completion/testData/basic/common/ExtensionsWithTypeParameterConstraints.kt"); + } + + @TestMetadata("FromImports.kt") + public void testFromImports() throws Exception { + runTest("../../completion/testData/basic/common/FromImports.kt"); + } + + @TestMetadata("FunctionCompletionFormatting.kt") + public void testFunctionCompletionFormatting() throws Exception { + runTest("../../completion/testData/basic/common/FunctionCompletionFormatting.kt"); + } + + @TestMetadata("FunctionVariableCallArgument.kt") + public void testFunctionVariableCallArgument() throws Exception { + runTest("../../completion/testData/basic/common/FunctionVariableCallArgument.kt"); + } + + @TestMetadata("GenericCompanionExtension.kt") + public void testGenericCompanionExtension() throws Exception { + runTest("../../completion/testData/basic/common/GenericCompanionExtension.kt"); + } + + @TestMetadata("GenericKotlinClass.kt") + public void testGenericKotlinClass() throws Exception { + runTest("../../completion/testData/basic/common/GenericKotlinClass.kt"); + } + + @TestMetadata("GetPrefixForProperties.kt") + public void testGetPrefixForProperties() throws Exception { + runTest("../../completion/testData/basic/common/GetPrefixForProperties.kt"); + } + + @TestMetadata("ImportedEnumMembers.kt") + public void testImportedEnumMembers() throws Exception { + runTest("../../completion/testData/basic/common/ImportedEnumMembers.kt"); + } + + @TestMetadata("ImportedExtensionFromObject.kt") + public void testImportedExtensionFromObject() throws Exception { + runTest("../../completion/testData/basic/common/ImportedExtensionFromObject.kt"); + } + + @TestMetadata("ImportedMemberFromObject.kt") + public void testImportedMemberFromObject() throws Exception { + runTest("../../completion/testData/basic/common/ImportedMemberFromObject.kt"); + } + + @TestMetadata("InCallExpression.kt") + public void testInCallExpression() throws Exception { + runTest("../../completion/testData/basic/common/InCallExpression.kt"); + } + + @TestMetadata("InClassInitializer.kt") + public void testInClassInitializer() throws Exception { + runTest("../../completion/testData/basic/common/InClassInitializer.kt"); + } + + @TestMetadata("InClassObject.kt") + public void testInClassObject() throws Exception { + runTest("../../completion/testData/basic/common/InClassObject.kt"); + } + + @TestMetadata("InClassPropertyAccessor.kt") + public void testInClassPropertyAccessor() throws Exception { + runTest("../../completion/testData/basic/common/InClassPropertyAccessor.kt"); + } + + @TestMetadata("InEmptyImport.kt") + public void testInEmptyImport() throws Exception { + runTest("../../completion/testData/basic/common/InEmptyImport.kt"); + } + + @TestMetadata("InEmptyPackage.kt") + public void testInEmptyPackage() throws Exception { + runTest("../../completion/testData/basic/common/InEmptyPackage.kt"); + } + + @TestMetadata("InExpressionNoPrefix.kt") + public void testInExpressionNoPrefix() throws Exception { + runTest("../../completion/testData/basic/common/InExpressionNoPrefix.kt"); + } + + @TestMetadata("InExtendTypeAnnotation.kt") + public void testInExtendTypeAnnotation() throws Exception { + runTest("../../completion/testData/basic/common/InExtendTypeAnnotation.kt"); + } + + @TestMetadata("InFileWithMultiDeclaration.kt") + public void testInFileWithMultiDeclaration() throws Exception { + runTest("../../completion/testData/basic/common/InFileWithMultiDeclaration.kt"); + } + + @TestMetadata("InFileWithTypedef.kt") + public void testInFileWithTypedef() throws Exception { + runTest("../../completion/testData/basic/common/InFileWithTypedef.kt"); + } + + @TestMetadata("InFunInClassInitializer.kt") + public void testInFunInClassInitializer() throws Exception { + runTest("../../completion/testData/basic/common/InFunInClassInitializer.kt"); + } + + @TestMetadata("InFunctionArguments.kt") + public void testInFunctionArguments() throws Exception { + runTest("../../completion/testData/basic/common/InFunctionArguments.kt"); + } + + @TestMetadata("InGlobalPropertyInitializer.kt") + public void testInGlobalPropertyInitializer() throws Exception { + runTest("../../completion/testData/basic/common/InGlobalPropertyInitializer.kt"); + } + + @TestMetadata("InImport.kt") + public void testInImport() throws Exception { + runTest("../../completion/testData/basic/common/InImport.kt"); + } + + @TestMetadata("InInitializerInPropertyAccessor.kt") + public void testInInitializerInPropertyAccessor() throws Exception { + runTest("../../completion/testData/basic/common/InInitializerInPropertyAccessor.kt"); + } + + @TestMetadata("InInnerClass.kt") + public void testInInnerClass() throws Exception { + runTest("../../completion/testData/basic/common/InInnerClass.kt"); + } + + @TestMetadata("InLambda.kt") + public void testInLambda() throws Exception { + runTest("../../completion/testData/basic/common/InLambda.kt"); + } + + @TestMetadata("InLocalObjectDeclaration.kt") + public void testInLocalObjectDeclaration() throws Exception { + runTest("../../completion/testData/basic/common/InLocalObjectDeclaration.kt"); + } + + @TestMetadata("InLongDotQualifiedExpression.kt") + public void testInLongDotQualifiedExpression() throws Exception { + runTest("../../completion/testData/basic/common/InLongDotQualifiedExpression.kt"); + } + + @TestMetadata("InMiddleOfPackage.kt") + public void testInMiddleOfPackage() throws Exception { + runTest("../../completion/testData/basic/common/InMiddleOfPackage.kt"); + } + + @TestMetadata("InMiddleOfPackageDirective.kt") + public void testInMiddleOfPackageDirective() throws Exception { + runTest("../../completion/testData/basic/common/InMiddleOfPackageDirective.kt"); + } + + @TestMetadata("InNestedClass.kt") + public void testInNestedClass() throws Exception { + runTest("../../completion/testData/basic/common/InNestedClass.kt"); + } + + @TestMetadata("InObjectInDelegationSpecifier.kt") + public void testInObjectInDelegationSpecifier() throws Exception { + runTest("../../completion/testData/basic/common/InObjectInDelegationSpecifier.kt"); + } + + @TestMetadata("InPackage.kt") + public void testInPackage() throws Exception { + runTest("../../completion/testData/basic/common/InPackage.kt"); + } + + @TestMetadata("InParametersTypes.kt") + public void testInParametersTypes() throws Exception { + runTest("../../completion/testData/basic/common/InParametersTypes.kt"); + } + + @TestMetadata("InParametersTypesForce.kt") + public void testInParametersTypesForce() throws Exception { + runTest("../../completion/testData/basic/common/InParametersTypesForce.kt"); + } + + @TestMetadata("InPropertyAccessor.kt") + public void testInPropertyAccessor() throws Exception { + runTest("../../completion/testData/basic/common/InPropertyAccessor.kt"); + } + + @TestMetadata("InPropertyInitializer.kt") + public void testInPropertyInitializer() throws Exception { + runTest("../../completion/testData/basic/common/InPropertyInitializer.kt"); + } + + @TestMetadata("InSecondaryConstructorBody.kt") + public void testInSecondaryConstructorBody() throws Exception { + runTest("../../completion/testData/basic/common/InSecondaryConstructorBody.kt"); + } + + @TestMetadata("InSecondaryConstructorDefaultParameter.kt") + public void testInSecondaryConstructorDefaultParameter() throws Exception { + runTest("../../completion/testData/basic/common/InSecondaryConstructorDefaultParameter.kt"); + } + + @TestMetadata("InSecondaryConstructorDelegationCall.kt") + public void testInSecondaryConstructorDelegationCall() throws Exception { + runTest("../../completion/testData/basic/common/InSecondaryConstructorDelegationCall.kt"); + } + + @TestMetadata("InSecondaryConstructorFirstDefaultParameter.kt") + public void testInSecondaryConstructorFirstDefaultParameter() throws Exception { + runTest("../../completion/testData/basic/common/InSecondaryConstructorFirstDefaultParameter.kt"); + } + + @TestMetadata("InTypeAnnotation.kt") + public void testInTypeAnnotation() throws Exception { + runTest("../../completion/testData/basic/common/InTypeAnnotation.kt"); + } + + @TestMetadata("InfixCall.kt") + public void testInfixCall() throws Exception { + runTest("../../completion/testData/basic/common/InfixCall.kt"); + } + + @TestMetadata("InfixCallNoSpecialLambdaArgumentItem.kt") + public void testInfixCallNoSpecialLambdaArgumentItem() throws Exception { + runTest("../../completion/testData/basic/common/InfixCallNoSpecialLambdaArgumentItem.kt"); + } + + @TestMetadata("InnerClass.kt") + public void testInnerClass() throws Exception { + runTest("../../completion/testData/basic/common/InnerClass.kt"); + } + + @TestMetadata("InnerInBaseClass.kt") + public void testInnerInBaseClass() throws Exception { + runTest("../../completion/testData/basic/common/InnerInBaseClass.kt"); + } + + @TestMetadata("InsideAnonymousClass.kt") + public void testInsideAnonymousClass() throws Exception { + runTest("../../completion/testData/basic/common/InsideAnonymousClass.kt"); + } + + @TestMetadata("InterfaceNameBeforeRunBug.kt") + public void testInterfaceNameBeforeRunBug() throws Exception { + runTest("../../completion/testData/basic/common/InterfaceNameBeforeRunBug.kt"); + } + + @TestMetadata("KT10664.kt") + public void testKT10664() throws Exception { + runTest("../../completion/testData/basic/common/KT10664.kt"); + } + + @TestMetadata("KT12033.kt") + public void testKT12033() throws Exception { + runTest("../../completion/testData/basic/common/KT12033.kt"); + } + + @TestMetadata("KT13780.kt") + public void testKT13780() throws Exception { + runTest("../../completion/testData/basic/common/KT13780.kt"); + } + + @TestMetadata("KT13780_1.kt") + public void testKT13780_1() throws Exception { + runTest("../../completion/testData/basic/common/KT13780_1.kt"); + } + + @TestMetadata("KT31762.kt") + public void testKT31762() throws Exception { + runTest("../../completion/testData/basic/common/KT31762.kt"); + } + + @TestMetadata("KT33903_1.kt") + public void testKT33903_1() throws Exception { + runTest("../../completion/testData/basic/common/KT33903_1.kt"); + } + + @TestMetadata("KT33903_2.kt") + public void testKT33903_2() throws Exception { + runTest("../../completion/testData/basic/common/KT33903_2.kt"); + } + + @TestMetadata("KTIJ20039.kt") + public void testKTIJ20039() throws Exception { + runTest("../../completion/testData/basic/common/KTIJ20039.kt"); + } + + @TestMetadata("KeywordsAreLowInParameterTypeCompletion1.kt") + public void testKeywordsAreLowInParameterTypeCompletion1() throws Exception { + runTest("../../completion/testData/basic/common/KeywordsAreLowInParameterTypeCompletion1.kt"); + } + + @TestMetadata("KeywordsAreLowInParameterTypeCompletion2.kt") + public void testKeywordsAreLowInParameterTypeCompletion2() throws Exception { + runTest("../../completion/testData/basic/common/KeywordsAreLowInParameterTypeCompletion2.kt"); + } + + @TestMetadata("KeywordsAreLowInParameterTypeCompletion3.kt") + public void testKeywordsAreLowInParameterTypeCompletion3() throws Exception { + runTest("../../completion/testData/basic/common/KeywordsAreLowInParameterTypeCompletion3.kt"); + } + + @TestMetadata("KeywordsAreLowInParameterTypeCompletion4.kt") + public void testKeywordsAreLowInParameterTypeCompletion4() throws Exception { + runTest("../../completion/testData/basic/common/KeywordsAreLowInParameterTypeCompletion4.kt"); + } + + @TestMetadata("LocalFunctions.kt") + public void testLocalFunctions() throws Exception { + runTest("../../completion/testData/basic/common/LocalFunctions.kt"); + } + + @TestMetadata("localInnerClass.kt") + public void testLocalInnerClass() throws Exception { + runTest("../../completion/testData/basic/common/localInnerClass.kt"); + } + + @TestMetadata("LocalMultideclarationValues.kt") + public void testLocalMultideclarationValues() throws Exception { + runTest("../../completion/testData/basic/common/LocalMultideclarationValues.kt"); + } + + @TestMetadata("NamedObject.kt") + public void testNamedObject() throws Exception { + runTest("../../completion/testData/basic/common/NamedObject.kt"); + } + + @TestMetadata("NestedBuiltInClass.kt") + public void testNestedBuiltInClass() throws Exception { + runTest("../../completion/testData/basic/common/NestedBuiltInClass.kt"); + } + + @TestMetadata("NestedClassBug.kt") + public void testNestedClassBug() throws Exception { + runTest("../../completion/testData/basic/common/NestedClassBug.kt"); + } + + @TestMetadata("NestedClassesOnClassWithDefaultObject.kt") + public void testNestedClassesOnClassWithDefaultObject() throws Exception { + runTest("../../completion/testData/basic/common/NestedClassesOnClassWithDefaultObject.kt"); + } + + @TestMetadata("NestedClassesOnClassWithNamedDefaultObject.kt") + public void testNestedClassesOnClassWithNamedDefaultObject() throws Exception { + runTest("../../completion/testData/basic/common/NestedClassesOnClassWithNamedDefaultObject.kt"); + } + + @TestMetadata("NestedClassesOnDefaultObjectLiteral.kt") + public void testNestedClassesOnDefaultObjectLiteral() throws Exception { + runTest("../../completion/testData/basic/common/NestedClassesOnDefaultObjectLiteral.kt"); + } + + @TestMetadata("NoClassNameDuplication.kt") + public void testNoClassNameDuplication() throws Exception { + runTest("../../completion/testData/basic/common/NoClassNameDuplication.kt"); + } + + @TestMetadata("NoCompletionForCoroutinesIntinsics.kt") + public void testNoCompletionForCoroutinesIntinsics() throws Exception { + runTest("../../completion/testData/basic/common/NoCompletionForCoroutinesIntinsics.kt"); + } + + @TestMetadata("NoCompletionForCoroutinesJvmInternal.kt") + public void testNoCompletionForCoroutinesJvmInternal() throws Exception { + runTest("../../completion/testData/basic/common/NoCompletionForCoroutinesJvmInternal.kt"); + } + + @TestMetadata("NoCompletionForExcluded.kt") + public void testNoCompletionForExcluded() throws Exception { + runTest("../../completion/testData/basic/common/NoCompletionForExcluded.kt"); + } + + @TestMetadata("NoEmptyPackage.kt") + public void testNoEmptyPackage() throws Exception { + runTest("../../completion/testData/basic/common/NoEmptyPackage.kt"); + } + + @TestMetadata("NoEnumEntryType.kt") + public void testNoEnumEntryType() throws Exception { + runTest("../../completion/testData/basic/common/NoEnumEntryType.kt"); + } + + @TestMetadata("NoEnumMembersFromImplicitQualifier.kt") + public void testNoEnumMembersFromImplicitQualifier() throws Exception { + runTest("../../completion/testData/basic/common/NoEnumMembersFromImplicitQualifier.kt"); + } + + @TestMetadata("NoExtensionsAfterQualifier.kt") + public void testNoExtensionsAfterQualifier() throws Exception { + runTest("../../completion/testData/basic/common/NoExtensionsAfterQualifier.kt"); + } + + @TestMetadata("NoLocalsDeclaredAhead.kt") + public void testNoLocalsDeclaredAhead() throws Exception { + runTest("../../completion/testData/basic/common/NoLocalsDeclaredAhead.kt"); + } + + @TestMetadata("NoNestedClassAfterReceiver.kt") + public void testNoNestedClassAfterReceiver() throws Exception { + runTest("../../completion/testData/basic/common/NoNestedClassAfterReceiver.kt"); + } + + @TestMetadata("NoNestedClassesFromImplicitQualifier.kt") + public void testNoNestedClassesFromImplicitQualifier() throws Exception { + runTest("../../completion/testData/basic/common/NoNestedClassesFromImplicitQualifier.kt"); + } + + @TestMetadata("NoPackageFacadeClasses.kt") + public void testNoPackageFacadeClasses() throws Exception { + runTest("../../completion/testData/basic/common/NoPackageFacadeClasses.kt"); + } + + @TestMetadata("NoParameterAnnotationInPresentation.kt") + public void testNoParameterAnnotationInPresentation() throws Exception { + runTest("../../completion/testData/basic/common/NoParameterAnnotationInPresentation.kt"); + } + + @TestMetadata("NoTopLevelCompletionInQualifiedUserTypes.kt") + public void testNoTopLevelCompletionInQualifiedUserTypes() throws Exception { + runTest("../../completion/testData/basic/common/NoTopLevelCompletionInQualifiedUserTypes.kt"); + } + + @TestMetadata("ObjectInTypePosition.kt") + public void testObjectInTypePosition() throws Exception { + runTest("../../completion/testData/basic/common/ObjectInTypePosition.kt"); + } + + @TestMetadata("ObjectMembersFromNested.kt") + public void testObjectMembersFromNested() throws Exception { + runTest("../../completion/testData/basic/common/ObjectMembersFromNested.kt"); + } + + @TestMetadata("ObjectRedeclaration1.kt") + public void testObjectRedeclaration1() throws Exception { + runTest("../../completion/testData/basic/common/ObjectRedeclaration1.kt"); + } + + @TestMetadata("ObjectRedeclaration2.kt") + public void testObjectRedeclaration2() throws Exception { + runTest("../../completion/testData/basic/common/ObjectRedeclaration2.kt"); + } + + @TestMetadata("OverloadFunctions.kt") + public void testOverloadFunctions() throws Exception { + runTest("../../completion/testData/basic/common/OverloadFunctions.kt"); + } + + @TestMetadata("parameterDefaultValueInFunction.kt") + public void testParameterDefaultValueInFunction() throws Exception { + runTest("../../completion/testData/basic/common/parameterDefaultValueInFunction.kt"); + } + + @TestMetadata("PreferLessParameters.kt") + public void testPreferLessParameters() throws Exception { + runTest("../../completion/testData/basic/common/PreferLessParameters.kt"); + } + + @TestMetadata("ProtectedExtensionMethod.kt") + public void testProtectedExtensionMethod() throws Exception { + runTest("../../completion/testData/basic/common/ProtectedExtensionMethod.kt"); + } + + @TestMetadata("QualifiedSuperMembers.kt") + public void testQualifiedSuperMembers() throws Exception { + runTest("../../completion/testData/basic/common/QualifiedSuperMembers.kt"); + } + + @TestMetadata("RecieverMembersFromExtAccessor.kt") + public void testRecieverMembersFromExtAccessor() throws Exception { + runTest("../../completion/testData/basic/common/RecieverMembersFromExtAccessor.kt"); + } + + @TestMetadata("RecieverMembersFromExtFun.kt") + public void testRecieverMembersFromExtFun() throws Exception { + runTest("../../completion/testData/basic/common/RecieverMembersFromExtFun.kt"); + } + + @TestMetadata("ReferenceThroughChainedTypeAlias.kt") + public void testReferenceThroughChainedTypeAlias() throws Exception { + runTest("../../completion/testData/basic/common/ReferenceThroughChainedTypeAlias.kt"); + } + + @TestMetadata("SecondTypeArg.kt") + public void testSecondTypeArg() throws Exception { + runTest("../../completion/testData/basic/common/SecondTypeArg.kt"); + } + + @TestMetadata("SetPrefixForProperties.kt") + public void testSetPrefixForProperties() throws Exception { + runTest("../../completion/testData/basic/common/SetPrefixForProperties.kt"); + } + + @TestMetadata("ShortClassNamesInTypePosition.kt") + public void testShortClassNamesInTypePosition() throws Exception { + runTest("../../completion/testData/basic/common/ShortClassNamesInTypePosition.kt"); + } + + @TestMetadata("StandardJetArrayFirst.kt") + public void testStandardJetArrayFirst() throws Exception { + runTest("../../completion/testData/basic/common/StandardJetArrayFirst.kt"); + } + + @TestMetadata("StandardJetDoubleFirst.kt") + public void testStandardJetDoubleFirst() throws Exception { + runTest("../../completion/testData/basic/common/StandardJetDoubleFirst.kt"); + } + + @TestMetadata("SubpackageInFun.kt") + public void testSubpackageInFun() throws Exception { + runTest("../../completion/testData/basic/common/SubpackageInFun.kt"); + } + + @TestMetadata("SuperMembers.kt") + public void testSuperMembers() throws Exception { + runTest("../../completion/testData/basic/common/SuperMembers.kt"); + } + + @TestMetadata("SuperMembers2.kt") + public void testSuperMembers2() throws Exception { + runTest("../../completion/testData/basic/common/SuperMembers2.kt"); + } + + @TestMetadata("SuperMembers3.kt") + public void testSuperMembers3() throws Exception { + runTest("../../completion/testData/basic/common/SuperMembers3.kt"); + } + + @TestMetadata("SuperMembers4.kt") + public void testSuperMembers4() throws Exception { + runTest("../../completion/testData/basic/common/SuperMembers4.kt"); + } + + @TestMetadata("SuperWithQualifier.kt") + public void testSuperWithQualifier() throws Exception { + runTest("../../completion/testData/basic/common/SuperWithQualifier.kt"); + } + + @TestMetadata("SuspendCanBePrefixSelectedInParameterTypeCompletion.kt") + public void testSuspendCanBePrefixSelectedInParameterTypeCompletion() throws Exception { + runTest("../../completion/testData/basic/common/SuspendCanBePrefixSelectedInParameterTypeCompletion.kt"); + } + + @TestMetadata("TopLevelClassCompletionInQualifiedCall.kt") + public void testTopLevelClassCompletionInQualifiedCall() throws Exception { + runTest("../../completion/testData/basic/common/TopLevelClassCompletionInQualifiedCall.kt"); + } + + @TestMetadata("TopLevelClassName1.kt") + public void testTopLevelClassName1() throws Exception { + runTest("../../completion/testData/basic/common/TopLevelClassName1.kt"); + } + + @TestMetadata("topLevelClassName2.kt") + public void testTopLevelClassName2() throws Exception { + runTest("../../completion/testData/basic/common/topLevelClassName2.kt"); + } + + @TestMetadata("TopLevelClassName4.kt") + public void testTopLevelClassName4() throws Exception { + runTest("../../completion/testData/basic/common/TopLevelClassName4.kt"); + } + + @TestMetadata("TopLevelClassName5.kt") + public void testTopLevelClassName5() throws Exception { + runTest("../../completion/testData/basic/common/TopLevelClassName5.kt"); + } + + @TestMetadata("TopLevelClassName6.kt") + public void testTopLevelClassName6() throws Exception { + runTest("../../completion/testData/basic/common/TopLevelClassName6.kt"); + } + + @TestMetadata("TopLevelClassName-3.kt") + public void testTopLevelClassName_3() throws Exception { + runTest("../../completion/testData/basic/common/TopLevelClassName-3.kt"); + } + + @TestMetadata("TypeArgCompletionBug.kt") + public void testTypeArgCompletionBug() throws Exception { + runTest("../../completion/testData/basic/common/TypeArgCompletionBug.kt"); + } + + @TestMetadata("TypeArgFromTheSameFile.kt") + public void testTypeArgFromTheSameFile() throws Exception { + runTest("../../completion/testData/basic/common/TypeArgFromTheSameFile.kt"); + } + + @TestMetadata("TypeArgOfOwnerClass.kt") + public void testTypeArgOfOwnerClass() throws Exception { + runTest("../../completion/testData/basic/common/TypeArgOfOwnerClass.kt"); + } + + @TestMetadata("TypeParameterFromOuterClass.kt") + public void testTypeParameterFromOuterClass() throws Exception { + runTest("../../completion/testData/basic/common/TypeParameterFromOuterClass.kt"); + } + + @TestMetadata("TypeParameterInReturnType.kt") + public void testTypeParameterInReturnType() throws Exception { + runTest("../../completion/testData/basic/common/TypeParameterInReturnType.kt"); + } + + @TestMetadata("VargsBeforeNoArgs.kt") + public void testVargsBeforeNoArgs() throws Exception { + runTest("../../completion/testData/basic/common/VargsBeforeNoArgs.kt"); + } + + @TestMetadata("VariableClassName.kt") + public void testVariableClassName() throws Exception { + runTest("../../completion/testData/basic/common/VariableClassName.kt"); + } + } + + @RunWith(JUnit3RunnerWithInners.class) + @TestMetadata("../../completion/testData/basic/common/variableNameAndType") + public static class VariableNameAndType extends AbstractK2JsBasicCompletionTest { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); + } + + @TestMetadata("Lateinit.kt") + public void testLateinit() throws Exception { + runTest("../../completion/testData/basic/common/variableNameAndType/Lateinit.kt"); + } + + @TestMetadata("Local.kt") + public void testLocal() throws Exception { + runTest("../../completion/testData/basic/common/variableNameAndType/Local.kt"); + } + + @TestMetadata("TopLevel.kt") + public void testTopLevel() throws Exception { + runTest("../../completion/testData/basic/common/variableNameAndType/TopLevel.kt"); + } + } + + @RunWith(JUnit3RunnerWithInners.class) + @TestMetadata("../../completion/testData/basic/common/visibility") + public static class Visibility extends AbstractK2JsBasicCompletionTest { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); + } + + @TestMetadata("KT9970.kt") + public void testKT9970() throws Exception { + runTest("../../completion/testData/basic/common/visibility/KT9970.kt"); + } + + @TestMetadata("VisibilityClassMembersFromExternal.kt") + public void testVisibilityClassMembersFromExternal() throws Exception { + runTest("../../completion/testData/basic/common/visibility/VisibilityClassMembersFromExternal.kt"); + } + + @TestMetadata("VisibilityClassMembersFromExternalForce.kt") + public void testVisibilityClassMembersFromExternalForce() throws Exception { + runTest("../../completion/testData/basic/common/visibility/VisibilityClassMembersFromExternalForce.kt"); + } + + @TestMetadata("VisibilityInSubclass.kt") + public void testVisibilityInSubclass() throws Exception { + runTest("../../completion/testData/basic/common/visibility/VisibilityInSubclass.kt"); + } + + @TestMetadata("VisibilityInSubclassForce.kt") + public void testVisibilityInSubclassForce() throws Exception { + runTest("../../completion/testData/basic/common/visibility/VisibilityInSubclassForce.kt"); + } + + @TestMetadata("VisibilityOfClassMembersFromLocalClassConstructor.kt") + public void testVisibilityOfClassMembersFromLocalClassConstructor() throws Exception { + runTest("../../completion/testData/basic/common/visibility/VisibilityOfClassMembersFromLocalClassConstructor.kt"); + } + + @TestMetadata("VisibilityOfClassMembersFromLocalClassMember.kt") + public void testVisibilityOfClassMembersFromLocalClassMember() throws Exception { + runTest("../../completion/testData/basic/common/visibility/VisibilityOfClassMembersFromLocalClassMember.kt"); + } + + @TestMetadata("VisibilityOfCompanionObjectMembersFromOutside.kt") + public void testVisibilityOfCompanionObjectMembersFromOutside() throws Exception { + runTest("../../completion/testData/basic/common/visibility/VisibilityOfCompanionObjectMembersFromOutside.kt"); + } + + @TestMetadata("VisibilityOfCompanionObjectMembersFromSubclass.kt") + public void testVisibilityOfCompanionObjectMembersFromSubclass() throws Exception { + runTest("../../completion/testData/basic/common/visibility/VisibilityOfCompanionObjectMembersFromSubclass.kt"); + } + + @TestMetadata("VisibilityPrivateToThis.kt") + public void testVisibilityPrivateToThis() throws Exception { + runTest("../../completion/testData/basic/common/visibility/VisibilityPrivateToThis.kt"); + } + + @TestMetadata("VisibilityPrivateToThisInConstructor.kt") + public void testVisibilityPrivateToThisInConstructor() throws Exception { + runTest("../../completion/testData/basic/common/visibility/VisibilityPrivateToThisInConstructor.kt"); + } + + @TestMetadata("VisibilityPrivateToThisInConstructorWithThis.kt") + public void testVisibilityPrivateToThisInConstructorWithThis() throws Exception { + runTest("../../completion/testData/basic/common/visibility/VisibilityPrivateToThisInConstructorWithThis.kt"); + } + + @TestMetadata("VisibilityPrivateToThisInSpecialScope.kt") + public void testVisibilityPrivateToThisInSpecialScope() throws Exception { + runTest("../../completion/testData/basic/common/visibility/VisibilityPrivateToThisInSpecialScope.kt"); + } + + @TestMetadata("VisibilityPrivateToThisWithReceiver.kt") + public void testVisibilityPrivateToThisWithReceiver() throws Exception { + runTest("../../completion/testData/basic/common/visibility/VisibilityPrivateToThisWithReceiver.kt"); + } + + @TestMetadata("VisibilityPrivateToThisWithReceiver2.kt") + public void testVisibilityPrivateToThisWithReceiver2() throws Exception { + runTest("../../completion/testData/basic/common/visibility/VisibilityPrivateToThisWithReceiver2.kt"); + } + + @TestMetadata("VisibilityPrivateToThisWithThis.kt") + public void testVisibilityPrivateToThisWithThis() throws Exception { + runTest("../../completion/testData/basic/common/visibility/VisibilityPrivateToThisWithThis.kt"); + } + + @TestMetadata("VisibilityPrivateToThisWithWrongThis.kt") + public void testVisibilityPrivateToThisWithWrongThis() throws Exception { + runTest("../../completion/testData/basic/common/visibility/VisibilityPrivateToThisWithWrongThis.kt"); + } + } + + @RunWith(JUnit3RunnerWithInners.class) + @TestMetadata("../../completion/testData/basic/common/when") + public static class When extends AbstractK2JsBasicCompletionTest { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); + } + + @TestMetadata("callable.kt") + public void testCallable() throws Exception { + runTest("../../completion/testData/basic/common/when/callable.kt"); + } + + @TestMetadata("callable2.kt") + public void testCallable2() throws Exception { + runTest("../../completion/testData/basic/common/when/callable2.kt"); + } + + @TestMetadata("enumInEmptyWhen.kt") + public void testEnumInEmptyWhen() throws Exception { + runTest("../../completion/testData/basic/common/when/enumInEmptyWhen.kt"); + } + + @TestMetadata("enumInWhen.kt") + public void testEnumInWhen() throws Exception { + runTest("../../completion/testData/basic/common/when/enumInWhen.kt"); + } + + @TestMetadata("enumInWhenWithOtherConditions.kt") + public void testEnumInWhenWithOtherConditions() throws Exception { + runTest("../../completion/testData/basic/common/when/enumInWhenWithOtherConditions.kt"); + } + + @TestMetadata("enumInWhenWithPackage.kt") + public void testEnumInWhenWithPackage() throws Exception { + runTest("../../completion/testData/basic/common/when/enumInWhenWithPackage.kt"); + } + + @TestMetadata("nestedSealedClassInWhen.kt") + public void testNestedSealedClassInWhen() throws Exception { + runTest("../../completion/testData/basic/common/when/nestedSealedClassInWhen.kt"); + } + + @TestMetadata("nestedSealedClassInWhenWithPackage.kt") + public void testNestedSealedClassInWhenWithPackage() throws Exception { + runTest("../../completion/testData/basic/common/when/nestedSealedClassInWhenWithPackage.kt"); + } + + @TestMetadata("nonSealedClassInWhen.kt") + public void testNonSealedClassInWhen() throws Exception { + runTest("../../completion/testData/basic/common/when/nonSealedClassInWhen.kt"); + } + + @TestMetadata("nonSealedClassWithTypeArgs.kt") + public void testNonSealedClassWithTypeArgs() throws Exception { + runTest("../../completion/testData/basic/common/when/nonSealedClassWithTypeArgs.kt"); + } + + @TestMetadata("nullableEnumInWhen.kt") + public void testNullableEnumInWhen() throws Exception { + runTest("../../completion/testData/basic/common/when/nullableEnumInWhen.kt"); + } + + @TestMetadata("nullableSealedClassInWhen.kt") + public void testNullableSealedClassInWhen() throws Exception { + runTest("../../completion/testData/basic/common/when/nullableSealedClassInWhen.kt"); + } + + @TestMetadata("onTyping.kt") + public void testOnTyping() throws Exception { + runTest("../../completion/testData/basic/common/when/onTyping.kt"); + } + + @TestMetadata("sealedClassInWhen.kt") + public void testSealedClassInWhen() throws Exception { + runTest("../../completion/testData/basic/common/when/sealedClassInWhen.kt"); + } + + @TestMetadata("sealedClassInWhenWithOtherConditions.kt") + public void testSealedClassInWhenWithOtherConditions() throws Exception { + runTest("../../completion/testData/basic/common/when/sealedClassInWhenWithOtherConditions.kt"); + } + + @TestMetadata("sealedClassWithAbstractInheritorsInWhen.kt") + public void testSealedClassWithAbstractInheritorsInWhen() throws Exception { + runTest("../../completion/testData/basic/common/when/sealedClassWithAbstractInheritorsInWhen.kt"); + } + + @TestMetadata("sealedClassWithTypeArgs.kt") + public void testSealedClassWithTypeArgs() throws Exception { + runTest("../../completion/testData/basic/common/when/sealedClassWithTypeArgs.kt"); + } + + @TestMetadata("sealedInterfaceInWhen.kt") + public void testSealedInterfaceInWhen() throws Exception { + runTest("../../completion/testData/basic/common/when/sealedInterfaceInWhen.kt"); + } + + @TestMetadata("smartCast.kt") + public void testSmartCast() throws Exception { + runTest("../../completion/testData/basic/common/when/smartCast.kt"); + } + + @TestMetadata("smartCast2.kt") + public void testSmartCast2() throws Exception { + runTest("../../completion/testData/basic/common/when/smartCast2.kt"); + } + + @TestMetadata("smartCast3.kt") + public void testSmartCast3() throws Exception { + runTest("../../completion/testData/basic/common/when/smartCast3.kt"); + } + + @TestMetadata("typealias.kt") + public void testTypealias() throws Exception { + runTest("../../completion/testData/basic/common/when/typealias.kt"); + } + } + + @RunWith(JUnit3RunnerWithInners.class) + @TestMetadata("../../completion/testData/basic/common/where") + public static class Where extends AbstractK2JsBasicCompletionTest { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); + } + + @TestMetadata("noCompletionAfterDotInWhen.kt") + public void testNoCompletionAfterDotInWhen() throws Exception { + runTest("../../completion/testData/basic/common/where/noCompletionAfterDotInWhen.kt"); + } + + @TestMetadata("whereInClass.kt") + public void testWhereInClass() throws Exception { + runTest("../../completion/testData/basic/common/where/whereInClass.kt"); + } + + @TestMetadata("whereInFunction.kt") + public void testWhereInFunction() throws Exception { + runTest("../../completion/testData/basic/common/where/whereInFunction.kt"); + } + } + } + + @RunWith(JUnit3RunnerWithInners.class) + @TestMetadata("../../idea-fir/testData/completion/basic/common") + public abstract static class CommonFir extends AbstractK2JsBasicCompletionTest { + + } +} diff --git a/plugins/kotlin/fir/tests/test/org/jetbrains/kotlin/idea/fir/completion/AbstractK2JsBasicCompletionTest.kt b/plugins/kotlin/fir/tests/test/org/jetbrains/kotlin/idea/fir/completion/AbstractK2JsBasicCompletionTest.kt new file mode 100644 index 000000000000..0f510a53e4b3 --- /dev/null +++ b/plugins/kotlin/fir/tests/test/org/jetbrains/kotlin/idea/fir/completion/AbstractK2JsBasicCompletionTest.kt @@ -0,0 +1,30 @@ +// Copyright 2000-2024 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license. + +package org.jetbrains.kotlin.idea.fir + +import org.jetbrains.kotlin.idea.base.test.IgnoreTests +import org.jetbrains.kotlin.idea.completion.test.AbstractJSBasicCompletionTestBase +import org.jetbrains.kotlin.idea.completion.test.firFileName +import org.jetbrains.kotlin.idea.test.runAll + +abstract class AbstractK2JsBasicCompletionTest : AbstractJSBasicCompletionTestBase() { + override val captureExceptions: Boolean = false + + override fun isFirPlugin(): Boolean = true + + override fun fileName(): String = firFileName(super.fileName(), testDataDirectory) + + override fun executeTest(test: () -> Unit) { + IgnoreTests.runTestIfNotDisabledByFileDirective(dataFile().toPath(), IgnoreTests.DIRECTIVES.IGNORE_K2) { + super.executeTest(test) + IgnoreTests.cleanUpIdenticalFirTestFile(dataFile()) + } + } + + override fun tearDown() { + runAll( + { project.invalidateCaches() }, + { super.tearDown() } + ) + } +} \ No newline at end of file diff --git a/plugins/kotlin/fir/tests/test/org/jetbrains/kotlin/idea/fir/completion/K2JvmBasicCompletionTestGenerated.java b/plugins/kotlin/fir/tests/test/org/jetbrains/kotlin/idea/fir/completion/K2JvmBasicCompletionTestGenerated.java index 8e2f3501e81f..d8ed832dd26f 100644 --- a/plugins/kotlin/fir/tests/test/org/jetbrains/kotlin/idea/fir/completion/K2JvmBasicCompletionTestGenerated.java +++ b/plugins/kotlin/fir/tests/test/org/jetbrains/kotlin/idea/fir/completion/K2JvmBasicCompletionTestGenerated.java @@ -1053,16 +1053,6 @@ public abstract class K2JvmBasicCompletionTestGenerated extends AbstractK2JvmBas runTest("../../completion/testData/basic/common/fromSmart/EnumEntries.kt"); } - @TestMetadata("JavaStaticMethods.kt") - public void testJavaStaticMethods() throws Exception { - runTest("../../completion/testData/basic/common/fromSmart/JavaStaticMethods.kt"); - } - - @TestMetadata("JavaStaticMethods2.kt") - public void testJavaStaticMethods2() throws Exception { - runTest("../../completion/testData/basic/common/fromSmart/JavaStaticMethods2.kt"); - } - @TestMetadata("MultipleArgs.kt") public void testMultipleArgs() throws Exception { runTest("../../completion/testData/basic/common/fromSmart/MultipleArgs.kt"); @@ -2367,36 +2357,6 @@ public abstract class K2JvmBasicCompletionTestGenerated extends AbstractK2JvmBas public void testImportsFromObjectNoDuplicates() throws Exception { runTest("../../completion/testData/basic/common/staticMembers/ImportsFromObjectNoDuplicates.kt"); } - - @TestMetadata("JavaStaticFields.kt") - public void testJavaStaticFields() throws Exception { - runTest("../../completion/testData/basic/common/staticMembers/JavaStaticFields.kt"); - } - - @TestMetadata("JavaStaticFieldsFromImports.kt") - public void testJavaStaticFieldsFromImports() throws Exception { - runTest("../../completion/testData/basic/common/staticMembers/JavaStaticFieldsFromImports.kt"); - } - - @TestMetadata("JavaStaticMethods.kt") - public void testJavaStaticMethods() throws Exception { - runTest("../../completion/testData/basic/common/staticMembers/JavaStaticMethods.kt"); - } - - @TestMetadata("JavaStaticMethodsFromImports.kt") - public void testJavaStaticMethodsFromImports() throws Exception { - runTest("../../completion/testData/basic/common/staticMembers/JavaStaticMethodsFromImports.kt"); - } - - @TestMetadata("JavaStaticMethodsNoDuplicates.kt") - public void testJavaStaticMethodsNoDuplicates() throws Exception { - runTest("../../completion/testData/basic/common/staticMembers/JavaStaticMethodsNoDuplicates.kt"); - } - - @TestMetadata("JavaStaticMethodsNoDuplicatesFromBases.kt") - public void testJavaStaticMethodsNoDuplicatesFromBases() throws Exception { - runTest("../../completion/testData/basic/common/staticMembers/JavaStaticMethodsNoDuplicatesFromBases.kt"); - } } @RunWith(JUnit3RunnerWithInners.class) @@ -3133,11 +3093,6 @@ public abstract class K2JvmBasicCompletionTestGenerated extends AbstractK2JvmBas runTest("../../completion/testData/basic/common/NestedClassesOnDefaultObjectLiteral.kt"); } - @TestMetadata("NoAutoInsertionOfNotImported.kt") - public void testNoAutoInsertionOfNotImported() throws Exception { - runTest("../../completion/testData/basic/common/NoAutoInsertionOfNotImported.kt"); - } - @TestMetadata("NoClassNameDuplication.kt") public void testNoClassNameDuplication() throws Exception { runTest("../../completion/testData/basic/common/NoClassNameDuplication.kt"); @@ -3243,11 +3198,6 @@ public abstract class K2JvmBasicCompletionTestGenerated extends AbstractK2JvmBas runTest("../../completion/testData/basic/common/PreferLessParameters.kt"); } - @TestMetadata("PrivatesInSecondPressCompletion.kt") - public void testPrivatesInSecondPressCompletion() throws Exception { - runTest("../../completion/testData/basic/common/PrivatesInSecondPressCompletion.kt"); - } - @TestMetadata("ProtectedExtensionMethod.kt") public void testProtectedExtensionMethod() throws Exception { runTest("../../completion/testData/basic/common/ProtectedExtensionMethod.kt"); @@ -3572,11 +3522,6 @@ public abstract class K2JvmBasicCompletionTestGenerated extends AbstractK2JvmBas runTest("../../completion/testData/basic/common/when/nonSealedClassInWhen.kt"); } - @TestMetadata("nonSealedClassInWhen2.kt") - public void testNonSealedClassInWhen2() throws Exception { - runTest("../../completion/testData/basic/common/when/nonSealedClassInWhen2.kt"); - } - @TestMetadata("nonSealedClassWithTypeArgs.kt") public void testNonSealedClassWithTypeArgs() throws Exception { runTest("../../completion/testData/basic/common/when/nonSealedClassWithTypeArgs.kt"); @@ -3703,6 +3648,24 @@ public abstract class K2JvmBasicCompletionTestGenerated extends AbstractK2JvmBas } } + @RunWith(JUnit3RunnerWithInners.class) + @TestMetadata("../../completion/testData/basic/java/fromSmart") + public static class FromSmart extends AbstractK2JvmBasicCompletionTest { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); + } + + @TestMetadata("JavaStaticMethods.kt") + public void testJavaStaticMethods() throws Exception { + runTest("../../completion/testData/basic/java/fromSmart/JavaStaticMethods.kt"); + } + + @TestMetadata("JavaStaticMethods2.kt") + public void testJavaStaticMethods2() throws Exception { + runTest("../../completion/testData/basic/java/fromSmart/JavaStaticMethods2.kt"); + } + } + @RunWith(JUnit3RunnerWithInners.class) @TestMetadata("../../completion/testData/basic/java/importAliases") public static class ImportAliases extends AbstractK2JvmBasicCompletionTest { @@ -3756,6 +3719,44 @@ public abstract class K2JvmBasicCompletionTestGenerated extends AbstractK2JvmBas } } + @RunWith(JUnit3RunnerWithInners.class) + @TestMetadata("../../completion/testData/basic/java/staticMembers") + public static class StaticMembers extends AbstractK2JvmBasicCompletionTest { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); + } + + @TestMetadata("JavaStaticFields.kt") + public void testJavaStaticFields() throws Exception { + runTest("../../completion/testData/basic/java/staticMembers/JavaStaticFields.kt"); + } + + @TestMetadata("JavaStaticFieldsFromImports.kt") + public void testJavaStaticFieldsFromImports() throws Exception { + runTest("../../completion/testData/basic/java/staticMembers/JavaStaticFieldsFromImports.kt"); + } + + @TestMetadata("JavaStaticMethods.kt") + public void testJavaStaticMethods() throws Exception { + runTest("../../completion/testData/basic/java/staticMembers/JavaStaticMethods.kt"); + } + + @TestMetadata("JavaStaticMethodsFromImports.kt") + public void testJavaStaticMethodsFromImports() throws Exception { + runTest("../../completion/testData/basic/java/staticMembers/JavaStaticMethodsFromImports.kt"); + } + + @TestMetadata("JavaStaticMethodsNoDuplicates.kt") + public void testJavaStaticMethodsNoDuplicates() throws Exception { + runTest("../../completion/testData/basic/java/staticMembers/JavaStaticMethodsNoDuplicates.kt"); + } + + @TestMetadata("JavaStaticMethodsNoDuplicatesFromBases.kt") + public void testJavaStaticMethodsNoDuplicatesFromBases() throws Exception { + runTest("../../completion/testData/basic/java/staticMembers/JavaStaticMethodsNoDuplicatesFromBases.kt"); + } + } + @RunWith(JUnit3RunnerWithInners.class) @TestMetadata("../../completion/testData/basic/java/syntheticExtensions") public static class SyntheticExtensions extends AbstractK2JvmBasicCompletionTest { @@ -3891,6 +3892,11 @@ public abstract class K2JvmBasicCompletionTestGenerated extends AbstractK2JvmBas runTest("../../completion/testData/basic/java/KT9166.kt"); } + @TestMetadata("NoAutoInsertionOfNotImported.kt") + public void testNoAutoInsertionOfNotImported() throws Exception { + runTest("../../completion/testData/basic/java/NoAutoInsertionOfNotImported.kt"); + } + @TestMetadata("NoDuplicationForImportedJavaClass.kt") public void testNoDuplicationForImportedJavaClass() throws Exception { runTest("../../completion/testData/basic/java/NoDuplicationForImportedJavaClass.kt"); @@ -3931,6 +3937,11 @@ public abstract class K2JvmBasicCompletionTestGenerated extends AbstractK2JvmBas runTest("../../completion/testData/basic/java/PackageDirective.kt"); } + @TestMetadata("PrivatesInSecondPressCompletion.kt") + public void testPrivatesInSecondPressCompletion() throws Exception { + runTest("../../completion/testData/basic/java/PrivatesInSecondPressCompletion.kt"); + } + @TestMetadata("ReadlineMethodLowerPriority.kt") public void testReadlineMethodLowerPriority() throws Exception { runTest("../../completion/testData/basic/java/ReadlineMethodLowerPriority.kt"); @@ -3971,6 +3982,19 @@ public abstract class K2JvmBasicCompletionTestGenerated extends AbstractK2JvmBas runTest("../../completion/testData/basic/java/TopLevelFromStandardLibrary.kt"); } } + + @RunWith(JUnit3RunnerWithInners.class) + @TestMetadata("../../completion/testData/basic/java/when") + public static class When extends AbstractK2JvmBasicCompletionTest { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); + } + + @TestMetadata("nonSealedClassInWhen2.kt") + public void testNonSealedClassInWhen2() throws Exception { + runTest("../../completion/testData/basic/java/when/nonSealedClassInWhen2.kt"); + } + } } @RunWith(JUnit3RunnerWithInners.class) diff --git a/plugins/kotlin/util/test-generator-fir/test/org/jetbrains/kotlin/fir/testGenerator/FirGenerateTests.kt b/plugins/kotlin/util/test-generator-fir/test/org/jetbrains/kotlin/fir/testGenerator/FirGenerateTests.kt index 879e6cb10ec2..f3335a6311ea 100644 --- a/plugins/kotlin/util/test-generator-fir/test/org/jetbrains/kotlin/fir/testGenerator/FirGenerateTests.kt +++ b/plugins/kotlin/util/test-generator-fir/test/org/jetbrains/kotlin/fir/testGenerator/FirGenerateTests.kt @@ -4,6 +4,7 @@ package org.jetbrains.kotlin.fir.testGenerator import org.jetbrains.fir.uast.test.* import org.jetbrains.kotlin.fir.testGenerator.codeinsight.generateK2CodeInsightTests +import org.jetbrains.kotlin.idea.fir.AbstractK2JsBasicCompletionTest import org.jetbrains.kotlin.idea.fir.actions.AbstractK2AddImportActionTest import org.jetbrains.kotlin.idea.fir.actions.AbstractK2BytecodeToolWindowTest import org.jetbrains.kotlin.idea.fir.analysis.providers.AbstractIdeKotlinAnnotationsResolverTest @@ -243,6 +244,11 @@ private fun assembleWorkspace(): TWorkspace = workspace { model("kdoc", pattern = KT_WITHOUT_FIR_PREFIX) } + testClass { + model("basic/common", pattern = KT_WITHOUT_FIR_PREFIX) + model("../../idea-fir/testData/completion/basic/common", testClassName = "CommonFir") + } + testClass { model("handlers/basic", pattern = KT_WITHOUT_DOT_AND_FIR_PREFIX) model("handlers", pattern = KT_WITHOUT_DOT_AND_FIR_PREFIX, isRecursive = false)