From d0e8f99d60d359c4ebbd9f36f8f3874485d08217 Mon Sep 17 00:00:00 2001 From: Mikhail Glukhikh Date: Fri, 20 Oct 2017 13:18:11 +0300 Subject: [PATCH] ResolveElementCache: script can now be analyzable parent So #KT-20096 Fixed --- .../kotlin/generators/tests/GenerateTests.kt | 2 +- .../idea/project/ResolveElementCache.kt | 17 +- .../destructuringWithLambdaInScript.kts | 10 + .../justLambdaInScript.kts | 10 + .../idea/intentions/AbstractIntentionTest.kt | 2 +- .../intentions/IntentionTestGenerated.java | 380 +++++++++--------- 6 files changed, 233 insertions(+), 188 deletions(-) create mode 100644 idea/testData/intentions/deprecatedCallableAddReplaceWith/destructuringWithLambdaInScript.kts create mode 100644 idea/testData/intentions/deprecatedCallableAddReplaceWith/justLambdaInScript.kts diff --git a/generators/src/org/jetbrains/kotlin/generators/tests/GenerateTests.kt b/generators/src/org/jetbrains/kotlin/generators/tests/GenerateTests.kt index 1a64dfc8b6c..45ad922dc60 100755 --- a/generators/src/org/jetbrains/kotlin/generators/tests/GenerateTests.kt +++ b/generators/src/org/jetbrains/kotlin/generators/tests/GenerateTests.kt @@ -713,7 +713,7 @@ fun main(args: Array) { } testClass { - model("intentions", pattern = "^([\\w\\-_]+)\\.kt$") + model("intentions", pattern = "^([\\w\\-_]+)\\.(kt|kts)$") } testClass { diff --git a/idea/idea-analysis/src/org/jetbrains/kotlin/idea/project/ResolveElementCache.kt b/idea/idea-analysis/src/org/jetbrains/kotlin/idea/project/ResolveElementCache.kt index 12cc61daf87..11f9d48eb09 100644 --- a/idea/idea-analysis/src/org/jetbrains/kotlin/idea/project/ResolveElementCache.kt +++ b/idea/idea-analysis/src/org/jetbrains/kotlin/idea/project/ResolveElementCache.kt @@ -238,7 +238,8 @@ class ResolveElementCache( KtTypeConstraint::class.java, KtPackageDirective::class.java, KtCodeFragment::class.java, - KtTypeAlias::class.java) as KtElement? + KtTypeAlias::class.java + ) as KtElement? when (elementOfAdditionalResolve) { null -> { @@ -251,7 +252,8 @@ class ResolveElementCache( return element } - return null + // Case of pure script element, like val (x, y) = ... on top of the script + return element.getParentOfType(strict = false) } is KtPackageDirective -> return element @@ -334,6 +336,8 @@ class ResolveElementCache( is KtCodeFragment -> codeFragmentAdditionalResolve(resolveElement, bodyResolveMode) + is KtScript -> scriptAdditionalResolve(resolveSession, resolveElement, bodyResolveMode.bindingTraceFilter) + else -> { if (resolveElement.getParentOfType(true) != null) { packageRefAdditionalResolve(resolveSession, resolveElement, bodyResolveMode.bindingTraceFilter) @@ -487,6 +491,15 @@ class ResolveElementCache( return trace } + private fun scriptAdditionalResolve(resolveSession: ResolveSession, script: KtScript, + bindingTraceFilter: BindingTraceFilter): BindingTrace { + val trace = createDelegatingTrace(script, bindingTraceFilter) + val scriptDescriptor = resolveSession.resolveToDescriptor(script) as ScriptDescriptor + ForceResolveUtil.forceResolveAllContents(scriptDescriptor) + forceResolveAnnotationsInside(script) + return trace + } + private fun functionAdditionalResolve(resolveSession: ResolveSession, namedFunction: KtNamedFunction, file: KtFile, statementFilter: StatementFilter, bindingTraceFilter: BindingTraceFilter): BindingTrace { diff --git a/idea/testData/intentions/deprecatedCallableAddReplaceWith/destructuringWithLambdaInScript.kts b/idea/testData/intentions/deprecatedCallableAddReplaceWith/destructuringWithLambdaInScript.kts new file mode 100644 index 00000000000..b8e6fa2899d --- /dev/null +++ b/idea/testData/intentions/deprecatedCallableAddReplaceWith/destructuringWithLambdaInScript.kts @@ -0,0 +1,10 @@ +// IS_APPLICABLE: false +// WITH_RUNTIME +// SKIP_ERRORS_BEFORE +// SKIP_ERRORS_AFTER + +val (x, y) = run { + +} + +fun run(f: () -> Unit) = f() diff --git a/idea/testData/intentions/deprecatedCallableAddReplaceWith/justLambdaInScript.kts b/idea/testData/intentions/deprecatedCallableAddReplaceWith/justLambdaInScript.kts new file mode 100644 index 00000000000..c7e81fed929 --- /dev/null +++ b/idea/testData/intentions/deprecatedCallableAddReplaceWith/justLambdaInScript.kts @@ -0,0 +1,10 @@ +// IS_APPLICABLE: false +// WITH_RUNTIME +// SKIP_ERRORS_BEFORE +// SKIP_ERRORS_AFTER + +run { + +} + +fun run(f: () -> Unit) = f() diff --git a/idea/tests/org/jetbrains/kotlin/idea/intentions/AbstractIntentionTest.kt b/idea/tests/org/jetbrains/kotlin/idea/intentions/AbstractIntentionTest.kt index 7509bd51c0d..4de2a776781 100644 --- a/idea/tests/org/jetbrains/kotlin/idea/intentions/AbstractIntentionTest.kt +++ b/idea/tests/org/jetbrains/kotlin/idea/intentions/AbstractIntentionTest.kt @@ -186,7 +186,7 @@ abstract class AbstractIntentionTest : KotlinLightCodeInsightFixtureTestCase() { } companion object { - private val EXTENSIONS = arrayOf(".kt", ".java", ".groovy") + private val EXTENSIONS = arrayOf(".kt", ".kts", ".java", ".groovy") } } diff --git a/idea/tests/org/jetbrains/kotlin/idea/intentions/IntentionTestGenerated.java b/idea/tests/org/jetbrains/kotlin/idea/intentions/IntentionTestGenerated.java index 4334978b8d9..f6e0c682e53 100644 --- a/idea/tests/org/jetbrains/kotlin/idea/intentions/IntentionTestGenerated.java +++ b/idea/tests/org/jetbrains/kotlin/idea/intentions/IntentionTestGenerated.java @@ -33,7 +33,7 @@ import java.util.regex.Pattern; @RunWith(JUnit3RunnerWithInners.class) public class IntentionTestGenerated extends AbstractIntentionTest { public void testAllFilesPresentInIntentions() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions"), Pattern.compile("^([\\w\\-_]+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions"), Pattern.compile("^([\\w\\-_]+)\\.(kt|kts)$"), TargetBackend.ANY, true); } @TestMetadata("idea/testData/intentions/addBraces") @@ -89,7 +89,7 @@ public class IntentionTestGenerated extends AbstractIntentionTest { } public void testAllFilesPresentInAddBraces() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/addBraces"), Pattern.compile("^([\\w\\-_]+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/addBraces"), Pattern.compile("^([\\w\\-_]+)\\.(kt|kts)$"), TargetBackend.ANY, true); } @TestMetadata("notInsideElseIfBlock.kt") @@ -116,7 +116,7 @@ public class IntentionTestGenerated extends AbstractIntentionTest { @RunWith(JUnit3RunnerWithInners.class) public static class AddConstModifier extends AbstractIntentionTest { public void testAllFilesPresentInAddConstModifier() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/addConstModifier"), Pattern.compile("^([\\w\\-_]+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/addConstModifier"), Pattern.compile("^([\\w\\-_]+)\\.(kt|kts)$"), TargetBackend.ANY, true); } @TestMetadata("inapplicableToConst.kt") @@ -155,7 +155,7 @@ public class IntentionTestGenerated extends AbstractIntentionTest { @RunWith(JUnit3RunnerWithInners.class) public static class AddForLoopIndices extends AbstractIntentionTest { public void testAllFilesPresentInAddForLoopIndices() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/addForLoopIndices"), Pattern.compile("^([\\w\\-_]+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/addForLoopIndices"), Pattern.compile("^([\\w\\-_]+)\\.(kt|kts)$"), TargetBackend.ANY, true); } @TestMetadata("explicitParamType.kt") @@ -242,7 +242,7 @@ public class IntentionTestGenerated extends AbstractIntentionTest { @RunWith(JUnit3RunnerWithInners.class) public static class AddJvmOverloads extends AbstractIntentionTest { public void testAllFilesPresentInAddJvmOverloads() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/addJvmOverloads"), Pattern.compile("^([\\w\\-_]+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/addJvmOverloads"), Pattern.compile("^([\\w\\-_]+)\\.(kt|kts)$"), TargetBackend.ANY, true); } @TestMetadata("alreadyHasAnnotation.kt") @@ -293,7 +293,7 @@ public class IntentionTestGenerated extends AbstractIntentionTest { @RunWith(JUnit3RunnerWithInners.class) public static class AddJvmStatic extends AbstractIntentionTest { public void testAllFilesPresentInAddJvmStatic() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/addJvmStatic"), Pattern.compile("^([\\w\\-_]+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/addJvmStatic"), Pattern.compile("^([\\w\\-_]+)\\.(kt|kts)$"), TargetBackend.ANY, true); } @TestMetadata("hasJvmStatic.kt") @@ -356,7 +356,7 @@ public class IntentionTestGenerated extends AbstractIntentionTest { @RunWith(JUnit3RunnerWithInners.class) public static class AddMissingDestructuring extends AbstractIntentionTest { public void testAllFilesPresentInAddMissingDestructuring() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/addMissingDestructuring"), Pattern.compile("^([\\w\\-_]+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/addMissingDestructuring"), Pattern.compile("^([\\w\\-_]+)\\.(kt|kts)$"), TargetBackend.ANY, true); } @TestMetadata("notAvailable.kt") @@ -389,7 +389,7 @@ public class IntentionTestGenerated extends AbstractIntentionTest { @RunWith(JUnit3RunnerWithInners.class) public static class AddNameToArgument extends AbstractIntentionTest { public void testAllFilesPresentInAddNameToArgument() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/addNameToArgument"), Pattern.compile("^([\\w\\-_]+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/addNameToArgument"), Pattern.compile("^([\\w\\-_]+)\\.(kt|kts)$"), TargetBackend.ANY, true); } @TestMetadata("alreadyNamed.kt") @@ -518,7 +518,7 @@ public class IntentionTestGenerated extends AbstractIntentionTest { @RunWith(JUnit3RunnerWithInners.class) public static class AddNamesToCallArguments extends AbstractIntentionTest { public void testAllFilesPresentInAddNamesToCallArguments() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/addNamesToCallArguments"), Pattern.compile("^([\\w\\-_]+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/addNamesToCallArguments"), Pattern.compile("^([\\w\\-_]+)\\.(kt|kts)$"), TargetBackend.ANY, true); } @TestMetadata("allNamed.kt") @@ -611,7 +611,7 @@ public class IntentionTestGenerated extends AbstractIntentionTest { } public void testAllFilesPresentInAddOpenModifier() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/addOpenModifier"), Pattern.compile("^([\\w\\-_]+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/addOpenModifier"), Pattern.compile("^([\\w\\-_]+)\\.(kt|kts)$"), TargetBackend.ANY, true); } @TestMetadata("alreadyOpen.kt") @@ -692,7 +692,7 @@ public class IntentionTestGenerated extends AbstractIntentionTest { @RunWith(JUnit3RunnerWithInners.class) public static class AddOperatorModifier extends AbstractIntentionTest { public void testAllFilesPresentInAddOperatorModifier() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/addOperatorModifier"), Pattern.compile("^([\\w\\-_]+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/addOperatorModifier"), Pattern.compile("^([\\w\\-_]+)\\.(kt|kts)$"), TargetBackend.ANY, true); } @TestMetadata("containsBool.kt") @@ -743,7 +743,7 @@ public class IntentionTestGenerated extends AbstractIntentionTest { @RunWith(JUnit3RunnerWithInners.class) public static class AddPropertyAccessors extends AbstractIntentionTest { public void testAllFilesPresentInAddPropertyAccessors() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/addPropertyAccessors"), Pattern.compile("^([\\w\\-_]+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/addPropertyAccessors"), Pattern.compile("^([\\w\\-_]+)\\.(kt|kts)$"), TargetBackend.ANY, true); } @TestMetadata("idea/testData/intentions/addPropertyAccessors/both") @@ -757,7 +757,7 @@ public class IntentionTestGenerated extends AbstractIntentionTest { } public void testAllFilesPresentInBoth() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/addPropertyAccessors/both"), Pattern.compile("^([\\w\\-_]+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/addPropertyAccessors/both"), Pattern.compile("^([\\w\\-_]+)\\.(kt|kts)$"), TargetBackend.ANY, true); } @TestMetadata("delegate.kt") @@ -826,7 +826,7 @@ public class IntentionTestGenerated extends AbstractIntentionTest { } public void testAllFilesPresentInGetter() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/addPropertyAccessors/getter"), Pattern.compile("^([\\w\\-_]+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/addPropertyAccessors/getter"), Pattern.compile("^([\\w\\-_]+)\\.(kt|kts)$"), TargetBackend.ANY, true); } @TestMetadata("delegate.kt") @@ -901,7 +901,7 @@ public class IntentionTestGenerated extends AbstractIntentionTest { } public void testAllFilesPresentInSetter() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/addPropertyAccessors/setter"), Pattern.compile("^([\\w\\-_]+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/addPropertyAccessors/setter"), Pattern.compile("^([\\w\\-_]+)\\.(kt|kts)$"), TargetBackend.ANY, true); } @TestMetadata("delegate.kt") @@ -971,7 +971,7 @@ public class IntentionTestGenerated extends AbstractIntentionTest { } public void testAllFilesPresentInAddValOrVar() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/addValOrVar"), Pattern.compile("^([\\w\\-_]+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/addValOrVar"), Pattern.compile("^([\\w\\-_]+)\\.(kt|kts)$"), TargetBackend.ANY, true); } @TestMetadata("dataClass.kt") @@ -1016,7 +1016,7 @@ public class IntentionTestGenerated extends AbstractIntentionTest { @RunWith(JUnit3RunnerWithInners.class) public static class AnonymousFunctionToLambda extends AbstractIntentionTest { public void testAllFilesPresentInAnonymousFunctionToLambda() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/anonymousFunctionToLambda"), Pattern.compile("^([\\w\\-_]+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/anonymousFunctionToLambda"), Pattern.compile("^([\\w\\-_]+)\\.(kt|kts)$"), TargetBackend.ANY, true); } @TestMetadata("callMultiline.kt") @@ -1085,7 +1085,7 @@ public class IntentionTestGenerated extends AbstractIntentionTest { @RunWith(JUnit3RunnerWithInners.class) public static class Branched extends AbstractIntentionTest { public void testAllFilesPresentInBranched() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/branched"), Pattern.compile("^([\\w\\-_]+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/branched"), Pattern.compile("^([\\w\\-_]+)\\.(kt|kts)$"), TargetBackend.ANY, true); } @TestMetadata("idea/testData/intentions/branched/doubleBangToIfThen") @@ -1093,7 +1093,7 @@ public class IntentionTestGenerated extends AbstractIntentionTest { @RunWith(JUnit3RunnerWithInners.class) public static class DoubleBangToIfThen extends AbstractIntentionTest { public void testAllFilesPresentInDoubleBangToIfThen() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/branched/doubleBangToIfThen"), Pattern.compile("^([\\w\\-_]+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/branched/doubleBangToIfThen"), Pattern.compile("^([\\w\\-_]+)\\.(kt|kts)$"), TargetBackend.ANY, true); } @TestMetadata("callExpression.kt") @@ -1180,7 +1180,7 @@ public class IntentionTestGenerated extends AbstractIntentionTest { @RunWith(JUnit3RunnerWithInners.class) public static class ElvisToIfThen extends AbstractIntentionTest { public void testAllFilesPresentInElvisToIfThen() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/branched/elvisToIfThen"), Pattern.compile("^([\\w\\-_]+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/branched/elvisToIfThen"), Pattern.compile("^([\\w\\-_]+)\\.(kt|kts)$"), TargetBackend.ANY, true); } @TestMetadata("callExpression.kt") @@ -1255,7 +1255,7 @@ public class IntentionTestGenerated extends AbstractIntentionTest { @RunWith(JUnit3RunnerWithInners.class) public static class Folding extends AbstractIntentionTest { public void testAllFilesPresentInFolding() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/branched/folding"), Pattern.compile("^([\\w\\-_]+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/branched/folding"), Pattern.compile("^([\\w\\-_]+)\\.(kt|kts)$"), TargetBackend.ANY, true); } @TestMetadata("idea/testData/intentions/branched/folding/ifToReturnAsymmetrically") @@ -1263,7 +1263,7 @@ public class IntentionTestGenerated extends AbstractIntentionTest { @RunWith(JUnit3RunnerWithInners.class) public static class IfToReturnAsymmetrically extends AbstractIntentionTest { public void testAllFilesPresentInIfToReturnAsymmetrically() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/branched/folding/ifToReturnAsymmetrically"), Pattern.compile("^([\\w\\-_]+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/branched/folding/ifToReturnAsymmetrically"), Pattern.compile("^([\\w\\-_]+)\\.(kt|kts)$"), TargetBackend.ANY, true); } @TestMetadata("simpleIf.kt") @@ -1315,7 +1315,7 @@ public class IntentionTestGenerated extends AbstractIntentionTest { } public void testAllFilesPresentInIfThenToDoubleBang() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/branched/ifThenToDoubleBang"), Pattern.compile("^([\\w\\-_]+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/branched/ifThenToDoubleBang"), Pattern.compile("^([\\w\\-_]+)\\.(kt|kts)$"), TargetBackend.ANY, true); } @TestMetadata("blockHasMoreThanOneStatement.kt") @@ -1510,7 +1510,7 @@ public class IntentionTestGenerated extends AbstractIntentionTest { @RunWith(JUnit3RunnerWithInners.class) public static class IfThenToElvis extends AbstractIntentionTest { public void testAllFilesPresentInIfThenToElvis() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/branched/ifThenToElvis"), Pattern.compile("^([\\w\\-_]+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/branched/ifThenToElvis"), Pattern.compile("^([\\w\\-_]+)\\.(kt|kts)$"), TargetBackend.ANY, true); } @TestMetadata("blockHasMoreThanOneStatement.kt") @@ -1795,7 +1795,7 @@ public class IntentionTestGenerated extends AbstractIntentionTest { @RunWith(JUnit3RunnerWithInners.class) public static class IfThenToSafeAccess extends AbstractIntentionTest { public void testAllFilesPresentInIfThenToSafeAccess() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/branched/ifThenToSafeAccess"), Pattern.compile("^([\\w\\-_]+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/branched/ifThenToSafeAccess"), Pattern.compile("^([\\w\\-_]+)\\.(kt|kts)$"), TargetBackend.ANY, true); } @TestMetadata("blockHasMoreThanOneStatement.kt") @@ -2086,7 +2086,7 @@ public class IntentionTestGenerated extends AbstractIntentionTest { @RunWith(JUnit3RunnerWithInners.class) public static class IfWhen extends AbstractIntentionTest { public void testAllFilesPresentInIfWhen() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/branched/ifWhen"), Pattern.compile("^([\\w\\-_]+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/branched/ifWhen"), Pattern.compile("^([\\w\\-_]+)\\.(kt|kts)$"), TargetBackend.ANY, true); } @TestMetadata("idea/testData/intentions/branched/ifWhen/ifToWhen") @@ -2094,7 +2094,7 @@ public class IntentionTestGenerated extends AbstractIntentionTest { @RunWith(JUnit3RunnerWithInners.class) public static class IfToWhen extends AbstractIntentionTest { public void testAllFilesPresentInIfToWhen() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/branched/ifWhen/ifToWhen"), Pattern.compile("^([\\w\\-_]+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/branched/ifWhen/ifToWhen"), Pattern.compile("^([\\w\\-_]+)\\.(kt|kts)$"), TargetBackend.ANY, true); } @TestMetadata("combinedIf.kt") @@ -2229,7 +2229,7 @@ public class IntentionTestGenerated extends AbstractIntentionTest { @RunWith(JUnit3RunnerWithInners.class) public static class WhenToIf extends AbstractIntentionTest { public void testAllFilesPresentInWhenToIf() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/branched/ifWhen/whenToIf"), Pattern.compile("^([\\w\\-_]+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/branched/ifWhen/whenToIf"), Pattern.compile("^([\\w\\-_]+)\\.(kt|kts)$"), TargetBackend.ANY, true); } @TestMetadata("comment.kt") @@ -2341,7 +2341,7 @@ public class IntentionTestGenerated extends AbstractIntentionTest { @RunWith(JUnit3RunnerWithInners.class) public static class SafeAccessToIfThen extends AbstractIntentionTest { public void testAllFilesPresentInSafeAccessToIfThen() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/branched/safeAccessToIfThen"), Pattern.compile("^([\\w\\-_]+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/branched/safeAccessToIfThen"), Pattern.compile("^([\\w\\-_]+)\\.(kt|kts)$"), TargetBackend.ANY, true); } @TestMetadata("assignment.kt") @@ -2506,7 +2506,7 @@ public class IntentionTestGenerated extends AbstractIntentionTest { @RunWith(JUnit3RunnerWithInners.class) public static class Unfolding extends AbstractIntentionTest { public void testAllFilesPresentInUnfolding() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/branched/unfolding"), Pattern.compile("^([\\w\\-_]+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/branched/unfolding"), Pattern.compile("^([\\w\\-_]+)\\.(kt|kts)$"), TargetBackend.ANY, true); } @TestMetadata("idea/testData/intentions/branched/unfolding/assignmentToIf") @@ -2514,7 +2514,7 @@ public class IntentionTestGenerated extends AbstractIntentionTest { @RunWith(JUnit3RunnerWithInners.class) public static class AssignmentToIf extends AbstractIntentionTest { public void testAllFilesPresentInAssignmentToIf() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/branched/unfolding/assignmentToIf"), Pattern.compile("^([\\w\\-_]+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/branched/unfolding/assignmentToIf"), Pattern.compile("^([\\w\\-_]+)\\.(kt|kts)$"), TargetBackend.ANY, true); } @TestMetadata("innerIfTransformed.kt") @@ -2565,7 +2565,7 @@ public class IntentionTestGenerated extends AbstractIntentionTest { @RunWith(JUnit3RunnerWithInners.class) public static class AssignmentToWhen extends AbstractIntentionTest { public void testAllFilesPresentInAssignmentToWhen() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/branched/unfolding/assignmentToWhen"), Pattern.compile("^([\\w\\-_]+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/branched/unfolding/assignmentToWhen"), Pattern.compile("^([\\w\\-_]+)\\.(kt|kts)$"), TargetBackend.ANY, true); } @TestMetadata("innerWhenTransformed.kt") @@ -2598,7 +2598,7 @@ public class IntentionTestGenerated extends AbstractIntentionTest { @RunWith(JUnit3RunnerWithInners.class) public static class PropertyToIf extends AbstractIntentionTest { public void testAllFilesPresentInPropertyToIf() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/branched/unfolding/propertyToIf"), Pattern.compile("^([\\w\\-_]+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/branched/unfolding/propertyToIf"), Pattern.compile("^([\\w\\-_]+)\\.(kt|kts)$"), TargetBackend.ANY, true); } @TestMetadata("nestedIfs.kt") @@ -2661,7 +2661,7 @@ public class IntentionTestGenerated extends AbstractIntentionTest { @RunWith(JUnit3RunnerWithInners.class) public static class PropertyToWhen extends AbstractIntentionTest { public void testAllFilesPresentInPropertyToWhen() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/branched/unfolding/propertyToWhen"), Pattern.compile("^([\\w\\-_]+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/branched/unfolding/propertyToWhen"), Pattern.compile("^([\\w\\-_]+)\\.(kt|kts)$"), TargetBackend.ANY, true); } @TestMetadata("nonLocalProperty.kt") @@ -2712,7 +2712,7 @@ public class IntentionTestGenerated extends AbstractIntentionTest { @RunWith(JUnit3RunnerWithInners.class) public static class ReturnToIf extends AbstractIntentionTest { public void testAllFilesPresentInReturnToIf() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/branched/unfolding/returnToIf"), Pattern.compile("^([\\w\\-_]+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/branched/unfolding/returnToIf"), Pattern.compile("^([\\w\\-_]+)\\.(kt|kts)$"), TargetBackend.ANY, true); } @TestMetadata("innerIfTransformed.kt") @@ -2739,7 +2739,7 @@ public class IntentionTestGenerated extends AbstractIntentionTest { @RunWith(JUnit3RunnerWithInners.class) public static class ReturnToWhen extends AbstractIntentionTest { public void testAllFilesPresentInReturnToWhen() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/branched/unfolding/returnToWhen"), Pattern.compile("^([\\w\\-_]+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/branched/unfolding/returnToWhen"), Pattern.compile("^([\\w\\-_]+)\\.(kt|kts)$"), TargetBackend.ANY, true); } @TestMetadata("innerWhenTransformed.kt") @@ -2767,7 +2767,7 @@ public class IntentionTestGenerated extends AbstractIntentionTest { @RunWith(JUnit3RunnerWithInners.class) public static class When extends AbstractIntentionTest { public void testAllFilesPresentInWhen() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/branched/when"), Pattern.compile("^([\\w\\-_]+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/branched/when"), Pattern.compile("^([\\w\\-_]+)\\.(kt|kts)$"), TargetBackend.ANY, true); } @TestMetadata("idea/testData/intentions/branched/when/eliminateSubject") @@ -2775,7 +2775,7 @@ public class IntentionTestGenerated extends AbstractIntentionTest { @RunWith(JUnit3RunnerWithInners.class) public static class EliminateSubject extends AbstractIntentionTest { public void testAllFilesPresentInEliminateSubject() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/branched/when/eliminateSubject"), Pattern.compile("^([\\w\\-_]+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/branched/when/eliminateSubject"), Pattern.compile("^([\\w\\-_]+)\\.(kt|kts)$"), TargetBackend.ANY, true); } @TestMetadata("lineBreaksAndComments.kt") @@ -2838,7 +2838,7 @@ public class IntentionTestGenerated extends AbstractIntentionTest { @RunWith(JUnit3RunnerWithInners.class) public static class Flatten extends AbstractIntentionTest { public void testAllFilesPresentInFlatten() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/branched/when/flatten"), Pattern.compile("^([\\w\\-_]+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/branched/when/flatten"), Pattern.compile("^([\\w\\-_]+)\\.(kt|kts)$"), TargetBackend.ANY, true); } @TestMetadata("flattenWithSubject.kt") @@ -2865,7 +2865,7 @@ public class IntentionTestGenerated extends AbstractIntentionTest { @RunWith(JUnit3RunnerWithInners.class) public static class IntroduceSubject extends AbstractIntentionTest { public void testAllFilesPresentInIntroduceSubject() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/branched/when/introduceSubject"), Pattern.compile("^([\\w\\-_]+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/branched/when/introduceSubject"), Pattern.compile("^([\\w\\-_]+)\\.(kt|kts)$"), TargetBackend.ANY, true); } @TestMetadata("lineBreaksAndComments.kt") @@ -2940,7 +2940,7 @@ public class IntentionTestGenerated extends AbstractIntentionTest { @RunWith(JUnit3RunnerWithInners.class) public static class Merge extends AbstractIntentionTest { public void testAllFilesPresentInMerge() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/branched/when/merge"), Pattern.compile("^([\\w\\-_]+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/branched/when/merge"), Pattern.compile("^([\\w\\-_]+)\\.(kt|kts)$"), TargetBackend.ANY, true); } @TestMetadata("mergeBlockWithBlock.kt") @@ -3059,7 +3059,7 @@ public class IntentionTestGenerated extends AbstractIntentionTest { @RunWith(JUnit3RunnerWithInners.class) public static class ChangeVisibility extends AbstractIntentionTest { public void testAllFilesPresentInChangeVisibility() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/changeVisibility"), Pattern.compile("^([\\w\\-_]+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/changeVisibility"), Pattern.compile("^([\\w\\-_]+)\\.(kt|kts)$"), TargetBackend.ANY, true); } @TestMetadata("idea/testData/intentions/changeVisibility/internal") @@ -3067,7 +3067,7 @@ public class IntentionTestGenerated extends AbstractIntentionTest { @RunWith(JUnit3RunnerWithInners.class) public static class Internal extends AbstractIntentionTest { public void testAllFilesPresentInInternal() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/changeVisibility/internal"), Pattern.compile("^([\\w\\-_]+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/changeVisibility/internal"), Pattern.compile("^([\\w\\-_]+)\\.(kt|kts)$"), TargetBackend.ANY, true); } @TestMetadata("notForAnnotationClassPrimaryConstructor.kt") @@ -3094,7 +3094,7 @@ public class IntentionTestGenerated extends AbstractIntentionTest { @RunWith(JUnit3RunnerWithInners.class) public static class Private extends AbstractIntentionTest { public void testAllFilesPresentInPrivate() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/changeVisibility/private"), Pattern.compile("^([\\w\\-_]+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/changeVisibility/private"), Pattern.compile("^([\\w\\-_]+)\\.(kt|kts)$"), TargetBackend.ANY, true); } @TestMetadata("hasModifier1.kt") @@ -3247,7 +3247,7 @@ public class IntentionTestGenerated extends AbstractIntentionTest { @RunWith(JUnit3RunnerWithInners.class) public static class Protected extends AbstractIntentionTest { public void testAllFilesPresentInProtected() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/changeVisibility/protected"), Pattern.compile("^([\\w\\-_]+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/changeVisibility/protected"), Pattern.compile("^([\\w\\-_]+)\\.(kt|kts)$"), TargetBackend.ANY, true); } @TestMetadata("caretAfter.kt") @@ -3304,7 +3304,7 @@ public class IntentionTestGenerated extends AbstractIntentionTest { @RunWith(JUnit3RunnerWithInners.class) public static class Public extends AbstractIntentionTest { public void testAllFilesPresentInPublic() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/changeVisibility/public"), Pattern.compile("^([\\w\\-_]+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/changeVisibility/public"), Pattern.compile("^([\\w\\-_]+)\\.(kt|kts)$"), TargetBackend.ANY, true); } @TestMetadata("alreadyPublic.kt") @@ -3356,7 +3356,7 @@ public class IntentionTestGenerated extends AbstractIntentionTest { @RunWith(JUnit3RunnerWithInners.class) public static class Chop extends AbstractIntentionTest { public void testAllFilesPresentInChop() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/chop"), Pattern.compile("^([\\w\\-_]+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/chop"), Pattern.compile("^([\\w\\-_]+)\\.(kt|kts)$"), TargetBackend.ANY, true); } @TestMetadata("idea/testData/intentions/chop/argumentList") @@ -3364,7 +3364,7 @@ public class IntentionTestGenerated extends AbstractIntentionTest { @RunWith(JUnit3RunnerWithInners.class) public static class ArgumentList extends AbstractIntentionTest { public void testAllFilesPresentInArgumentList() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/chop/argumentList"), Pattern.compile("^([\\w\\-_]+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/chop/argumentList"), Pattern.compile("^([\\w\\-_]+)\\.(kt|kts)$"), TargetBackend.ANY, true); } @TestMetadata("threeArgs.kt") @@ -3379,7 +3379,7 @@ public class IntentionTestGenerated extends AbstractIntentionTest { @RunWith(JUnit3RunnerWithInners.class) public static class ParameterList extends AbstractIntentionTest { public void testAllFilesPresentInParameterList() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/chop/parameterList"), Pattern.compile("^([\\w\\-_]+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/chop/parameterList"), Pattern.compile("^([\\w\\-_]+)\\.(kt|kts)$"), TargetBackend.ANY, true); } @TestMetadata("hasAllLineBreaks.kt") @@ -3425,7 +3425,7 @@ public class IntentionTestGenerated extends AbstractIntentionTest { @RunWith(JUnit3RunnerWithInners.class) public static class ConventionNameCalls extends AbstractIntentionTest { public void testAllFilesPresentInConventionNameCalls() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/conventionNameCalls"), Pattern.compile("^([\\w\\-_]+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/conventionNameCalls"), Pattern.compile("^([\\w\\-_]+)\\.(kt|kts)$"), TargetBackend.ANY, true); } @TestMetadata("idea/testData/intentions/conventionNameCalls/replaceCallWithBinaryOperator") @@ -3433,7 +3433,7 @@ public class IntentionTestGenerated extends AbstractIntentionTest { @RunWith(JUnit3RunnerWithInners.class) public static class ReplaceCallWithBinaryOperator extends AbstractIntentionTest { public void testAllFilesPresentInReplaceCallWithBinaryOperator() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/conventionNameCalls/replaceCallWithBinaryOperator"), Pattern.compile("^([\\w\\-_]+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/conventionNameCalls/replaceCallWithBinaryOperator"), Pattern.compile("^([\\w\\-_]+)\\.(kt|kts)$"), TargetBackend.ANY, true); } @TestMetadata("divSanityTest.kt") @@ -3598,7 +3598,7 @@ public class IntentionTestGenerated extends AbstractIntentionTest { @RunWith(JUnit3RunnerWithInners.class) public static class ReplaceCallWithUnaryOperator extends AbstractIntentionTest { public void testAllFilesPresentInReplaceCallWithUnaryOperator() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/conventionNameCalls/replaceCallWithUnaryOperator"), Pattern.compile("^([\\w\\-_]+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/conventionNameCalls/replaceCallWithUnaryOperator"), Pattern.compile("^([\\w\\-_]+)\\.(kt|kts)$"), TargetBackend.ANY, true); } @TestMetadata("complexPlus.kt") @@ -3685,7 +3685,7 @@ public class IntentionTestGenerated extends AbstractIntentionTest { @RunWith(JUnit3RunnerWithInners.class) public static class ReplaceContains extends AbstractIntentionTest { public void testAllFilesPresentInReplaceContains() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/conventionNameCalls/replaceContains"), Pattern.compile("^([\\w\\-_]+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/conventionNameCalls/replaceContains"), Pattern.compile("^([\\w\\-_]+)\\.(kt|kts)$"), TargetBackend.ANY, true); } @TestMetadata("containsFromJava.kt") @@ -3826,7 +3826,7 @@ public class IntentionTestGenerated extends AbstractIntentionTest { } public void testAllFilesPresentInReplaceGetOrSet() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/conventionNameCalls/replaceGetOrSet"), Pattern.compile("^([\\w\\-_]+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/conventionNameCalls/replaceGetOrSet"), Pattern.compile("^([\\w\\-_]+)\\.(kt|kts)$"), TargetBackend.ANY, true); } @TestMetadata("argumentAndFunction.kt") @@ -3967,7 +3967,7 @@ public class IntentionTestGenerated extends AbstractIntentionTest { @RunWith(JUnit3RunnerWithInners.class) public static class ReplaceInvoke extends AbstractIntentionTest { public void testAllFilesPresentInReplaceInvoke() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/conventionNameCalls/replaceInvoke"), Pattern.compile("^([\\w\\-_]+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/conventionNameCalls/replaceInvoke"), Pattern.compile("^([\\w\\-_]+)\\.(kt|kts)$"), TargetBackend.ANY, true); } @TestMetadata("expressionReceiver.kt") @@ -4043,7 +4043,7 @@ public class IntentionTestGenerated extends AbstractIntentionTest { @RunWith(JUnit3RunnerWithInners.class) public static class ConvertAssertToIf extends AbstractIntentionTest { public void testAllFilesPresentInConvertAssertToIf() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/convertAssertToIf"), Pattern.compile("^([\\w\\-_]+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/convertAssertToIf"), Pattern.compile("^([\\w\\-_]+)\\.(kt|kts)$"), TargetBackend.ANY, true); } @TestMetadata("assertErrorOverloaded.kt") @@ -4178,7 +4178,7 @@ public class IntentionTestGenerated extends AbstractIntentionTest { @RunWith(JUnit3RunnerWithInners.class) public static class ConvertBinaryExpressionWithDemorgansLaw extends AbstractIntentionTest { public void testAllFilesPresentInConvertBinaryExpressionWithDemorgansLaw() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/convertBinaryExpressionWithDemorgansLaw"), Pattern.compile("^([\\w\\-_]+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/convertBinaryExpressionWithDemorgansLaw"), Pattern.compile("^([\\w\\-_]+)\\.(kt|kts)$"), TargetBackend.ANY, true); } @TestMetadata("complexNegation1.kt") @@ -4295,7 +4295,7 @@ public class IntentionTestGenerated extends AbstractIntentionTest { @RunWith(JUnit3RunnerWithInners.class) public static class ConvertCamelCaseTestFunctionToSpaced extends AbstractIntentionTest { public void testAllFilesPresentInConvertCamelCaseTestFunctionToSpaced() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/convertCamelCaseTestFunctionToSpaced"), Pattern.compile("^([\\w\\-_]+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/convertCamelCaseTestFunctionToSpaced"), Pattern.compile("^([\\w\\-_]+)\\.(kt|kts)$"), TargetBackend.ANY, true); } @TestMetadata("letters.kt") @@ -4346,7 +4346,7 @@ public class IntentionTestGenerated extends AbstractIntentionTest { } public void testAllFilesPresentInConvertClassToSealedClass() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/convertClassToSealedClass"), Pattern.compile("^([\\w\\-_]+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/convertClassToSealedClass"), Pattern.compile("^([\\w\\-_]+)\\.(kt|kts)$"), TargetBackend.ANY, true); } @TestMetadata("noConstructor.kt") @@ -4415,7 +4415,7 @@ public class IntentionTestGenerated extends AbstractIntentionTest { @RunWith(JUnit3RunnerWithInners.class) public static class ConvertEnumToSealedClass extends AbstractIntentionTest { public void testAllFilesPresentInConvertEnumToSealedClass() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/convertEnumToSealedClass"), Pattern.compile("^([\\w\\-_]+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/convertEnumToSealedClass"), Pattern.compile("^([\\w\\-_]+)\\.(kt|kts)$"), TargetBackend.ANY, true); } @TestMetadata("entriesAndMembers.kt") @@ -4454,7 +4454,7 @@ public class IntentionTestGenerated extends AbstractIntentionTest { @RunWith(JUnit3RunnerWithInners.class) public static class ConvertForEachToForLoop extends AbstractIntentionTest { public void testAllFilesPresentInConvertForEachToForLoop() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/convertForEachToForLoop"), Pattern.compile("^([\\w\\-_]+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/convertForEachToForLoop"), Pattern.compile("^([\\w\\-_]+)\\.(kt|kts)$"), TargetBackend.ANY, true); } @TestMetadata("complexReceiver.kt") @@ -4577,7 +4577,7 @@ public class IntentionTestGenerated extends AbstractIntentionTest { } public void testAllFilesPresentInConvertFunctionToProperty() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/convertFunctionToProperty"), Pattern.compile("^([\\w\\-_]+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/convertFunctionToProperty"), Pattern.compile("^([\\w\\-_]+)\\.(kt|kts)$"), TargetBackend.ANY, true); } @TestMetadata("annotationLineBreak.kt") @@ -4736,7 +4736,7 @@ public class IntentionTestGenerated extends AbstractIntentionTest { @RunWith(JUnit3RunnerWithInners.class) public static class ConvertFunctionTypeParameterToReceiver extends AbstractIntentionTest { public void testAllFilesPresentInConvertFunctionTypeParameterToReceiver() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/convertFunctionTypeParameterToReceiver"), Pattern.compile("^([\\w\\-_]+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/convertFunctionTypeParameterToReceiver"), Pattern.compile("^([\\w\\-_]+)\\.(kt|kts)$"), TargetBackend.ANY, true); } @TestMetadata("alreadyHasReceiver.kt") @@ -4847,7 +4847,7 @@ public class IntentionTestGenerated extends AbstractIntentionTest { @RunWith(JUnit3RunnerWithInners.class) public static class ConvertFunctionTypeReceiverToParameter extends AbstractIntentionTest { public void testAllFilesPresentInConvertFunctionTypeReceiverToParameter() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/convertFunctionTypeReceiverToParameter"), Pattern.compile("^([\\w\\-_]+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/convertFunctionTypeReceiverToParameter"), Pattern.compile("^([\\w\\-_]+)\\.(kt|kts)$"), TargetBackend.ANY, true); } @TestMetadata("function.kt") @@ -4898,7 +4898,7 @@ public class IntentionTestGenerated extends AbstractIntentionTest { @RunWith(JUnit3RunnerWithInners.class) public static class ConvertIfWithThrowToAssert extends AbstractIntentionTest { public void testAllFilesPresentInConvertIfWithThrowToAssert() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/convertIfWithThrowToAssert"), Pattern.compile("^([\\w\\-_]+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/convertIfWithThrowToAssert"), Pattern.compile("^([\\w\\-_]+)\\.(kt|kts)$"), TargetBackend.ANY, true); } @TestMetadata("assertOverloaded.kt") @@ -4985,7 +4985,7 @@ public class IntentionTestGenerated extends AbstractIntentionTest { @RunWith(JUnit3RunnerWithInners.class) public static class ConvertLambdaToReference extends AbstractIntentionTest { public void testAllFilesPresentInConvertLambdaToReference() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/convertLambdaToReference"), Pattern.compile("^([\\w\\-_]+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/convertLambdaToReference"), Pattern.compile("^([\\w\\-_]+)\\.(kt|kts)$"), TargetBackend.ANY, true); } @TestMetadata("argumentWithReceiver.kt") @@ -5318,7 +5318,7 @@ public class IntentionTestGenerated extends AbstractIntentionTest { @RunWith(JUnit3RunnerWithInners.class) public static class ConvertNegatedBooleanSequence extends AbstractIntentionTest { public void testAllFilesPresentInConvertNegatedBooleanSequence() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/convertNegatedBooleanSequence"), Pattern.compile("^([\\w\\-_]+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/convertNegatedBooleanSequence"), Pattern.compile("^([\\w\\-_]+)\\.(kt|kts)$"), TargetBackend.ANY, true); } @TestMetadata("complexNegatedSequence.kt") @@ -5387,7 +5387,7 @@ public class IntentionTestGenerated extends AbstractIntentionTest { @RunWith(JUnit3RunnerWithInners.class) public static class ConvertObjectLiteralToClass extends AbstractIntentionTest { public void testAllFilesPresentInConvertObjectLiteralToClass() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/convertObjectLiteralToClass"), Pattern.compile("^([\\w\\-_]+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/convertObjectLiteralToClass"), Pattern.compile("^([\\w\\-_]+)\\.(kt|kts)$"), TargetBackend.ANY, true); } @TestMetadata("inClass.kt") @@ -5438,7 +5438,7 @@ public class IntentionTestGenerated extends AbstractIntentionTest { @RunWith(JUnit3RunnerWithInners.class) public static class ConvertParameterToReceiver extends AbstractIntentionTest { public void testAllFilesPresentInConvertParameterToReceiver() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/convertParameterToReceiver"), Pattern.compile("^([\\w\\-_]+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/convertParameterToReceiver"), Pattern.compile("^([\\w\\-_]+)\\.(kt|kts)$"), TargetBackend.ANY, true); } @TestMetadata("classParameter.kt") @@ -5525,7 +5525,7 @@ public class IntentionTestGenerated extends AbstractIntentionTest { @RunWith(JUnit3RunnerWithInners.class) public static class ConvertPrimaryConstructorToSecondary extends AbstractIntentionTest { public void testAllFilesPresentInConvertPrimaryConstructorToSecondary() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/convertPrimaryConstructorToSecondary"), Pattern.compile("^([\\w\\-_]+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/convertPrimaryConstructorToSecondary"), Pattern.compile("^([\\w\\-_]+)\\.(kt|kts)$"), TargetBackend.ANY, true); } @TestMetadata("annotatedConstructor.kt") @@ -5714,7 +5714,7 @@ public class IntentionTestGenerated extends AbstractIntentionTest { @RunWith(JUnit3RunnerWithInners.class) public static class ConvertPropertyInitializerToGetter extends AbstractIntentionTest { public void testAllFilesPresentInConvertPropertyInitializerToGetter() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/convertPropertyInitializerToGetter"), Pattern.compile("^([\\w\\-_]+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/convertPropertyInitializerToGetter"), Pattern.compile("^([\\w\\-_]+)\\.(kt|kts)$"), TargetBackend.ANY, true); } @TestMetadata("errorType.kt") @@ -5789,7 +5789,7 @@ public class IntentionTestGenerated extends AbstractIntentionTest { } public void testAllFilesPresentInConvertPropertyToFunction() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/convertPropertyToFunction"), Pattern.compile("^([\\w\\-_]+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/convertPropertyToFunction"), Pattern.compile("^([\\w\\-_]+)\\.(kt|kts)$"), TargetBackend.ANY, true); } @TestMetadata("blockBody.kt") @@ -5882,7 +5882,7 @@ public class IntentionTestGenerated extends AbstractIntentionTest { @RunWith(JUnit3RunnerWithInners.class) public static class ConvertRangeCheckToTwoComparisons extends AbstractIntentionTest { public void testAllFilesPresentInConvertRangeCheckToTwoComparisons() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/convertRangeCheckToTwoComparisons"), Pattern.compile("^([\\w\\-_]+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/convertRangeCheckToTwoComparisons"), Pattern.compile("^([\\w\\-_]+)\\.(kt|kts)$"), TargetBackend.ANY, true); } @TestMetadata("double.kt") @@ -5939,7 +5939,7 @@ public class IntentionTestGenerated extends AbstractIntentionTest { @RunWith(JUnit3RunnerWithInners.class) public static class ConvertReceiverToParameter extends AbstractIntentionTest { public void testAllFilesPresentInConvertReceiverToParameter() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/convertReceiverToParameter"), Pattern.compile("^([\\w\\-_]+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/convertReceiverToParameter"), Pattern.compile("^([\\w\\-_]+)\\.(kt|kts)$"), TargetBackend.ANY, true); } @TestMetadata("autoSuggestedName.kt") @@ -6014,7 +6014,7 @@ public class IntentionTestGenerated extends AbstractIntentionTest { @RunWith(JUnit3RunnerWithInners.class) public static class ConvertReferenceToLambda extends AbstractIntentionTest { public void testAllFilesPresentInConvertReferenceToLambda() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/convertReferenceToLambda"), Pattern.compile("^([\\w\\-_]+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/convertReferenceToLambda"), Pattern.compile("^([\\w\\-_]+)\\.(kt|kts)$"), TargetBackend.ANY, true); } @TestMetadata("apply.kt") @@ -6215,7 +6215,7 @@ public class IntentionTestGenerated extends AbstractIntentionTest { @RunWith(JUnit3RunnerWithInners.class) public static class ConvertSealedClassToEnum extends AbstractIntentionTest { public void testAllFilesPresentInConvertSealedClassToEnum() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/convertSealedClassToEnum"), Pattern.compile("^([\\w\\-_]+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/convertSealedClassToEnum"), Pattern.compile("^([\\w\\-_]+)\\.(kt|kts)$"), TargetBackend.ANY, true); } @TestMetadata("dropDefaultConstructorCall.kt") @@ -6284,7 +6284,7 @@ public class IntentionTestGenerated extends AbstractIntentionTest { @RunWith(JUnit3RunnerWithInners.class) public static class ConvertSecondaryConstructorToPrimary extends AbstractIntentionTest { public void testAllFilesPresentInConvertSecondaryConstructorToPrimary() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/convertSecondaryConstructorToPrimary"), Pattern.compile("^([\\w\\-_]+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/convertSecondaryConstructorToPrimary"), Pattern.compile("^([\\w\\-_]+)\\.(kt|kts)$"), TargetBackend.ANY, true); } @TestMetadata("defaultValueChain.kt") @@ -6443,7 +6443,7 @@ public class IntentionTestGenerated extends AbstractIntentionTest { @RunWith(JUnit3RunnerWithInners.class) public static class ConvertToApply extends AbstractIntentionTest { public void testAllFilesPresentInConvertToApply() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/convertToApply"), Pattern.compile("^([\\w\\-_]+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/convertToApply"), Pattern.compile("^([\\w\\-_]+)\\.(kt|kts)$"), TargetBackend.ANY, true); } @TestMetadata("methodChain.kt") @@ -6524,7 +6524,7 @@ public class IntentionTestGenerated extends AbstractIntentionTest { } public void testAllFilesPresentInConvertToBlockBody() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/convertToBlockBody"), Pattern.compile("^([\\w\\-_]+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/convertToBlockBody"), Pattern.compile("^([\\w\\-_]+)\\.(kt|kts)$"), TargetBackend.ANY, true); } @TestMetadata("annotatedExpr.kt") @@ -6677,7 +6677,7 @@ public class IntentionTestGenerated extends AbstractIntentionTest { @RunWith(JUnit3RunnerWithInners.class) public static class ConvertToConcatenatedString extends AbstractIntentionTest { public void testAllFilesPresentInConvertToConcatenatedString() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/convertToConcatenatedString"), Pattern.compile("^([\\w\\-_]+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/convertToConcatenatedString"), Pattern.compile("^([\\w\\-_]+)\\.(kt|kts)$"), TargetBackend.ANY, true); } @TestMetadata("embeddedIf.kt") @@ -6836,7 +6836,7 @@ public class IntentionTestGenerated extends AbstractIntentionTest { @RunWith(JUnit3RunnerWithInners.class) public static class ConvertToForEachFunctionCall extends AbstractIntentionTest { public void testAllFilesPresentInConvertToForEachFunctionCall() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/convertToForEachFunctionCall"), Pattern.compile("^([\\w\\-_]+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/convertToForEachFunctionCall"), Pattern.compile("^([\\w\\-_]+)\\.(kt|kts)$"), TargetBackend.ANY, true); } @TestMetadata("binaryExpressionLoopRange.kt") @@ -6923,7 +6923,7 @@ public class IntentionTestGenerated extends AbstractIntentionTest { @RunWith(JUnit3RunnerWithInners.class) public static class ConvertToRawStringTemplate extends AbstractIntentionTest { public void testAllFilesPresentInConvertToRawStringTemplate() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/convertToRawStringTemplate"), Pattern.compile("^([\\w\\-_]+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/convertToRawStringTemplate"), Pattern.compile("^([\\w\\-_]+)\\.(kt|kts)$"), TargetBackend.ANY, true); } @TestMetadata("basic.kt") @@ -6938,7 +6938,7 @@ public class IntentionTestGenerated extends AbstractIntentionTest { @RunWith(JUnit3RunnerWithInners.class) public static class ConvertToRun extends AbstractIntentionTest { public void testAllFilesPresentInConvertToRun() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/convertToRun"), Pattern.compile("^([\\w\\-_]+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/convertToRun"), Pattern.compile("^([\\w\\-_]+)\\.(kt|kts)$"), TargetBackend.ANY, true); } @TestMetadata("itReceiver.kt") @@ -7013,7 +7013,7 @@ public class IntentionTestGenerated extends AbstractIntentionTest { @RunWith(JUnit3RunnerWithInners.class) public static class ConvertToStringTemplate extends AbstractIntentionTest { public void testAllFilesPresentInConvertToStringTemplate() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/convertToStringTemplate"), Pattern.compile("^([\\w\\-_]+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/convertToStringTemplate"), Pattern.compile("^([\\w\\-_]+)\\.(kt|kts)$"), TargetBackend.ANY, true); } @TestMetadata("backslashNMultilineString.kt") @@ -7250,7 +7250,7 @@ public class IntentionTestGenerated extends AbstractIntentionTest { @RunWith(JUnit3RunnerWithInners.class) public static class ConvertToWith extends AbstractIntentionTest { public void testAllFilesPresentInConvertToWith() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/convertToWith"), Pattern.compile("^([\\w\\-_]+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/convertToWith"), Pattern.compile("^([\\w\\-_]+)\\.(kt|kts)$"), TargetBackend.ANY, true); } @TestMetadata("itReceiver.kt") @@ -7325,7 +7325,7 @@ public class IntentionTestGenerated extends AbstractIntentionTest { @RunWith(JUnit3RunnerWithInners.class) public static class ConvertTryFinallyToUseCall extends AbstractIntentionTest { public void testAllFilesPresentInConvertTryFinallyToUseCall() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/convertTryFinallyToUseCall"), Pattern.compile("^([\\w\\-_]+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/convertTryFinallyToUseCall"), Pattern.compile("^([\\w\\-_]+)\\.(kt|kts)$"), TargetBackend.ANY, true); } @TestMetadata("catch.kt") @@ -7406,7 +7406,7 @@ public class IntentionTestGenerated extends AbstractIntentionTest { @RunWith(JUnit3RunnerWithInners.class) public static class ConvertTwoComparisonsToRangeCheck extends AbstractIntentionTest { public void testAllFilesPresentInConvertTwoComparisonsToRangeCheck() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/convertTwoComparisonsToRangeCheck"), Pattern.compile("^([\\w\\-_]+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/convertTwoComparisonsToRangeCheck"), Pattern.compile("^([\\w\\-_]+)\\.(kt|kts)$"), TargetBackend.ANY, true); } @TestMetadata("char.kt") @@ -7595,7 +7595,7 @@ public class IntentionTestGenerated extends AbstractIntentionTest { @RunWith(JUnit3RunnerWithInners.class) public static class CopyConcatenatedStringToClipboard extends AbstractIntentionTest { public void testAllFilesPresentInCopyConcatenatedStringToClipboard() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/copyConcatenatedStringToClipboard"), Pattern.compile("^([\\w\\-_]+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/copyConcatenatedStringToClipboard"), Pattern.compile("^([\\w\\-_]+)\\.(kt|kts)$"), TargetBackend.ANY, true); } @TestMetadata("constants.kt") @@ -7634,7 +7634,7 @@ public class IntentionTestGenerated extends AbstractIntentionTest { @RunWith(JUnit3RunnerWithInners.class) public static class Declarations extends AbstractIntentionTest { public void testAllFilesPresentInDeclarations() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/declarations"), Pattern.compile("^([\\w\\-_]+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/declarations"), Pattern.compile("^([\\w\\-_]+)\\.(kt|kts)$"), TargetBackend.ANY, true); } @TestMetadata("idea/testData/intentions/declarations/convertMemberToExtension") @@ -7654,7 +7654,7 @@ public class IntentionTestGenerated extends AbstractIntentionTest { } public void testAllFilesPresentInConvertMemberToExtension() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/declarations/convertMemberToExtension"), Pattern.compile("^([\\w\\-_]+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/declarations/convertMemberToExtension"), Pattern.compile("^([\\w\\-_]+)\\.(kt|kts)$"), TargetBackend.ANY, true); } @TestMetadata("explicitUnit.kt") @@ -7885,7 +7885,7 @@ public class IntentionTestGenerated extends AbstractIntentionTest { @RunWith(JUnit3RunnerWithInners.class) public static class Split extends AbstractIntentionTest { public void testAllFilesPresentInSplit() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/declarations/split"), Pattern.compile("^([\\w\\-_]+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/declarations/split"), Pattern.compile("^([\\w\\-_]+)\\.(kt|kts)$"), TargetBackend.ANY, true); } @TestMetadata("longInit.kt") @@ -7967,7 +7967,7 @@ public class IntentionTestGenerated extends AbstractIntentionTest { @RunWith(JUnit3RunnerWithInners.class) public static class DeprecatedCallableAddReplaceWith extends AbstractIntentionTest { public void testAllFilesPresentInDeprecatedCallableAddReplaceWith() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/deprecatedCallableAddReplaceWith"), Pattern.compile("^([\\w\\-_]+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/deprecatedCallableAddReplaceWith"), Pattern.compile("^([\\w\\-_]+)\\.(kt|kts)$"), TargetBackend.ANY, true); } @TestMetadata("AlreadyWithReplaceWith.kt") @@ -7994,6 +7994,12 @@ public class IntentionTestGenerated extends AbstractIntentionTest { doTest(fileName); } + @TestMetadata("destructuringWithLambdaInScript.kts") + public void testDestructuringWithLambdaInScript() throws Exception { + String fileName = KotlinTestUtils.navigationMetadata("idea/testData/intentions/deprecatedCallableAddReplaceWith/destructuringWithLambdaInScript.kts"); + doTest(fileName); + } + @TestMetadata("ExceptionInPropertyDestructuringEntry.kt") public void testExceptionInPropertyDestructuringEntry() throws Exception { String fileName = KotlinTestUtils.navigationMetadata("idea/testData/intentions/deprecatedCallableAddReplaceWith/ExceptionInPropertyDestructuringEntry.kt"); @@ -8018,6 +8024,12 @@ public class IntentionTestGenerated extends AbstractIntentionTest { doTest(fileName); } + @TestMetadata("justLambdaInScript.kts") + public void testJustLambdaInScript() throws Exception { + String fileName = KotlinTestUtils.navigationMetadata("idea/testData/intentions/deprecatedCallableAddReplaceWith/justLambdaInScript.kts"); + doTest(fileName); + } + @TestMetadata("NoCompanionObjectImport.kt") public void testNoCompanionObjectImport() throws Exception { String fileName = KotlinTestUtils.navigationMetadata("idea/testData/intentions/deprecatedCallableAddReplaceWith/NoCompanionObjectImport.kt"); @@ -8108,7 +8120,7 @@ public class IntentionTestGenerated extends AbstractIntentionTest { @RunWith(JUnit3RunnerWithInners.class) public static class DestructuringInLambda extends AbstractIntentionTest { public void testAllFilesPresentInDestructuringInLambda() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/destructuringInLambda"), Pattern.compile("^([\\w\\-_]+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/destructuringInLambda"), Pattern.compile("^([\\w\\-_]+)\\.(kt|kts)$"), TargetBackend.ANY, true); } @TestMetadata("caret.kt") @@ -8225,7 +8237,7 @@ public class IntentionTestGenerated extends AbstractIntentionTest { @RunWith(JUnit3RunnerWithInners.class) public static class DestructuringVariables extends AbstractIntentionTest { public void testAllFilesPresentInDestructuringVariables() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/destructuringVariables"), Pattern.compile("^([\\w\\-_]+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/destructuringVariables"), Pattern.compile("^([\\w\\-_]+)\\.(kt|kts)$"), TargetBackend.ANY, true); } @TestMetadata("caret.kt") @@ -8282,7 +8294,7 @@ public class IntentionTestGenerated extends AbstractIntentionTest { @RunWith(JUnit3RunnerWithInners.class) public static class FoldInitializerAndIfToElvis extends AbstractIntentionTest { public void testAllFilesPresentInFoldInitializerAndIfToElvis() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/foldInitializerAndIfToElvis"), Pattern.compile("^([\\w\\-_]+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/foldInitializerAndIfToElvis"), Pattern.compile("^([\\w\\-_]+)\\.(kt|kts)$"), TargetBackend.ANY, true); } @TestMetadata("Break.kt") @@ -8405,7 +8417,7 @@ public class IntentionTestGenerated extends AbstractIntentionTest { @RunWith(JUnit3RunnerWithInners.class) public static class ImplementAbstractMember extends AbstractIntentionTest { public void testAllFilesPresentInImplementAbstractMember() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/implementAbstractMember"), Pattern.compile("^([\\w\\-_]+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/implementAbstractMember"), Pattern.compile("^([\\w\\-_]+)\\.(kt|kts)$"), TargetBackend.ANY, true); } @TestMetadata("idea/testData/intentions/implementAbstractMember/function") @@ -8413,7 +8425,7 @@ public class IntentionTestGenerated extends AbstractIntentionTest { @RunWith(JUnit3RunnerWithInners.class) public static class Function extends AbstractIntentionTest { public void testAllFilesPresentInFunction() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/implementAbstractMember/function"), Pattern.compile("^([\\w\\-_]+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/implementAbstractMember/function"), Pattern.compile("^([\\w\\-_]+)\\.(kt|kts)$"), TargetBackend.ANY, true); } @TestMetadata("enumClass.kt") @@ -8500,7 +8512,7 @@ public class IntentionTestGenerated extends AbstractIntentionTest { @RunWith(JUnit3RunnerWithInners.class) public static class Property extends AbstractIntentionTest { public void testAllFilesPresentInProperty() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/implementAbstractMember/property"), Pattern.compile("^([\\w\\-_]+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/implementAbstractMember/property"), Pattern.compile("^([\\w\\-_]+)\\.(kt|kts)$"), TargetBackend.ANY, true); } @TestMetadata("enumClass.kt") @@ -8588,7 +8600,7 @@ public class IntentionTestGenerated extends AbstractIntentionTest { @RunWith(JUnit3RunnerWithInners.class) public static class ImplementAsConstructorParameter extends AbstractIntentionTest { public void testAllFilesPresentInImplementAsConstructorParameter() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/implementAsConstructorParameter"), Pattern.compile("^([\\w\\-_]+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/implementAsConstructorParameter"), Pattern.compile("^([\\w\\-_]+)\\.(kt|kts)$"), TargetBackend.ANY, true); } @TestMetadata("enumClass.kt") @@ -8663,7 +8675,7 @@ public class IntentionTestGenerated extends AbstractIntentionTest { @RunWith(JUnit3RunnerWithInners.class) public static class ImportAllMembers extends AbstractIntentionTest { public void testAllFilesPresentInImportAllMembers() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/importAllMembers"), Pattern.compile("^([\\w\\-_]+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/importAllMembers"), Pattern.compile("^([\\w\\-_]+)\\.(kt|kts)$"), TargetBackend.ANY, true); } @TestMetadata("AlreadyImported.kt") @@ -8744,7 +8756,7 @@ public class IntentionTestGenerated extends AbstractIntentionTest { @RunWith(JUnit3RunnerWithInners.class) public static class ImportMember extends AbstractIntentionTest { public void testAllFilesPresentInImportMember() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/importMember"), Pattern.compile("^([\\w\\-_]+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/importMember"), Pattern.compile("^([\\w\\-_]+)\\.(kt|kts)$"), TargetBackend.ANY, true); } @TestMetadata("EnumMember.kt") @@ -8849,7 +8861,7 @@ public class IntentionTestGenerated extends AbstractIntentionTest { @RunWith(JUnit3RunnerWithInners.class) public static class InfixCallToOrdinary extends AbstractIntentionTest { public void testAllFilesPresentInInfixCallToOrdinary() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/infixCallToOrdinary"), Pattern.compile("^([\\w\\-_]+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/infixCallToOrdinary"), Pattern.compile("^([\\w\\-_]+)\\.(kt|kts)$"), TargetBackend.ANY, true); } @TestMetadata("functionCallAfterInfixCall.kt") @@ -8894,7 +8906,7 @@ public class IntentionTestGenerated extends AbstractIntentionTest { @RunWith(JUnit3RunnerWithInners.class) public static class InsertCurlyBracesToTemplate extends AbstractIntentionTest { public void testAllFilesPresentInInsertCurlyBracesToTemplate() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/insertCurlyBracesToTemplate"), Pattern.compile("^([\\w\\-_]+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/insertCurlyBracesToTemplate"), Pattern.compile("^([\\w\\-_]+)\\.(kt|kts)$"), TargetBackend.ANY, true); } @TestMetadata("dontInsertBrackets1.kt") @@ -8939,7 +8951,7 @@ public class IntentionTestGenerated extends AbstractIntentionTest { @RunWith(JUnit3RunnerWithInners.class) public static class InsertExplicitTypeArguments extends AbstractIntentionTest { public void testAllFilesPresentInInsertExplicitTypeArguments() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/insertExplicitTypeArguments"), Pattern.compile("^([\\w\\-_]+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/insertExplicitTypeArguments"), Pattern.compile("^([\\w\\-_]+)\\.(kt|kts)$"), TargetBackend.ANY, true); } @TestMetadata("inapplicableAlreadyTyped.kt") @@ -9062,7 +9074,7 @@ public class IntentionTestGenerated extends AbstractIntentionTest { @RunWith(JUnit3RunnerWithInners.class) public static class IntroduceBackingProperty extends AbstractIntentionTest { public void testAllFilesPresentInIntroduceBackingProperty() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/introduceBackingProperty"), Pattern.compile("^([\\w\\-_]+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/introduceBackingProperty"), Pattern.compile("^([\\w\\-_]+)\\.(kt|kts)$"), TargetBackend.ANY, true); } @TestMetadata("backingFieldRef.kt") @@ -9131,7 +9143,7 @@ public class IntentionTestGenerated extends AbstractIntentionTest { } public void testAllFilesPresentInIntroduceVariable() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/introduceVariable"), Pattern.compile("^([\\w\\-_]+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/introduceVariable"), Pattern.compile("^([\\w\\-_]+)\\.(kt|kts)$"), TargetBackend.ANY, true); } @TestMetadata("atExpressionEnd.kt") @@ -9188,7 +9200,7 @@ public class IntentionTestGenerated extends AbstractIntentionTest { } public void testAllFilesPresentInInvertIfCondition() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/invertIfCondition"), Pattern.compile("^([\\w\\-_]+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/invertIfCondition"), Pattern.compile("^([\\w\\-_]+)\\.(kt|kts)$"), TargetBackend.ANY, true); } @TestMetadata("assignedToValue.kt") @@ -9419,7 +9431,7 @@ public class IntentionTestGenerated extends AbstractIntentionTest { @RunWith(JUnit3RunnerWithInners.class) public static class IterateExpression extends AbstractIntentionTest { public void testAllFilesPresentInIterateExpression() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/iterateExpression"), Pattern.compile("^([\\w\\-_]+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/iterateExpression"), Pattern.compile("^([\\w\\-_]+)\\.(kt|kts)$"), TargetBackend.ANY, true); } @TestMetadata("collectionIteratorWithComponents.kt") @@ -9500,7 +9512,7 @@ public class IntentionTestGenerated extends AbstractIntentionTest { @RunWith(JUnit3RunnerWithInners.class) public static class IterationOverMap extends AbstractIntentionTest { public void testAllFilesPresentInIterationOverMap() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/iterationOverMap"), Pattern.compile("^([\\w\\-_]+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/iterationOverMap"), Pattern.compile("^([\\w\\-_]+)\\.(kt|kts)$"), TargetBackend.ANY, true); } @TestMetadata("AlreadyDestructing.kt") @@ -9749,7 +9761,7 @@ public class IntentionTestGenerated extends AbstractIntentionTest { @RunWith(JUnit3RunnerWithInners.class) public static class JoinDeclarationAndAssignment extends AbstractIntentionTest { public void testAllFilesPresentInJoinDeclarationAndAssignment() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/joinDeclarationAndAssignment"), Pattern.compile("^([\\w\\-_]+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/joinDeclarationAndAssignment"), Pattern.compile("^([\\w\\-_]+)\\.(kt|kts)$"), TargetBackend.ANY, true); } @TestMetadata("assignmentForFlexible.kt") @@ -9884,7 +9896,7 @@ public class IntentionTestGenerated extends AbstractIntentionTest { @RunWith(JUnit3RunnerWithInners.class) public static class LoopToCallChain extends AbstractIntentionTest { public void testAllFilesPresentInLoopToCallChain() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/loopToCallChain"), Pattern.compile("^([\\w\\-_]+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/loopToCallChain"), Pattern.compile("^([\\w\\-_]+)\\.(kt|kts)$"), TargetBackend.ANY, true); } @TestMetadata("array.kt") @@ -9970,7 +9982,7 @@ public class IntentionTestGenerated extends AbstractIntentionTest { @RunWith(JUnit3RunnerWithInners.class) public static class Any extends AbstractIntentionTest { public void testAllFilesPresentInAny() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/loopToCallChain/any"), Pattern.compile("^([\\w\\-_]+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/loopToCallChain/any"), Pattern.compile("^([\\w\\-_]+)\\.(kt|kts)$"), TargetBackend.ANY, true); } @TestMetadata("anyNotNull.kt") @@ -10087,7 +10099,7 @@ public class IntentionTestGenerated extends AbstractIntentionTest { } public void testAllFilesPresentInContains() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/loopToCallChain/contains"), Pattern.compile("^([\\w\\-_]+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/loopToCallChain/contains"), Pattern.compile("^([\\w\\-_]+)\\.(kt|kts)$"), TargetBackend.ANY, true); } } @@ -10108,7 +10120,7 @@ public class IntentionTestGenerated extends AbstractIntentionTest { } public void testAllFilesPresentInCount() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/loopToCallChain/count"), Pattern.compile("^([\\w\\-_]+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/loopToCallChain/count"), Pattern.compile("^([\\w\\-_]+)\\.(kt|kts)$"), TargetBackend.ANY, true); } @TestMetadata("countIsInstance.kt") @@ -10165,7 +10177,7 @@ public class IntentionTestGenerated extends AbstractIntentionTest { @RunWith(JUnit3RunnerWithInners.class) public static class Filter extends AbstractIntentionTest { public void testAllFilesPresentInFilter() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/loopToCallChain/filter"), Pattern.compile("^([\\w\\-_]+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/loopToCallChain/filter"), Pattern.compile("^([\\w\\-_]+)\\.(kt|kts)$"), TargetBackend.ANY, true); } @TestMetadata("assign.kt") @@ -10474,7 +10486,7 @@ public class IntentionTestGenerated extends AbstractIntentionTest { @RunWith(JUnit3RunnerWithInners.class) public static class FirstOrNull extends AbstractIntentionTest { public void testAllFilesPresentInFirstOrNull() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/loopToCallChain/firstOrNull"), Pattern.compile("^([\\w\\-_]+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/loopToCallChain/firstOrNull"), Pattern.compile("^([\\w\\-_]+)\\.(kt|kts)$"), TargetBackend.ANY, true); } @TestMetadata("assignmentInitialization.kt") @@ -10603,7 +10615,7 @@ public class IntentionTestGenerated extends AbstractIntentionTest { @RunWith(JUnit3RunnerWithInners.class) public static class FlatMap extends AbstractIntentionTest { public void testAllFilesPresentInFlatMap() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/loopToCallChain/flatMap"), Pattern.compile("^([\\w\\-_]+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/loopToCallChain/flatMap"), Pattern.compile("^([\\w\\-_]+)\\.(kt|kts)$"), TargetBackend.ANY, true); } @TestMetadata("break.kt") @@ -10678,7 +10690,7 @@ public class IntentionTestGenerated extends AbstractIntentionTest { @RunWith(JUnit3RunnerWithInners.class) public static class ForEach extends AbstractIntentionTest { public void testAllFilesPresentInForEach() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/loopToCallChain/forEach"), Pattern.compile("^([\\w\\-_]+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/loopToCallChain/forEach"), Pattern.compile("^([\\w\\-_]+)\\.(kt|kts)$"), TargetBackend.ANY, true); } @TestMetadata("indexed.kt") @@ -10723,7 +10735,7 @@ public class IntentionTestGenerated extends AbstractIntentionTest { @RunWith(JUnit3RunnerWithInners.class) public static class IndexOf extends AbstractIntentionTest { public void testAllFilesPresentInIndexOf() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/loopToCallChain/indexOf"), Pattern.compile("^([\\w\\-_]+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/loopToCallChain/indexOf"), Pattern.compile("^([\\w\\-_]+)\\.(kt|kts)$"), TargetBackend.ANY, true); } @TestMetadata("indexOf.kt") @@ -10774,7 +10786,7 @@ public class IntentionTestGenerated extends AbstractIntentionTest { @RunWith(JUnit3RunnerWithInners.class) public static class IntroduceIndex extends AbstractIntentionTest { public void testAllFilesPresentInIntroduceIndex() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/loopToCallChain/introduceIndex"), Pattern.compile("^([\\w\\-_]+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/loopToCallChain/introduceIndex"), Pattern.compile("^([\\w\\-_]+)\\.(kt|kts)$"), TargetBackend.ANY, true); } @TestMetadata("indexPlusPlusInsideExpression.kt") @@ -10831,7 +10843,7 @@ public class IntentionTestGenerated extends AbstractIntentionTest { @RunWith(JUnit3RunnerWithInners.class) public static class Map extends AbstractIntentionTest { public void testAllFilesPresentInMap() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/loopToCallChain/map"), Pattern.compile("^([\\w\\-_]+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/loopToCallChain/map"), Pattern.compile("^([\\w\\-_]+)\\.(kt|kts)$"), TargetBackend.ANY, true); } @TestMetadata("assignMap.kt") @@ -11002,7 +11014,7 @@ public class IntentionTestGenerated extends AbstractIntentionTest { @RunWith(JUnit3RunnerWithInners.class) public static class MaxMin extends AbstractIntentionTest { public void testAllFilesPresentInMaxMin() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/loopToCallChain/maxMin"), Pattern.compile("^([\\w\\-_]+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/loopToCallChain/maxMin"), Pattern.compile("^([\\w\\-_]+)\\.(kt|kts)$"), TargetBackend.ANY, true); } @TestMetadata("KT14210.kt") @@ -11089,7 +11101,7 @@ public class IntentionTestGenerated extends AbstractIntentionTest { @RunWith(JUnit3RunnerWithInners.class) public static class SmartCasts extends AbstractIntentionTest { public void testAllFilesPresentInSmartCasts() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/loopToCallChain/smartCasts"), Pattern.compile("^([\\w\\-_]+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/loopToCallChain/smartCasts"), Pattern.compile("^([\\w\\-_]+)\\.(kt|kts)$"), TargetBackend.ANY, true); } @TestMetadata("errorOutsideLoop.kt") @@ -11188,7 +11200,7 @@ public class IntentionTestGenerated extends AbstractIntentionTest { @RunWith(JUnit3RunnerWithInners.class) public static class Sum extends AbstractIntentionTest { public void testAllFilesPresentInSum() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/loopToCallChain/sum"), Pattern.compile("^([\\w\\-_]+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/loopToCallChain/sum"), Pattern.compile("^([\\w\\-_]+)\\.(kt|kts)$"), TargetBackend.ANY, true); } @TestMetadata("bytes.kt") @@ -11299,7 +11311,7 @@ public class IntentionTestGenerated extends AbstractIntentionTest { @RunWith(JUnit3RunnerWithInners.class) public static class TakeWhile extends AbstractIntentionTest { public void testAllFilesPresentInTakeWhile() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/loopToCallChain/takeWhile"), Pattern.compile("^([\\w\\-_]+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/loopToCallChain/takeWhile"), Pattern.compile("^([\\w\\-_]+)\\.(kt|kts)$"), TargetBackend.ANY, true); } @TestMetadata("ifElse1.kt") @@ -11350,7 +11362,7 @@ public class IntentionTestGenerated extends AbstractIntentionTest { } public void testAllFilesPresentInToCollection() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/loopToCallChain/toCollection"), Pattern.compile("^([\\w\\-_]+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/loopToCallChain/toCollection"), Pattern.compile("^([\\w\\-_]+)\\.(kt|kts)$"), TargetBackend.ANY, true); } @TestMetadata("badReceiver1.kt") @@ -11438,7 +11450,7 @@ public class IntentionTestGenerated extends AbstractIntentionTest { @RunWith(JUnit3RunnerWithInners.class) public static class MergeIfs extends AbstractIntentionTest { public void testAllFilesPresentInMergeIfs() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/mergeIfs"), Pattern.compile("^([\\w\\-_]+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/mergeIfs"), Pattern.compile("^([\\w\\-_]+)\\.(kt|kts)$"), TargetBackend.ANY, true); } @TestMetadata("comments.kt") @@ -11477,7 +11489,7 @@ public class IntentionTestGenerated extends AbstractIntentionTest { @RunWith(JUnit3RunnerWithInners.class) public static class MoveLambdaInsideParentheses extends AbstractIntentionTest { public void testAllFilesPresentInMoveLambdaInsideParentheses() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/moveLambdaInsideParentheses"), Pattern.compile("^([\\w\\-_]+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/moveLambdaInsideParentheses"), Pattern.compile("^([\\w\\-_]+)\\.(kt|kts)$"), TargetBackend.ANY, true); } @TestMetadata("inapplicable1.kt") @@ -11594,7 +11606,7 @@ public class IntentionTestGenerated extends AbstractIntentionTest { @RunWith(JUnit3RunnerWithInners.class) public static class MoveLambdaOutsideParentheses extends AbstractIntentionTest { public void testAllFilesPresentInMoveLambdaOutsideParentheses() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/moveLambdaOutsideParentheses"), Pattern.compile("^([\\w\\-_]+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/moveLambdaOutsideParentheses"), Pattern.compile("^([\\w\\-_]+)\\.(kt|kts)$"), TargetBackend.ANY, true); } @TestMetadata("ambigousOverload.kt") @@ -11777,7 +11789,7 @@ public class IntentionTestGenerated extends AbstractIntentionTest { @RunWith(JUnit3RunnerWithInners.class) public static class MoveOutOfCompanion extends AbstractIntentionTest { public void testAllFilesPresentInMoveOutOfCompanion() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/moveOutOfCompanion"), Pattern.compile("^([\\w\\-_]+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/moveOutOfCompanion"), Pattern.compile("^([\\w\\-_]+)\\.(kt|kts)$"), TargetBackend.ANY, true); } @TestMetadata("companionAsImplicitReceiver.kt") @@ -11840,7 +11852,7 @@ public class IntentionTestGenerated extends AbstractIntentionTest { @RunWith(JUnit3RunnerWithInners.class) public static class MovePropertyToClassBody extends AbstractIntentionTest { public void testAllFilesPresentInMovePropertyToClassBody() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/movePropertyToClassBody"), Pattern.compile("^([\\w\\-_]+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/movePropertyToClassBody"), Pattern.compile("^([\\w\\-_]+)\\.(kt|kts)$"), TargetBackend.ANY, true); } @TestMetadata("annotationWithUseSite.kt") @@ -11897,7 +11909,7 @@ public class IntentionTestGenerated extends AbstractIntentionTest { @RunWith(JUnit3RunnerWithInners.class) public static class MovePropertyToConstructor extends AbstractIntentionTest { public void testAllFilesPresentInMovePropertyToConstructor() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/movePropertyToConstructor"), Pattern.compile("^([\\w\\-_]+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/movePropertyToConstructor"), Pattern.compile("^([\\w\\-_]+)\\.(kt|kts)$"), TargetBackend.ANY, true); } @TestMetadata("annotationWithUseSite.kt") @@ -12002,7 +12014,7 @@ public class IntentionTestGenerated extends AbstractIntentionTest { } public void testAllFilesPresentInMoveToCompanion() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/moveToCompanion"), Pattern.compile("^([\\w\\-_]+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/moveToCompanion"), Pattern.compile("^([\\w\\-_]+)\\.(kt|kts)$"), TargetBackend.ANY, true); } @TestMetadata("doNotQualifyThisLabel.kt") @@ -12125,7 +12137,7 @@ public class IntentionTestGenerated extends AbstractIntentionTest { @RunWith(JUnit3RunnerWithInners.class) public static class NullableBooleanEqualityCheckToElvis extends AbstractIntentionTest { public void testAllFilesPresentInNullableBooleanEqualityCheckToElvis() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/nullableBooleanEqualityCheckToElvis"), Pattern.compile("^([\\w\\-_]+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/nullableBooleanEqualityCheckToElvis"), Pattern.compile("^([\\w\\-_]+)\\.(kt|kts)$"), TargetBackend.ANY, true); } @TestMetadata("eqFalse.kt") @@ -12164,7 +12176,7 @@ public class IntentionTestGenerated extends AbstractIntentionTest { @RunWith(JUnit3RunnerWithInners.class) public static class ObjectLiteralToLambda extends AbstractIntentionTest { public void testAllFilesPresentInObjectLiteralToLambda() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/objectLiteralToLambda"), Pattern.compile("^([\\w\\-_]+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/objectLiteralToLambda"), Pattern.compile("^([\\w\\-_]+)\\.(kt|kts)$"), TargetBackend.ANY, true); } @TestMetadata("EmptyBody.kt") @@ -12341,7 +12353,7 @@ public class IntentionTestGenerated extends AbstractIntentionTest { @RunWith(JUnit3RunnerWithInners.class) public static class OperatorToFunction extends AbstractIntentionTest { public void testAllFilesPresentInOperatorToFunction() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/operatorToFunction"), Pattern.compile("^([\\w\\-_]+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/operatorToFunction"), Pattern.compile("^([\\w\\-_]+)\\.(kt|kts)$"), TargetBackend.ANY, true); } @TestMetadata("arrayAccessMultipleIndex.kt") @@ -12518,7 +12530,7 @@ public class IntentionTestGenerated extends AbstractIntentionTest { @RunWith(JUnit3RunnerWithInners.class) public static class ReconstructTypeInCastOrIs extends AbstractIntentionTest { public void testAllFilesPresentInReconstructTypeInCastOrIs() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/reconstructTypeInCastOrIs"), Pattern.compile("^([\\w\\-_]+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/reconstructTypeInCastOrIs"), Pattern.compile("^([\\w\\-_]+)\\.(kt|kts)$"), TargetBackend.ANY, true); } @TestMetadata("completeGenericType.kt") @@ -12557,7 +12569,7 @@ public class IntentionTestGenerated extends AbstractIntentionTest { @RunWith(JUnit3RunnerWithInners.class) public static class RemoveArgumentName extends AbstractIntentionTest { public void testAllFilesPresentInRemoveArgumentName() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/removeArgumentName"), Pattern.compile("^([\\w\\-_]+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/removeArgumentName"), Pattern.compile("^([\\w\\-_]+)\\.(kt|kts)$"), TargetBackend.ANY, true); } @TestMetadata("namedArgumentBefore.kt") @@ -12626,7 +12638,7 @@ public class IntentionTestGenerated extends AbstractIntentionTest { @RunWith(JUnit3RunnerWithInners.class) public static class RemoveBraces extends AbstractIntentionTest { public void testAllFilesPresentInRemoveBraces() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/removeBraces"), Pattern.compile("^([\\w\\-_]+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/removeBraces"), Pattern.compile("^([\\w\\-_]+)\\.(kt|kts)$"), TargetBackend.ANY, true); } @TestMetadata("doWhile.kt") @@ -12761,7 +12773,7 @@ public class IntentionTestGenerated extends AbstractIntentionTest { @RunWith(JUnit3RunnerWithInners.class) public static class RemoveCurlyBracesFromTemplate extends AbstractIntentionTest { public void testAllFilesPresentInRemoveCurlyBracesFromTemplate() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/removeCurlyBracesFromTemplate"), Pattern.compile("^([\\w\\-_]+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/removeCurlyBracesFromTemplate"), Pattern.compile("^([\\w\\-_]+)\\.(kt|kts)$"), TargetBackend.ANY, true); } @TestMetadata("necessaryBrackets1.kt") @@ -12842,7 +12854,7 @@ public class IntentionTestGenerated extends AbstractIntentionTest { @RunWith(JUnit3RunnerWithInners.class) public static class RemoveEmptyClassBody extends AbstractIntentionTest { public void testAllFilesPresentInRemoveEmptyClassBody() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/removeEmptyClassBody"), Pattern.compile("^([\\w\\-_]+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/removeEmptyClassBody"), Pattern.compile("^([\\w\\-_]+)\\.(kt|kts)$"), TargetBackend.ANY, true); } @TestMetadata("anonymousInterfaceObject.kt") @@ -12929,7 +12941,7 @@ public class IntentionTestGenerated extends AbstractIntentionTest { @RunWith(JUnit3RunnerWithInners.class) public static class RemoveEmptyParenthesesFromLambdaCall extends AbstractIntentionTest { public void testAllFilesPresentInRemoveEmptyParenthesesFromLambdaCall() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/removeEmptyParenthesesFromLambdaCall"), Pattern.compile("^([\\w\\-_]+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/removeEmptyParenthesesFromLambdaCall"), Pattern.compile("^([\\w\\-_]+)\\.(kt|kts)$"), TargetBackend.ANY, true); } @TestMetadata("simple.kt") @@ -12944,7 +12956,7 @@ public class IntentionTestGenerated extends AbstractIntentionTest { @RunWith(JUnit3RunnerWithInners.class) public static class RemoveEmptyPrimaryConstructor extends AbstractIntentionTest { public void testAllFilesPresentInRemoveEmptyPrimaryConstructor() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/removeEmptyPrimaryConstructor"), Pattern.compile("^([\\w\\-_]+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/removeEmptyPrimaryConstructor"), Pattern.compile("^([\\w\\-_]+)\\.(kt|kts)$"), TargetBackend.ANY, true); } @TestMetadata("annotation.kt") @@ -13001,7 +13013,7 @@ public class IntentionTestGenerated extends AbstractIntentionTest { @RunWith(JUnit3RunnerWithInners.class) public static class RemoveEmptySecondaryConstructorBody extends AbstractIntentionTest { public void testAllFilesPresentInRemoveEmptySecondaryConstructorBody() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/removeEmptySecondaryConstructorBody"), Pattern.compile("^([\\w\\-_]+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/removeEmptySecondaryConstructorBody"), Pattern.compile("^([\\w\\-_]+)\\.(kt|kts)$"), TargetBackend.ANY, true); } @TestMetadata("comment.kt") @@ -13022,7 +13034,7 @@ public class IntentionTestGenerated extends AbstractIntentionTest { @RunWith(JUnit3RunnerWithInners.class) public static class RemoveExplicitLambdaParameterTypes extends AbstractIntentionTest { public void testAllFilesPresentInRemoveExplicitLambdaParameterTypes() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/removeExplicitLambdaParameterTypes"), Pattern.compile("^([\\w\\-_]+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/removeExplicitLambdaParameterTypes"), Pattern.compile("^([\\w\\-_]+)\\.(kt|kts)$"), TargetBackend.ANY, true); } @TestMetadata("invalidCursorPosition.kt") @@ -13085,7 +13097,7 @@ public class IntentionTestGenerated extends AbstractIntentionTest { @RunWith(JUnit3RunnerWithInners.class) public static class RemoveExplicitSuperQualifier extends AbstractIntentionTest { public void testAllFilesPresentInRemoveExplicitSuperQualifier() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/removeExplicitSuperQualifier"), Pattern.compile("^([\\w\\-_]+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/removeExplicitSuperQualifier"), Pattern.compile("^([\\w\\-_]+)\\.(kt|kts)$"), TargetBackend.ANY, true); } @TestMetadata("AmbiguousSuperMethod.kt") @@ -13160,7 +13172,7 @@ public class IntentionTestGenerated extends AbstractIntentionTest { @RunWith(JUnit3RunnerWithInners.class) public static class RemoveExplicitType extends AbstractIntentionTest { public void testAllFilesPresentInRemoveExplicitType() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/removeExplicitType"), Pattern.compile("^([\\w\\-_]+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/removeExplicitType"), Pattern.compile("^([\\w\\-_]+)\\.(kt|kts)$"), TargetBackend.ANY, true); } @TestMetadata("funNoBody.kt") @@ -13229,7 +13241,7 @@ public class IntentionTestGenerated extends AbstractIntentionTest { @RunWith(JUnit3RunnerWithInners.class) public static class RemoveExplicitTypeArguments extends AbstractIntentionTest { public void testAllFilesPresentInRemoveExplicitTypeArguments() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/removeExplicitTypeArguments"), Pattern.compile("^([\\w\\-_]+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/removeExplicitTypeArguments"), Pattern.compile("^([\\w\\-_]+)\\.(kt|kts)$"), TargetBackend.ANY, true); } @TestMetadata("blockValue.kt") @@ -13424,7 +13436,7 @@ public class IntentionTestGenerated extends AbstractIntentionTest { @RunWith(JUnit3RunnerWithInners.class) public static class RemoveForLoopIndices extends AbstractIntentionTest { public void testAllFilesPresentInRemoveForLoopIndices() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/removeForLoopIndices"), Pattern.compile("^([\\w\\-_]+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/removeForLoopIndices"), Pattern.compile("^([\\w\\-_]+)\\.(kt|kts)$"), TargetBackend.ANY, true); } @TestMetadata("inapplicableForLoop.kt") @@ -13475,7 +13487,7 @@ public class IntentionTestGenerated extends AbstractIntentionTest { @RunWith(JUnit3RunnerWithInners.class) public static class RemoveRedundantCallsOfConversionMethods extends AbstractIntentionTest { public void testAllFilesPresentInRemoveRedundantCallsOfConversionMethods() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/removeRedundantCallsOfConversionMethods"), Pattern.compile("^([\\w\\-_]+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/removeRedundantCallsOfConversionMethods"), Pattern.compile("^([\\w\\-_]+)\\.(kt|kts)$"), TargetBackend.ANY, true); } @TestMetadata("byte.kt") @@ -13556,7 +13568,7 @@ public class IntentionTestGenerated extends AbstractIntentionTest { @RunWith(JUnit3RunnerWithInners.class) public static class RemoveSingleExpressionStringTemplate extends AbstractIntentionTest { public void testAllFilesPresentInRemoveSingleExpressionStringTemplate() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/removeSingleExpressionStringTemplate"), Pattern.compile("^([\\w\\-_]+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/removeSingleExpressionStringTemplate"), Pattern.compile("^([\\w\\-_]+)\\.(kt|kts)$"), TargetBackend.ANY, true); } @TestMetadata("emptyString.kt") @@ -13607,7 +13619,7 @@ public class IntentionTestGenerated extends AbstractIntentionTest { @RunWith(JUnit3RunnerWithInners.class) public static class RemoveUnnecessaryParentheses extends AbstractIntentionTest { public void testAllFilesPresentInRemoveUnnecessaryParentheses() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/removeUnnecessaryParentheses"), Pattern.compile("^([\\w\\-_]+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/removeUnnecessaryParentheses"), Pattern.compile("^([\\w\\-_]+)\\.(kt|kts)$"), TargetBackend.ANY, true); } @TestMetadata("callInsideCallWithLambdaOnly.kt") @@ -13754,7 +13766,7 @@ public class IntentionTestGenerated extends AbstractIntentionTest { } public void testAllFilesPresentInReplaceAddWithPlusAssign() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/replaceAddWithPlusAssign"), Pattern.compile("^([\\w\\-_]+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/replaceAddWithPlusAssign"), Pattern.compile("^([\\w\\-_]+)\\.(kt|kts)$"), TargetBackend.ANY, true); } @TestMetadata("nonCollection.kt") @@ -13769,7 +13781,7 @@ public class IntentionTestGenerated extends AbstractIntentionTest { @RunWith(JUnit3RunnerWithInners.class) public static class ReplaceArrayEqualityOpWithArraysEquals extends AbstractIntentionTest { public void testAllFilesPresentInReplaceArrayEqualityOpWithArraysEquals() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/replaceArrayEqualityOpWithArraysEquals"), Pattern.compile("^([\\w\\-_]+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/replaceArrayEqualityOpWithArraysEquals"), Pattern.compile("^([\\w\\-_]+)\\.(kt|kts)$"), TargetBackend.ANY, true); } @TestMetadata("arrayAndOtherTypeEQEQ.kt") @@ -13802,7 +13814,7 @@ public class IntentionTestGenerated extends AbstractIntentionTest { @RunWith(JUnit3RunnerWithInners.class) public static class ReplaceExplicitFunctionLiteralParamWithIt extends AbstractIntentionTest { public void testAllFilesPresentInReplaceExplicitFunctionLiteralParamWithIt() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/replaceExplicitFunctionLiteralParamWithIt"), Pattern.compile("^([\\w\\-_]+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/replaceExplicitFunctionLiteralParamWithIt"), Pattern.compile("^([\\w\\-_]+)\\.(kt|kts)$"), TargetBackend.ANY, true); } @TestMetadata("applicable_cursofOverParamInInnerLiteral.kt") @@ -13895,7 +13907,7 @@ public class IntentionTestGenerated extends AbstractIntentionTest { @RunWith(JUnit3RunnerWithInners.class) public static class ReplaceItWithExplicitFunctionLiteralParam extends AbstractIntentionTest { public void testAllFilesPresentInReplaceItWithExplicitFunctionLiteralParam() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/replaceItWithExplicitFunctionLiteralParam"), Pattern.compile("^([\\w\\-_]+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/replaceItWithExplicitFunctionLiteralParam"), Pattern.compile("^([\\w\\-_]+)\\.(kt|kts)$"), TargetBackend.ANY, true); } @TestMetadata("applicable.kt") @@ -13934,7 +13946,7 @@ public class IntentionTestGenerated extends AbstractIntentionTest { @RunWith(JUnit3RunnerWithInners.class) public static class ReplaceMathMaxWithCoerceAtLeast extends AbstractIntentionTest { public void testAllFilesPresentInReplaceMathMaxWithCoerceAtLeast() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/replaceMathMaxWithCoerceAtLeast"), Pattern.compile("^([\\w\\-_]+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/replaceMathMaxWithCoerceAtLeast"), Pattern.compile("^([\\w\\-_]+)\\.(kt|kts)$"), TargetBackend.ANY, true); } @TestMetadata("customMaxMethod.kt") @@ -13997,7 +14009,7 @@ public class IntentionTestGenerated extends AbstractIntentionTest { @RunWith(JUnit3RunnerWithInners.class) public static class ReplaceMathMinWithCoerceAtMost extends AbstractIntentionTest { public void testAllFilesPresentInReplaceMathMinWithCoerceAtMost() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/replaceMathMinWithCoerceAtMost"), Pattern.compile("^([\\w\\-_]+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/replaceMathMinWithCoerceAtMost"), Pattern.compile("^([\\w\\-_]+)\\.(kt|kts)$"), TargetBackend.ANY, true); } @TestMetadata("customMinMethod.kt") @@ -14054,7 +14066,7 @@ public class IntentionTestGenerated extends AbstractIntentionTest { @RunWith(JUnit3RunnerWithInners.class) public static class ReplaceSingleLineLetIntention extends AbstractIntentionTest { public void testAllFilesPresentInReplaceSingleLineLetIntention() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/replaceSingleLineLetIntention"), Pattern.compile("^([\\w\\-_]+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/replaceSingleLineLetIntention"), Pattern.compile("^([\\w\\-_]+)\\.(kt|kts)$"), TargetBackend.ANY, true); } @TestMetadata("assignment.kt") @@ -14291,7 +14303,7 @@ public class IntentionTestGenerated extends AbstractIntentionTest { @RunWith(JUnit3RunnerWithInners.class) public static class ReplaceSizeCheckWithIsNotEmpty extends AbstractIntentionTest { public void testAllFilesPresentInReplaceSizeCheckWithIsNotEmpty() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/replaceSizeCheckWithIsNotEmpty"), Pattern.compile("^([\\w\\-_]+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/replaceSizeCheckWithIsNotEmpty"), Pattern.compile("^([\\w\\-_]+)\\.(kt|kts)$"), TargetBackend.ANY, true); } @TestMetadata("array.kt") @@ -14402,7 +14414,7 @@ public class IntentionTestGenerated extends AbstractIntentionTest { @RunWith(JUnit3RunnerWithInners.class) public static class ReplaceSizeZeroCheckWithIsEmpty extends AbstractIntentionTest { public void testAllFilesPresentInReplaceSizeZeroCheckWithIsEmpty() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/replaceSizeZeroCheckWithIsEmpty"), Pattern.compile("^([\\w\\-_]+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/replaceSizeZeroCheckWithIsEmpty"), Pattern.compile("^([\\w\\-_]+)\\.(kt|kts)$"), TargetBackend.ANY, true); } @TestMetadata("array.kt") @@ -14483,7 +14495,7 @@ public class IntentionTestGenerated extends AbstractIntentionTest { @RunWith(JUnit3RunnerWithInners.class) public static class ReplaceSubstringWithDropLast extends AbstractIntentionTest { public void testAllFilesPresentInReplaceSubstringWithDropLast() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/replaceSubstringWithDropLast"), Pattern.compile("^([\\w\\-_]+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/replaceSubstringWithDropLast"), Pattern.compile("^([\\w\\-_]+)\\.(kt|kts)$"), TargetBackend.ANY, true); } @TestMetadata("immutableProperty.kt") @@ -14522,7 +14534,7 @@ public class IntentionTestGenerated extends AbstractIntentionTest { @RunWith(JUnit3RunnerWithInners.class) public static class ReplaceSubstringWithSubstringAfter extends AbstractIntentionTest { public void testAllFilesPresentInReplaceSubstringWithSubstringAfter() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/replaceSubstringWithSubstringAfter"), Pattern.compile("^([\\w\\-_]+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/replaceSubstringWithSubstringAfter"), Pattern.compile("^([\\w\\-_]+)\\.(kt|kts)$"), TargetBackend.ANY, true); } @TestMetadata("immutableProperty.kt") @@ -14555,7 +14567,7 @@ public class IntentionTestGenerated extends AbstractIntentionTest { @RunWith(JUnit3RunnerWithInners.class) public static class ReplaceSubstringWithSubstringBefore extends AbstractIntentionTest { public void testAllFilesPresentInReplaceSubstringWithSubstringBefore() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/replaceSubstringWithSubstringBefore"), Pattern.compile("^([\\w\\-_]+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/replaceSubstringWithSubstringBefore"), Pattern.compile("^([\\w\\-_]+)\\.(kt|kts)$"), TargetBackend.ANY, true); } @TestMetadata("immutableProperty.kt") @@ -14594,7 +14606,7 @@ public class IntentionTestGenerated extends AbstractIntentionTest { @RunWith(JUnit3RunnerWithInners.class) public static class ReplaceSubstringWithTake extends AbstractIntentionTest { public void testAllFilesPresentInReplaceSubstringWithTake() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/replaceSubstringWithTake"), Pattern.compile("^([\\w\\-_]+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/replaceSubstringWithTake"), Pattern.compile("^([\\w\\-_]+)\\.(kt|kts)$"), TargetBackend.ANY, true); } @TestMetadata("constantAsFirstArgument.kt") @@ -14633,7 +14645,7 @@ public class IntentionTestGenerated extends AbstractIntentionTest { @RunWith(JUnit3RunnerWithInners.class) public static class ReplaceUnderscoreWithParameterName extends AbstractIntentionTest { public void testAllFilesPresentInReplaceUnderscoreWithParameterName() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/replaceUnderscoreWithParameterName"), Pattern.compile("^([\\w\\-_]+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/replaceUnderscoreWithParameterName"), Pattern.compile("^([\\w\\-_]+)\\.(kt|kts)$"), TargetBackend.ANY, true); } @TestMetadata("anonymous.kt") @@ -14696,7 +14708,7 @@ public class IntentionTestGenerated extends AbstractIntentionTest { @RunWith(JUnit3RunnerWithInners.class) public static class ReplaceUntilWithRangeTo extends AbstractIntentionTest { public void testAllFilesPresentInReplaceUntilWithRangeTo() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/replaceUntilWithRangeTo"), Pattern.compile("^([\\w\\-_]+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/replaceUntilWithRangeTo"), Pattern.compile("^([\\w\\-_]+)\\.(kt|kts)$"), TargetBackend.ANY, true); } @TestMetadata("simple.kt") @@ -14711,7 +14723,7 @@ public class IntentionTestGenerated extends AbstractIntentionTest { @RunWith(JUnit3RunnerWithInners.class) public static class ReplaceWithOperatorAssignment extends AbstractIntentionTest { public void testAllFilesPresentInReplaceWithOperatorAssignment() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/replaceWithOperatorAssignment"), Pattern.compile("^([\\w\\-_]+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/replaceWithOperatorAssignment"), Pattern.compile("^([\\w\\-_]+)\\.(kt|kts)$"), TargetBackend.ANY, true); } @TestMetadata("flexibleTypeBug.kt") @@ -14792,7 +14804,7 @@ public class IntentionTestGenerated extends AbstractIntentionTest { @RunWith(JUnit3RunnerWithInners.class) public static class ReplaceWithOrdinaryAssignment extends AbstractIntentionTest { public void testAllFilesPresentInReplaceWithOrdinaryAssignment() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/replaceWithOrdinaryAssignment"), Pattern.compile("^([\\w\\-_]+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/replaceWithOrdinaryAssignment"), Pattern.compile("^([\\w\\-_]+)\\.(kt|kts)$"), TargetBackend.ANY, true); } @TestMetadata("complexRightExpression.kt") @@ -14825,7 +14837,7 @@ public class IntentionTestGenerated extends AbstractIntentionTest { @RunWith(JUnit3RunnerWithInners.class) public static class SimplifyAssertNotNull extends AbstractIntentionTest { public void testAllFilesPresentInSimplifyAssertNotNull() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/simplifyAssertNotNull"), Pattern.compile("^([\\w\\-_]+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/simplifyAssertNotNull"), Pattern.compile("^([\\w\\-_]+)\\.(kt|kts)$"), TargetBackend.ANY, true); } @TestMetadata("comments.kt") @@ -14900,7 +14912,7 @@ public class IntentionTestGenerated extends AbstractIntentionTest { @RunWith(JUnit3RunnerWithInners.class) public static class SimplifyBooleanWithConstants extends AbstractIntentionTest { public void testAllFilesPresentInSimplifyBooleanWithConstants() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/simplifyBooleanWithConstants"), Pattern.compile("^([\\w\\-_]+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/simplifyBooleanWithConstants"), Pattern.compile("^([\\w\\-_]+)\\.(kt|kts)$"), TargetBackend.ANY, true); } @TestMetadata("assert.kt") @@ -15101,7 +15113,7 @@ public class IntentionTestGenerated extends AbstractIntentionTest { @RunWith(JUnit3RunnerWithInners.class) public static class SimplifyNegatedBinaryExpression extends AbstractIntentionTest { public void testAllFilesPresentInSimplifyNegatedBinaryExpression() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/simplifyNegatedBinaryExpression"), Pattern.compile("^([\\w\\-_]+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/simplifyNegatedBinaryExpression"), Pattern.compile("^([\\w\\-_]+)\\.(kt|kts)$"), TargetBackend.ANY, true); } @TestMetadata("equals.kt") @@ -15182,7 +15194,7 @@ public class IntentionTestGenerated extends AbstractIntentionTest { @RunWith(JUnit3RunnerWithInners.class) public static class SpecifyExplicitLambdaSignature extends AbstractIntentionTest { public void testAllFilesPresentInSpecifyExplicitLambdaSignature() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/specifyExplicitLambdaSignature"), Pattern.compile("^([\\w\\-_]+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/specifyExplicitLambdaSignature"), Pattern.compile("^([\\w\\-_]+)\\.(kt|kts)$"), TargetBackend.ANY, true); } @TestMetadata("anonymous.kt") @@ -15293,7 +15305,7 @@ public class IntentionTestGenerated extends AbstractIntentionTest { @RunWith(JUnit3RunnerWithInners.class) public static class SpecifyTypeExplicitly extends AbstractIntentionTest { public void testAllFilesPresentInSpecifyTypeExplicitly() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/specifyTypeExplicitly"), Pattern.compile("^([\\w\\-_]+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/specifyTypeExplicitly"), Pattern.compile("^([\\w\\-_]+)\\.(kt|kts)$"), TargetBackend.ANY, true); } @TestMetadata("anonymousObject.kt") @@ -15416,7 +15428,7 @@ public class IntentionTestGenerated extends AbstractIntentionTest { @RunWith(JUnit3RunnerWithInners.class) public static class SplitIf extends AbstractIntentionTest { public void testAllFilesPresentInSplitIf() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/splitIf"), Pattern.compile("^([\\w\\-_]+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/splitIf"), Pattern.compile("^([\\w\\-_]+)\\.(kt|kts)$"), TargetBackend.ANY, true); } @TestMetadata("and.kt") @@ -15574,7 +15586,7 @@ public class IntentionTestGenerated extends AbstractIntentionTest { @RunWith(JUnit3RunnerWithInners.class) public static class KeepComments extends AbstractIntentionTest { public void testAllFilesPresentInKeepComments() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/splitIf/keepComments"), Pattern.compile("^([\\w\\-_]+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/splitIf/keepComments"), Pattern.compile("^([\\w\\-_]+)\\.(kt|kts)$"), TargetBackend.ANY, true); } @TestMetadata("ifOrReturn.kt") @@ -15608,7 +15620,7 @@ public class IntentionTestGenerated extends AbstractIntentionTest { @RunWith(JUnit3RunnerWithInners.class) public static class SwapBinaryExpression extends AbstractIntentionTest { public void testAllFilesPresentInSwapBinaryExpression() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/swapBinaryExpression"), Pattern.compile("^([\\w\\-_]+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/swapBinaryExpression"), Pattern.compile("^([\\w\\-_]+)\\.(kt|kts)$"), TargetBackend.ANY, true); } @TestMetadata("assignment.kt") @@ -15875,7 +15887,7 @@ public class IntentionTestGenerated extends AbstractIntentionTest { @RunWith(JUnit3RunnerWithInners.class) public static class SwapStringEqualsIgnoreCase extends AbstractIntentionTest { public void testAllFilesPresentInSwapStringEqualsIgnoreCase() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/swapStringEqualsIgnoreCase"), Pattern.compile("^([\\w\\-_]+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/swapStringEqualsIgnoreCase"), Pattern.compile("^([\\w\\-_]+)\\.(kt|kts)$"), TargetBackend.ANY, true); } @TestMetadata("equals.kt") @@ -15896,7 +15908,7 @@ public class IntentionTestGenerated extends AbstractIntentionTest { @RunWith(JUnit3RunnerWithInners.class) public static class ToInfixCall extends AbstractIntentionTest { public void testAllFilesPresentInToInfixCall() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/toInfixCall"), Pattern.compile("^([\\w\\-_]+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/toInfixCall"), Pattern.compile("^([\\w\\-_]+)\\.(kt|kts)$"), TargetBackend.ANY, true); } @TestMetadata("binaryExpressionArgument.kt") @@ -16025,7 +16037,7 @@ public class IntentionTestGenerated extends AbstractIntentionTest { @RunWith(JUnit3RunnerWithInners.class) public static class ToOrdinaryStringLiteral extends AbstractIntentionTest { public void testAllFilesPresentInToOrdinaryStringLiteral() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/toOrdinaryStringLiteral"), Pattern.compile("^([\\w\\-_]+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/toOrdinaryStringLiteral"), Pattern.compile("^([\\w\\-_]+)\\.(kt|kts)$"), TargetBackend.ANY, true); } @TestMetadata("lineBreakInExpression.kt") @@ -16058,7 +16070,7 @@ public class IntentionTestGenerated extends AbstractIntentionTest { } public void testAllFilesPresentInToRawStringLiteral() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/toRawStringLiteral"), Pattern.compile("^([\\w\\-_]+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/toRawStringLiteral"), Pattern.compile("^([\\w\\-_]+)\\.(kt|kts)$"), TargetBackend.ANY, true); } @TestMetadata("alreadyRaw.kt") @@ -16139,7 +16151,7 @@ public class IntentionTestGenerated extends AbstractIntentionTest { } public void testAllFilesPresentInUsePropertyAccessSyntax() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/usePropertyAccessSyntax"), Pattern.compile("^([\\w\\-_]+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/usePropertyAccessSyntax"), Pattern.compile("^([\\w\\-_]+)\\.(kt|kts)$"), TargetBackend.ANY, true); } @TestMetadata("conflict1.kt") @@ -16280,7 +16292,7 @@ public class IntentionTestGenerated extends AbstractIntentionTest { @RunWith(JUnit3RunnerWithInners.class) public static class UseWithIndex extends AbstractIntentionTest { public void testAllFilesPresentInUseWithIndex() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/useWithIndex"), Pattern.compile("^([\\w\\-_]+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/useWithIndex"), Pattern.compile("^([\\w\\-_]+)\\.(kt|kts)$"), TargetBackend.ANY, true); } @TestMetadata("alreadyWithIndex.kt") @@ -16331,7 +16343,7 @@ public class IntentionTestGenerated extends AbstractIntentionTest { @RunWith(JUnit3RunnerWithInners.class) public static class ValToObject extends AbstractIntentionTest { public void testAllFilesPresentInValToObject() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/valToObject"), Pattern.compile("^([\\w\\-_]+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/valToObject"), Pattern.compile("^([\\w\\-_]+)\\.(kt|kts)$"), TargetBackend.ANY, true); } @TestMetadata("annotations.kt")