From 2c02ee3d29a15e36f9bf69c571782d6800b68a28 Mon Sep 17 00:00:00 2001 From: Ilya Chernikov Date: Mon, 4 Feb 2019 14:56:23 +0100 Subject: [PATCH] Rename test files to scripts to trigger proper scripting initialization fix generation config accordingly --- ...nglingInScript.kt => DanglingInScript.kts} | 0 ...Conflict.kt => ScriptAndClassConflict.kts} | 0 .../{varInScript.kt => varInScript.kts} | 0 ...t => noLocalDelegatedPropertyInScript.kts} | 0 .../experimental/{scripts.kt => scripts.kts} | 0 .../checkers/DiagnosticsTestGenerated.java | 627 +++++++++--------- .../DiagnosticsTestWithStdLibGenerated.java | 5 - ...ticsTestWithStdLibUsingJavacGenerated.java | 5 - .../DiagnosticsUsingJavacTestGenerated.java | 20 - .../generators/tests/GenerateCompilerTests.kt | 3 +- 10 files changed, 308 insertions(+), 352 deletions(-) rename compiler/testData/diagnostics/tests/annotations/{DanglingInScript.kt => DanglingInScript.kts} (100%) rename compiler/testData/diagnostics/tests/redeclarations/{ScriptAndClassConflict.kt => ScriptAndClassConflict.kts} (100%) rename compiler/testData/diagnostics/tests/script/{varInScript.kt => varInScript.kts} (100%) rename compiler/testData/diagnostics/tests/sourceCompatibility/{noLocalDelegatedPropertyInScript.kt => noLocalDelegatedPropertyInScript.kts} (100%) rename compiler/testData/diagnostics/testsWithStdLib/experimental/{scripts.kt => scripts.kts} (100%) diff --git a/compiler/testData/diagnostics/tests/annotations/DanglingInScript.kt b/compiler/testData/diagnostics/tests/annotations/DanglingInScript.kts similarity index 100% rename from compiler/testData/diagnostics/tests/annotations/DanglingInScript.kt rename to compiler/testData/diagnostics/tests/annotations/DanglingInScript.kts diff --git a/compiler/testData/diagnostics/tests/redeclarations/ScriptAndClassConflict.kt b/compiler/testData/diagnostics/tests/redeclarations/ScriptAndClassConflict.kts similarity index 100% rename from compiler/testData/diagnostics/tests/redeclarations/ScriptAndClassConflict.kt rename to compiler/testData/diagnostics/tests/redeclarations/ScriptAndClassConflict.kts diff --git a/compiler/testData/diagnostics/tests/script/varInScript.kt b/compiler/testData/diagnostics/tests/script/varInScript.kts similarity index 100% rename from compiler/testData/diagnostics/tests/script/varInScript.kt rename to compiler/testData/diagnostics/tests/script/varInScript.kts diff --git a/compiler/testData/diagnostics/tests/sourceCompatibility/noLocalDelegatedPropertyInScript.kt b/compiler/testData/diagnostics/tests/sourceCompatibility/noLocalDelegatedPropertyInScript.kts similarity index 100% rename from compiler/testData/diagnostics/tests/sourceCompatibility/noLocalDelegatedPropertyInScript.kt rename to compiler/testData/diagnostics/tests/sourceCompatibility/noLocalDelegatedPropertyInScript.kts diff --git a/compiler/testData/diagnostics/testsWithStdLib/experimental/scripts.kt b/compiler/testData/diagnostics/testsWithStdLib/experimental/scripts.kts similarity index 100% rename from compiler/testData/diagnostics/testsWithStdLib/experimental/scripts.kt rename to compiler/testData/diagnostics/testsWithStdLib/experimental/scripts.kts diff --git a/compiler/tests/org/jetbrains/kotlin/checkers/DiagnosticsTestGenerated.java b/compiler/tests/org/jetbrains/kotlin/checkers/DiagnosticsTestGenerated.java index bbc55994f25..3318bb74c98 100644 --- a/compiler/tests/org/jetbrains/kotlin/checkers/DiagnosticsTestGenerated.java +++ b/compiler/tests/org/jetbrains/kotlin/checkers/DiagnosticsTestGenerated.java @@ -53,7 +53,7 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest { } public void testAllFilesPresentInTests() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests"), Pattern.compile("^(.*)\\.kts?$"), TargetBackend.ANY, true); } @TestMetadata("AnonymousInitializerVarAndConstructor.kt") @@ -725,7 +725,7 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest { } public void testAllFilesPresentInAnnotations() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/annotations"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/annotations"), Pattern.compile("^(.*)\\.kts?$"), TargetBackend.ANY, true); } @TestMetadata("AmbigiousAnnotationConstructor.kt") @@ -858,9 +858,9 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest { runTest("compiler/testData/diagnostics/tests/annotations/ConstructorCall.kt"); } - @TestMetadata("DanglingInScript.kt") + @TestMetadata("DanglingInScript.kts") public void testDanglingInScript() throws Exception { - runTest("compiler/testData/diagnostics/tests/annotations/DanglingInScript.kt"); + runTest("compiler/testData/diagnostics/tests/annotations/DanglingInScript.kts"); } @TestMetadata("DanglingMixed.kt") @@ -1112,7 +1112,7 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest { } public void testAllFilesPresentInAnnotationParameterMustBeConstant() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/annotations/annotationParameterMustBeConstant"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/annotations/annotationParameterMustBeConstant"), Pattern.compile("^(.*)\\.kts?$"), TargetBackend.ANY, true); } @TestMetadata("annotationConstructorDefaultParameter.kt") @@ -1170,7 +1170,7 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest { } public void testAllFilesPresentInOptions() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/annotations/options"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/annotations/options"), Pattern.compile("^(.*)\\.kts?$"), TargetBackend.ANY, true); } @TestMetadata("annotationAsArg.kt") @@ -1277,7 +1277,7 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest { } public void testAllFilesPresentInTargets() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/annotations/options/targets"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/annotations/options/targets"), Pattern.compile("^(.*)\\.kts?$"), TargetBackend.ANY, true); } @TestMetadata("annotation.kt") @@ -1396,7 +1396,7 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest { } public void testAllFilesPresentInWithUseSiteTarget() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/annotations/withUseSiteTarget"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/annotations/withUseSiteTarget"), Pattern.compile("^(.*)\\.kts?$"), TargetBackend.ANY, true); } @TestMetadata("DelegateAnnotations.kt") @@ -1510,7 +1510,7 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest { } public void testAllFilesPresentInBackingField() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/backingField"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/backingField"), Pattern.compile("^(.*)\\.kts?$"), TargetBackend.ANY, true); } @TestMetadata("CustomGetSet.kt") @@ -1623,7 +1623,7 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest { } public void testAllFilesPresentInCallableReference() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/callableReference"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/callableReference"), Pattern.compile("^(.*)\\.kts?$"), TargetBackend.ANY, true); } @TestMetadata("bareType.kt") @@ -1710,7 +1710,7 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest { } public void testAllFilesPresentInBound() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/callableReference/bound"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/callableReference/bound"), Pattern.compile("^(.*)\\.kts?$"), TargetBackend.ANY, true); } @TestMetadata("classVsStarImportedCompanion.kt") @@ -1823,7 +1823,7 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest { } public void testAllFilesPresentInFunction() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/callableReference/function"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/callableReference/function"), Pattern.compile("^(.*)\\.kts?$"), TargetBackend.ANY, true); } @TestMetadata("ambiguityTopLevelVsTopLevel.kt") @@ -2086,7 +2086,7 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest { } public void testAllFilesPresentInGeneric() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/callableReference/generic"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/callableReference/generic"), Pattern.compile("^(.*)\\.kts?$"), TargetBackend.ANY, true); } @TestMetadata("argumentAndReturnExpectedType.kt") @@ -2189,7 +2189,7 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest { } public void testAllFilesPresentInProperty() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/callableReference/property"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/callableReference/property"), Pattern.compile("^(.*)\\.kts?$"), TargetBackend.ANY, true); } @TestMetadata("classFromClass.kt") @@ -2277,7 +2277,7 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest { } public void testAllFilesPresentInResolve() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/callableReference/resolve"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/callableReference/resolve"), Pattern.compile("^(.*)\\.kts?$"), TargetBackend.ANY, true); } @TestMetadata("ambiguousWithVararg.kt") @@ -2416,7 +2416,7 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest { } public void testAllFilesPresentInCast() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/cast"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/cast"), Pattern.compile("^(.*)\\.kts?$"), TargetBackend.ANY, true); } @TestMetadata("AsArray.kt") @@ -2733,7 +2733,7 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest { } public void testAllFilesPresentInBare() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/cast/bare"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/cast/bare"), Pattern.compile("^(.*)\\.kts?$"), TargetBackend.ANY, true); } @TestMetadata("AsNestedBare.kt") @@ -2841,7 +2841,7 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest { } public void testAllFilesPresentInNeverSucceeds() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/cast/neverSucceeds"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/cast/neverSucceeds"), Pattern.compile("^(.*)\\.kts?$"), TargetBackend.ANY, true); } @TestMetadata("CastToNotNullSuper.kt") @@ -2880,7 +2880,7 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest { } public void testAllFilesPresentInCheckArguments() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/checkArguments"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/checkArguments"), Pattern.compile("^(.*)\\.kts?$"), TargetBackend.ANY, true); } @TestMetadata("arrayAccessSet.kt") @@ -2933,7 +2933,7 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest { } public void testAllFilesPresentInClassLiteral() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/classLiteral"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/classLiteral"), Pattern.compile("^(.*)\\.kts?$"), TargetBackend.ANY, true); } @TestMetadata("arrays.kt") @@ -3016,7 +3016,7 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest { } public void testAllFilesPresentInClassObjects() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/classObjects"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/classObjects"), Pattern.compile("^(.*)\\.kts?$"), TargetBackend.ANY, true); } @TestMetadata("builtInClassObjects.kt") @@ -3124,7 +3124,7 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest { } public void testAllFilesPresentInCollectionLiterals() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/collectionLiterals"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/collectionLiterals"), Pattern.compile("^(.*)\\.kts?$"), TargetBackend.ANY, true); } @TestMetadata("argumentsOfAnnotation.kt") @@ -3197,7 +3197,7 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest { } public void testAllFilesPresentInConstructorConsistency() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/constructorConsistency"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/constructorConsistency"), Pattern.compile("^(.*)\\.kts?$"), TargetBackend.ANY, true); } @TestMetadata("assignment.kt") @@ -3330,7 +3330,7 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest { } public void testAllFilesPresentInControlFlowAnalysis() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/controlFlowAnalysis"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/controlFlowAnalysis"), Pattern.compile("^(.*)\\.kts?$"), TargetBackend.ANY, true); } @TestMetadata("assignedInFinally.kt") @@ -3752,7 +3752,7 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest { } public void testAllFilesPresentInDeadCode() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/controlFlowAnalysis/deadCode"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/controlFlowAnalysis/deadCode"), Pattern.compile("^(.*)\\.kts?$"), TargetBackend.ANY, true); } @TestMetadata("commasAndWhitespaces.kt") @@ -3890,7 +3890,7 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest { } public void testAllFilesPresentInDefiniteReturn() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/controlFlowAnalysis/definiteReturn"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/controlFlowAnalysis/definiteReturn"), Pattern.compile("^(.*)\\.kts?$"), TargetBackend.ANY, true); } @TestMetadata("kt3444_ReturnFromLocalFunctions.kt") @@ -3923,7 +3923,7 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest { } public void testAllFilesPresentInUnnecessaryLateinit() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/controlFlowAnalysis/unnecessaryLateinit"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/controlFlowAnalysis/unnecessaryLateinit"), Pattern.compile("^(.*)\\.kts?$"), TargetBackend.ANY, true); } @TestMetadata("lateinitRecursiveInLambda.kt") @@ -3997,7 +3997,7 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest { } public void testAllFilesPresentInControlStructures() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/controlStructures"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/controlStructures"), Pattern.compile("^(.*)\\.kts?$"), TargetBackend.ANY, true); } @TestMetadata("catchGenerics.kt") @@ -4225,7 +4225,7 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest { } public void testAllFilesPresentInCoroutines() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/coroutines"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/coroutines"), Pattern.compile("^(.*)\\.kts?$"), TargetBackend.ANY, true); } @TestMetadata("compiler/testData/diagnostics/tests/coroutines/callableReference") @@ -4237,7 +4237,7 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest { } public void testAllFilesPresentInCallableReference() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/coroutines/callableReference"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/coroutines/callableReference"), Pattern.compile("^(.*)\\.kts?$"), TargetBackend.ANY, true); } @TestMetadata("invokeOutideSuspend.kt") @@ -4261,7 +4261,7 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest { } public void testAllFilesPresentInCyclicHierarchy() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/cyclicHierarchy"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/cyclicHierarchy"), Pattern.compile("^(.*)\\.kts?$"), TargetBackend.ANY, true); } @TestMetadata("classIndirectlyInheritsNested.kt") @@ -4348,7 +4348,7 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest { } public void testAllFilesPresentInWithCompanion() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/cyclicHierarchy/withCompanion"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/cyclicHierarchy/withCompanion"), Pattern.compile("^(.*)\\.kts?$"), TargetBackend.ANY, true); } @TestMetadata("everythingInOneScope_after.kt") @@ -4422,7 +4422,7 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest { } public void testAllFilesPresentInDataClasses() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/dataClasses"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/dataClasses"), Pattern.compile("^(.*)\\.kts?$"), TargetBackend.ANY, true); } @TestMetadata("componentNamedComponent1.kt") @@ -4595,7 +4595,7 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest { } public void testAllFilesPresentInDataFlow() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/dataFlow"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/dataFlow"), Pattern.compile("^(.*)\\.kts?$"), TargetBackend.ANY, true); } @TestMetadata("CalleeExpression.kt") @@ -4627,7 +4627,7 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest { } public void testAllFilesPresentInAssignment() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/dataFlow/assignment"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/dataFlow/assignment"), Pattern.compile("^(.*)\\.kts?$"), TargetBackend.ANY, true); } @TestMetadata("assignToNewVal.kt") @@ -4665,7 +4665,7 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest { } public void testAllFilesPresentInLocal() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/dataFlow/local"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/dataFlow/local"), Pattern.compile("^(.*)\\.kts?$"), TargetBackend.ANY, true); } @TestMetadata("kt2835.kt") @@ -4739,7 +4739,7 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest { } public void testAllFilesPresentInDataFlowInfoTraversal() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/dataFlowInfoTraversal"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/dataFlowInfoTraversal"), Pattern.compile("^(.*)\\.kts?$"), TargetBackend.ANY, true); } @TestMetadata("AndOr.kt") @@ -5011,7 +5011,7 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest { } public void testAllFilesPresentInSmartcasts() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/dataFlowInfoTraversal/smartcasts"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/dataFlowInfoTraversal/smartcasts"), Pattern.compile("^(.*)\\.kts?$"), TargetBackend.ANY, true); } @TestMetadata("SmartcastAmbiguitites.kt") @@ -5035,7 +5035,7 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest { } public void testAllFilesPresentInDeclarationChecks() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/declarationChecks"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/declarationChecks"), Pattern.compile("^(.*)\\.kts?$"), TargetBackend.ANY, true); } @TestMetadata("ambiguousObjectExpressionType.kt") @@ -5217,7 +5217,7 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest { } public void testAllFilesPresentInDestructuringDeclarations() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/declarationChecks/destructuringDeclarations"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/declarationChecks/destructuringDeclarations"), Pattern.compile("^(.*)\\.kts?$"), TargetBackend.ANY, true); } @TestMetadata("destructuringDeclarationAssignedUnresolved.kt") @@ -5300,7 +5300,7 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest { } public void testAllFilesPresentInFiniteBoundRestriction() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/declarationChecks/finiteBoundRestriction"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/declarationChecks/finiteBoundRestriction"), Pattern.compile("^(.*)\\.kts?$"), TargetBackend.ANY, true); } @TestMetadata("CasesWithOneTypeParameter.kt") @@ -5328,7 +5328,7 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest { } public void testAllFilesPresentInNonExpansiveInheritanceRestriction() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/declarationChecks/nonExpansiveInheritanceRestriction"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/declarationChecks/nonExpansiveInheritanceRestriction"), Pattern.compile("^(.*)\\.kts?$"), TargetBackend.ANY, true); } @TestMetadata("JavaWithKotlin.kt") @@ -5357,7 +5357,7 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest { } public void testAllFilesPresentInDefaultArguments() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/defaultArguments"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/defaultArguments"), Pattern.compile("^(.*)\\.kts?$"), TargetBackend.ANY, true); } @TestMetadata("kt5232.kt") @@ -5395,7 +5395,7 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest { } public void testAllFilesPresentInDelegatedProperty() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/delegatedProperty"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/delegatedProperty"), Pattern.compile("^(.*)\\.kts?$"), TargetBackend.ANY, true); } @TestMetadata("backingField.kt") @@ -5582,7 +5582,7 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest { } public void testAllFilesPresentInInference() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/delegatedProperty/inference"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/delegatedProperty/inference"), Pattern.compile("^(.*)\\.kts?$"), TargetBackend.ANY, true); } @TestMetadata("delegateExpressionAsLambda.kt") @@ -5670,7 +5670,7 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest { } public void testAllFilesPresentInProvideDelegate() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/delegatedProperty/provideDelegate"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/delegatedProperty/provideDelegate"), Pattern.compile("^(.*)\\.kts?$"), TargetBackend.ANY, true); } @TestMetadata("commonCaseForInference.kt") @@ -5754,7 +5754,7 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest { } public void testAllFilesPresentInDelegation() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/delegation"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/delegation"), Pattern.compile("^(.*)\\.kts?$"), TargetBackend.ANY, true); } @TestMetadata("DelegationAndOverriding.kt") @@ -5811,7 +5811,7 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest { } public void testAllFilesPresentInClashes() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/delegation/clashes"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/delegation/clashes"), Pattern.compile("^(.*)\\.kts?$"), TargetBackend.ANY, true); } @TestMetadata("finalMemberOverridden.kt") @@ -5844,7 +5844,7 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest { } public void testAllFilesPresentInCovariantOverrides() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/delegation/covariantOverrides"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/delegation/covariantOverrides"), Pattern.compile("^(.*)\\.kts?$"), TargetBackend.ANY, true); } @TestMetadata("fromClass.kt") @@ -5882,7 +5882,7 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest { } public void testAllFilesPresentInMemberHidesSupertypeOverride() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/delegation/memberHidesSupertypeOverride"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/delegation/memberHidesSupertypeOverride"), Pattern.compile("^(.*)\\.kts?$"), TargetBackend.ANY, true); } @TestMetadata("delegationToSubType.kt") @@ -5966,7 +5966,7 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest { } public void testAllFilesPresentInDeparenthesize() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/deparenthesize"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/deparenthesize"), Pattern.compile("^(.*)\\.kts?$"), TargetBackend.ANY, true); } @TestMetadata("annotatedSafeCall.kt") @@ -6009,7 +6009,7 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest { } public void testAllFilesPresentInDeprecated() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/deprecated"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/deprecated"), Pattern.compile("^(.*)\\.kts?$"), TargetBackend.ANY, true); } @TestMetadata("annotationUsage.kt") @@ -6182,7 +6182,7 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest { } public void testAllFilesPresentInDuplicateJvmSignature() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/duplicateJvmSignature"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/duplicateJvmSignature"), Pattern.compile("^(.*)\\.kts?$"), TargetBackend.ANY, true); } @TestMetadata("caseInProperties.kt") @@ -6214,7 +6214,7 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest { } public void testAllFilesPresentInAccidentalOverrides() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/duplicateJvmSignature/accidentalOverrides"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/duplicateJvmSignature/accidentalOverrides"), Pattern.compile("^(.*)\\.kts?$"), TargetBackend.ANY, true); } @TestMetadata("classFunctionOverriddenByProperty.kt") @@ -6297,7 +6297,7 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest { } public void testAllFilesPresentInBridges() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/duplicateJvmSignature/bridges"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/duplicateJvmSignature/bridges"), Pattern.compile("^(.*)\\.kts?$"), TargetBackend.ANY, true); } @TestMetadata("class.kt") @@ -6325,7 +6325,7 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest { } public void testAllFilesPresentInErasure() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/duplicateJvmSignature/erasure"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/duplicateJvmSignature/erasure"), Pattern.compile("^(.*)\\.kts?$"), TargetBackend.ANY, true); } @TestMetadata("clashFromInterfaceAndSuperClass.kt") @@ -6423,7 +6423,7 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest { } public void testAllFilesPresentInFinalMembersFromBuiltIns() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/duplicateJvmSignature/finalMembersFromBuiltIns"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/duplicateJvmSignature/finalMembersFromBuiltIns"), Pattern.compile("^(.*)\\.kts?$"), TargetBackend.ANY, true); } @TestMetadata("enumMembers.kt") @@ -6446,7 +6446,7 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest { } public void testAllFilesPresentInFunctionAndProperty() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/duplicateJvmSignature/functionAndProperty"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/duplicateJvmSignature/functionAndProperty"), Pattern.compile("^(.*)\\.kts?$"), TargetBackend.ANY, true); } @TestMetadata("class.kt") @@ -6554,7 +6554,7 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest { } public void testAllFilesPresentInSpecialNames() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/duplicateJvmSignature/specialNames"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/duplicateJvmSignature/specialNames"), Pattern.compile("^(.*)\\.kts?$"), TargetBackend.ANY, true); } @TestMetadata("classObject.kt") @@ -6617,7 +6617,7 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest { } public void testAllFilesPresentInStatics() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/duplicateJvmSignature/statics"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/duplicateJvmSignature/statics"), Pattern.compile("^(.*)\\.kts?$"), TargetBackend.ANY, true); } @TestMetadata("jkjk.kt") @@ -6660,7 +6660,7 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest { } public void testAllFilesPresentInSynthesized() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/duplicateJvmSignature/synthesized"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/duplicateJvmSignature/synthesized"), Pattern.compile("^(.*)\\.kts?$"), TargetBackend.ANY, true); } @TestMetadata("enumValuesValueOf.kt") @@ -6678,7 +6678,7 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest { } public void testAllFilesPresentInTraitImpl() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/duplicateJvmSignature/traitImpl"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/duplicateJvmSignature/traitImpl"), Pattern.compile("^(.*)\\.kts?$"), TargetBackend.ANY, true); } @TestMetadata("oneTrait.kt") @@ -6712,7 +6712,7 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest { } public void testAllFilesPresentInDynamicTypes() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/dynamicTypes"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/dynamicTypes"), Pattern.compile("^(.*)\\.kts?$"), TargetBackend.ANY, true); } @TestMetadata("delegationBy.kt") @@ -6755,7 +6755,7 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest { } public void testAllFilesPresentInEnum() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/enum"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/enum"), Pattern.compile("^(.*)\\.kts?$"), TargetBackend.ANY, true); } @TestMetadata("classObjectInEnum.kt") @@ -7037,7 +7037,7 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest { } public void testAllFilesPresentInInner() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/enum/inner"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/enum/inner"), Pattern.compile("^(.*)\\.kts?$"), TargetBackend.ANY, true); } @TestMetadata("existingClassObject.kt") @@ -7111,7 +7111,7 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest { } public void testAllFilesPresentInEvaluate() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/evaluate"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/evaluate"), Pattern.compile("^(.*)\\.kts?$"), TargetBackend.ANY, true); } @TestMetadata("binaryMinusDepOnExpType.kt") @@ -7238,7 +7238,7 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest { } public void testAllFilesPresentInInlineClasses() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/evaluate/inlineClasses"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/evaluate/inlineClasses"), Pattern.compile("^(.*)\\.kts?$"), TargetBackend.ANY, true); } @TestMetadata("constructorOfUnsignedType.kt") @@ -7257,7 +7257,7 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest { } public void testAllFilesPresentInExposed() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/exposed"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/exposed"), Pattern.compile("^(.*)\\.kts?$"), TargetBackend.ANY, true); } @TestMetadata("delegate.kt") @@ -7410,7 +7410,7 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest { } public void testAllFilesPresentInExtensions() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/extensions"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/extensions"), Pattern.compile("^(.*)\\.kts?$"), TargetBackend.ANY, true); } @TestMetadata("classObject.kt") @@ -7508,7 +7508,7 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest { } public void testAllFilesPresentInFunctionAsExpression() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/functionAsExpression"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/functionAsExpression"), Pattern.compile("^(.*)\\.kts?$"), TargetBackend.ANY, true); } @TestMetadata("AutoLabels.kt") @@ -7606,7 +7606,7 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest { } public void testAllFilesPresentInFunctionLiterals() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/functionLiterals"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/functionLiterals"), Pattern.compile("^(.*)\\.kts?$"), TargetBackend.ANY, true); } @TestMetadata("assignmentOperationInLambda.kt") @@ -7743,7 +7743,7 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest { } public void testAllFilesPresentInDestructuringInLambdas() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/functionLiterals/destructuringInLambdas"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/functionLiterals/destructuringInLambdas"), Pattern.compile("^(.*)\\.kts?$"), TargetBackend.ANY, true); } @TestMetadata("complexInference.kt") @@ -7811,7 +7811,7 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest { } public void testAllFilesPresentInReturn() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/functionLiterals/return"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/functionLiterals/return"), Pattern.compile("^(.*)\\.kts?$"), TargetBackend.ANY, true); } @TestMetadata("AutoLabels.kt") @@ -7960,7 +7960,7 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest { } public void testAllFilesPresentInGenerics() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/generics"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/generics"), Pattern.compile("^(.*)\\.kts?$"), TargetBackend.ANY, true); } @TestMetadata("argumentsForT.kt") @@ -8112,7 +8112,7 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest { } public void testAllFilesPresentInCapturedParameters() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/generics/capturedParameters"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/generics/capturedParameters"), Pattern.compile("^(.*)\\.kts?$"), TargetBackend.ANY, true); } @TestMetadata("innerLocalClass.kt") @@ -8150,7 +8150,7 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest { } public void testAllFilesPresentInCyclicBounds() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/generics/cyclicBounds"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/generics/cyclicBounds"), Pattern.compile("^(.*)\\.kts?$"), TargetBackend.ANY, true); } @TestMetadata("functions.kt") @@ -8173,7 +8173,7 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest { } public void testAllFilesPresentInInnerClasses() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/generics/innerClasses"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/generics/innerClasses"), Pattern.compile("^(.*)\\.kts?$"), TargetBackend.ANY, true); } @TestMetadata("bareTypes.kt") @@ -8305,7 +8305,7 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest { } public void testAllFilesPresentInImplicitArguments() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/generics/innerClasses/implicitArguments"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/generics/innerClasses/implicitArguments"), Pattern.compile("^(.*)\\.kts?$"), TargetBackend.ANY, true); } @TestMetadata("fromCompanionObject_after.kt") @@ -8364,7 +8364,7 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest { } public void testAllFilesPresentInMultipleBoundsMemberScope() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/generics/multipleBoundsMemberScope"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/generics/multipleBoundsMemberScope"), Pattern.compile("^(.*)\\.kts?$"), TargetBackend.ANY, true); } @TestMetadata("conflictingReturnType.kt") @@ -8412,7 +8412,7 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest { } public void testAllFilesPresentInNullability() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/generics/nullability"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/generics/nullability"), Pattern.compile("^(.*)\\.kts?$"), TargetBackend.ANY, true); } @TestMetadata("capturedTypeWithPlatformSupertype.kt") @@ -8525,7 +8525,7 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest { } public void testAllFilesPresentInProjectionsScope() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/generics/projectionsScope"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/generics/projectionsScope"), Pattern.compile("^(.*)\\.kts?$"), TargetBackend.ANY, true); } @TestMetadata("approximateDispatchReceiver.kt") @@ -8663,7 +8663,7 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest { } public void testAllFilesPresentInStarProjections() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/generics/starProjections"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/generics/starProjections"), Pattern.compile("^(.*)\\.kts?$"), TargetBackend.ANY, true); } @TestMetadata("checkBounds.kt") @@ -8701,7 +8701,7 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest { } public void testAllFilesPresentInTpAsReified() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/generics/tpAsReified"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/generics/tpAsReified"), Pattern.compile("^(.*)\\.kts?$"), TargetBackend.ANY, true); } @TestMetadata("CapturedAsReified.kt") @@ -8774,7 +8774,7 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest { } public void testAllFilesPresentInVarProjection() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/generics/varProjection"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/generics/varProjection"), Pattern.compile("^(.*)\\.kts?$"), TargetBackend.ANY, true); } @TestMetadata("setterNotProjectedOutAssign.kt") @@ -8808,7 +8808,7 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest { } public void testAllFilesPresentInImports() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/imports"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/imports"), Pattern.compile("^(.*)\\.kts?$"), TargetBackend.ANY, true); } @TestMetadata("AllUnderImportsAmbiguity.kt") @@ -9096,7 +9096,7 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest { } public void testAllFilesPresentInIncompleteCode() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/incompleteCode"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/incompleteCode"), Pattern.compile("^(.*)\\.kts?$"), TargetBackend.ANY, true); } @TestMetadata("arrayBracketsRange.kt") @@ -9203,7 +9203,7 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest { } public void testAllFilesPresentInDiagnosticWithSyntaxError() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/incompleteCode/diagnosticWithSyntaxError"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/incompleteCode/diagnosticWithSyntaxError"), Pattern.compile("^(.*)\\.kts?$"), TargetBackend.ANY, true); } @TestMetadata("arrayExpression.kt") @@ -9307,7 +9307,7 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest { } public void testAllFilesPresentInInference() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/inference"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/inference"), Pattern.compile("^(.*)\\.kts?$"), TargetBackend.ANY, true); } @TestMetadata("cannotCompleteResolveAmbiguity.kt") @@ -9594,7 +9594,7 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest { } public void testAllFilesPresentInCapturedTypes() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/inference/capturedTypes"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/inference/capturedTypes"), Pattern.compile("^(.*)\\.kts?$"), TargetBackend.ANY, true); } @TestMetadata("approximateBeforeFixation.kt") @@ -9717,7 +9717,7 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest { } public void testAllFilesPresentInCoercionToUnit() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/inference/coercionToUnit"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/inference/coercionToUnit"), Pattern.compile("^(.*)\\.kts?$"), TargetBackend.ANY, true); } @TestMetadata("coercionToUnitForIfAsLastExpressionInLambda.kt") @@ -9770,7 +9770,7 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest { } public void testAllFilesPresentInCommonSystem() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/inference/commonSystem"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/inference/commonSystem"), Pattern.compile("^(.*)\\.kts?$"), TargetBackend.ANY, true); } @TestMetadata("boundOnNullableVariable.kt") @@ -9823,7 +9823,7 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest { } public void testAllFilesPresentInConstraints() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/inference/constraints"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/inference/constraints"), Pattern.compile("^(.*)\\.kts?$"), TargetBackend.ANY, true); } @TestMetadata("constraintOnFunctionLiteral.kt") @@ -9901,7 +9901,7 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest { } public void testAllFilesPresentInNestedCalls() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/inference/nestedCalls"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/inference/nestedCalls"), Pattern.compile("^(.*)\\.kts?$"), TargetBackend.ANY, true); } @TestMetadata("arrayAccess.kt") @@ -9974,7 +9974,7 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest { } public void testAllFilesPresentInNothingType() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/inference/nothingType"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/inference/nothingType"), Pattern.compile("^(.*)\\.kts?$"), TargetBackend.ANY, true); } @TestMetadata("complexDependancyOnVariableWithTrivialConstraint.kt") @@ -10022,7 +10022,7 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest { } public void testAllFilesPresentInRecursiveCalls() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/inference/recursiveCalls"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/inference/recursiveCalls"), Pattern.compile("^(.*)\\.kts?$"), TargetBackend.ANY, true); } @TestMetadata("kt23531.kt") @@ -10040,7 +10040,7 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest { } public void testAllFilesPresentInRecursiveLocalFuns() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/inference/recursiveLocalFuns"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/inference/recursiveLocalFuns"), Pattern.compile("^(.*)\\.kts?$"), TargetBackend.ANY, true); } @TestMetadata("localFactorial.kt") @@ -10073,7 +10073,7 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest { } public void testAllFilesPresentInRegressions() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/inference/regressions"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/inference/regressions"), Pattern.compile("^(.*)\\.kts?$"), TargetBackend.ANY, true); } @TestMetadata("compareBy.kt") @@ -10346,7 +10346,7 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest { } public void testAllFilesPresentInReportingImprovements() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/inference/reportingImprovements"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/inference/reportingImprovements"), Pattern.compile("^(.*)\\.kts?$"), TargetBackend.ANY, true); } @TestMetadata("cannotInferParameterTypeWithInference.kt") @@ -10409,7 +10409,7 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest { } public void testAllFilesPresentInSubstitutions() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/inference/substitutions"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/inference/substitutions"), Pattern.compile("^(.*)\\.kts?$"), TargetBackend.ANY, true); } @TestMetadata("delegationAndInference.kt") @@ -10447,7 +10447,7 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest { } public void testAllFilesPresentInUpperBounds() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/inference/upperBounds"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/inference/upperBounds"), Pattern.compile("^(.*)\\.kts?$"), TargetBackend.ANY, true); } @TestMetadata("conflictingSubstitutionsFromUpperBound.kt") @@ -10501,7 +10501,7 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest { } public void testAllFilesPresentInInfos() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/infos"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/infos"), Pattern.compile("^(.*)\\.kts?$"), TargetBackend.ANY, true); } @TestMetadata("PropertiesWithBackingFields.kt") @@ -10524,7 +10524,7 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest { } public void testAllFilesPresentInInline() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/inline"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/inline"), Pattern.compile("^(.*)\\.kts?$"), TargetBackend.ANY, true); } @TestMetadata("anonymousObjects.kt") @@ -10741,7 +10741,7 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest { } public void testAllFilesPresentInBinaryExpressions() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/inline/binaryExpressions"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/inline/binaryExpressions"), Pattern.compile("^(.*)\\.kts?$"), TargetBackend.ANY, true); } @TestMetadata("andOr.kt") @@ -10794,7 +10794,7 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest { } public void testAllFilesPresentInNonLocalReturns() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/inline/nonLocalReturns"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/inline/nonLocalReturns"), Pattern.compile("^(.*)\\.kts?$"), TargetBackend.ANY, true); } @TestMetadata("anonymousObjects.kt") @@ -10897,7 +10897,7 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest { } public void testAllFilesPresentInNonPublicMember() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/inline/nonPublicMember"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/inline/nonPublicMember"), Pattern.compile("^(.*)\\.kts?$"), TargetBackend.ANY, true); } @TestMetadata("inNonPublicClass.kt") @@ -10955,7 +10955,7 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest { } public void testAllFilesPresentInProperty() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/inline/property"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/inline/property"), Pattern.compile("^(.*)\\.kts?$"), TargetBackend.ANY, true); } @TestMetadata("invoke.kt") @@ -10988,7 +10988,7 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest { } public void testAllFilesPresentInRegressions() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/inline/regressions"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/inline/regressions"), Pattern.compile("^(.*)\\.kts?$"), TargetBackend.ANY, true); } @TestMetadata("kt4341.kt") @@ -11006,7 +11006,7 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest { } public void testAllFilesPresentInUnaryExpressions() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/inline/unaryExpressions"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/inline/unaryExpressions"), Pattern.compile("^(.*)\\.kts?$"), TargetBackend.ANY, true); } @TestMetadata("mathOperation.kt") @@ -11035,7 +11035,7 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest { } public void testAllFilesPresentInInlineClasses() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/inlineClasses"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/inlineClasses"), Pattern.compile("^(.*)\\.kts?$"), TargetBackend.ANY, true); } @TestMetadata("basicInlineClassDeclaration.kt") @@ -11168,7 +11168,7 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest { } public void testAllFilesPresentInInner() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/inner"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/inner"), Pattern.compile("^(.*)\\.kts?$"), TargetBackend.ANY, true); } @TestMetadata("annotationInInnerClass.kt") @@ -11400,7 +11400,7 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest { } public void testAllFilesPresentInQualifiedExpression() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/inner/qualifiedExpression"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/inner/qualifiedExpression"), Pattern.compile("^(.*)\\.kts?$"), TargetBackend.ANY, true); } @TestMetadata("classObjectOfNestedClass.kt") @@ -11469,7 +11469,7 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest { } public void testAllFilesPresentInJ_k() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/j+k"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/j+k"), Pattern.compile("^(.*)\\.kts?$"), TargetBackend.ANY, true); } @TestMetadata("ambiguousSamAdapters.kt") @@ -11861,7 +11861,7 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest { } public void testAllFilesPresentInBrokenCode() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/j+k/brokenCode"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/j+k/brokenCode"), Pattern.compile("^(.*)\\.kts?$"), TargetBackend.ANY, true); } @TestMetadata("classDuplicates.kt") @@ -11884,7 +11884,7 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest { } public void testAllFilesPresentInCollectionOverrides() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/j+k/collectionOverrides"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/j+k/collectionOverrides"), Pattern.compile("^(.*)\\.kts?$"), TargetBackend.ANY, true); } @TestMetadata("charBuffer.kt") @@ -11987,7 +11987,7 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest { } public void testAllFilesPresentInGenericConstructor() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/j+k/genericConstructor"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/j+k/genericConstructor"), Pattern.compile("^(.*)\\.kts?$"), TargetBackend.ANY, true); } @TestMetadata("classTypeParameterInferredFromArgument.kt") @@ -12045,7 +12045,7 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest { } public void testAllFilesPresentInPrimitiveOverrides() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/j+k/primitiveOverrides"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/j+k/primitiveOverrides"), Pattern.compile("^(.*)\\.kts?$"), TargetBackend.ANY, true); } @TestMetadata("kt11140.kt") @@ -12073,7 +12073,7 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest { } public void testAllFilesPresentInPrimitiveOverridesWithInlineClass() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/j+k/primitiveOverridesWithInlineClass"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/j+k/primitiveOverridesWithInlineClass"), Pattern.compile("^(.*)\\.kts?$"), TargetBackend.ANY, true); } @TestMetadata("inlineClassErasedToPrimitiveInt.kt") @@ -12091,7 +12091,7 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest { } public void testAllFilesPresentInProperties() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/j+k/properties"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/j+k/properties"), Pattern.compile("^(.*)\\.kts?$"), TargetBackend.ANY, true); } @TestMetadata("interface.kt") @@ -12124,7 +12124,7 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest { } public void testAllFilesPresentInSam() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/j+k/sam"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/j+k/sam"), Pattern.compile("^(.*)\\.kts?$"), TargetBackend.ANY, true); } @TestMetadata("enhancedSamConstructor.kt") @@ -12182,7 +12182,7 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest { } public void testAllFilesPresentInSamByProjectedType() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/j+k/samByProjectedType"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/j+k/samByProjectedType"), Pattern.compile("^(.*)\\.kts?$"), TargetBackend.ANY, true); } @TestMetadata("genericInReturnType.kt") @@ -12220,7 +12220,7 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest { } public void testAllFilesPresentInSignatureAnnotations() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/j+k/signatureAnnotations"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/j+k/signatureAnnotations"), Pattern.compile("^(.*)\\.kts?$"), TargetBackend.ANY, true); } @TestMetadata("defaultEnum.kt") @@ -12308,7 +12308,7 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest { } public void testAllFilesPresentInSpecialBuiltIns() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/j+k/specialBuiltIns"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/j+k/specialBuiltIns"), Pattern.compile("^(.*)\\.kts?$"), TargetBackend.ANY, true); } @TestMetadata("hashtableInheritance.kt") @@ -12331,7 +12331,7 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest { } public void testAllFilesPresentInTypes() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/j+k/types"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/j+k/types"), Pattern.compile("^(.*)\\.kts?$"), TargetBackend.ANY, true); } @TestMetadata("arrayList.kt") @@ -12380,7 +12380,7 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest { } public void testAllFilesPresentInJava8Overrides() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/java8Overrides"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/java8Overrides"), Pattern.compile("^(.*)\\.kts?$"), TargetBackend.ANY, true); } @TestMetadata("defaultVsAbstract.kt") @@ -12428,7 +12428,7 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest { } public void testAllFilesPresentInLabels() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/labels"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/labels"), Pattern.compile("^(.*)\\.kts?$"), TargetBackend.ANY, true); } @TestMetadata("automaticLabelFromInfixOperator.kt") @@ -12501,7 +12501,7 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest { } public void testAllFilesPresentInLateinit() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/lateinit"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/lateinit"), Pattern.compile("^(.*)\\.kts?$"), TargetBackend.ANY, true); } @TestMetadata("modifierApplicability.kt") @@ -12528,7 +12528,7 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest { } public void testAllFilesPresentInLocal() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/lateinit/local"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/lateinit/local"), Pattern.compile("^(.*)\\.kts?$"), TargetBackend.ANY, true); } @TestMetadata("inapplicableLateinitModifier.kt") @@ -12557,7 +12557,7 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest { } public void testAllFilesPresentInLibrary() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/library"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/library"), Pattern.compile("^(.*)\\.kts?$"), TargetBackend.ANY, true); } @TestMetadata("Collections.kt") @@ -12580,7 +12580,7 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest { } public void testAllFilesPresentInLocalClasses() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/localClasses"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/localClasses"), Pattern.compile("^(.*)\\.kts?$"), TargetBackend.ANY, true); } @TestMetadata("localAnnotationClass.kt") @@ -12603,7 +12603,7 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest { } public void testAllFilesPresentInModifiers() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/modifiers"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/modifiers"), Pattern.compile("^(.*)\\.kts?$"), TargetBackend.ANY, true); } @TestMetadata("annotations.kt") @@ -12690,7 +12690,7 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest { } public void testAllFilesPresentInConst() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/modifiers/const"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/modifiers/const"), Pattern.compile("^(.*)\\.kts?$"), TargetBackend.ANY, true); } @TestMetadata("applicability.kt") @@ -12748,7 +12748,7 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest { } public void testAllFilesPresentInOperatorInfix() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/modifiers/operatorInfix"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/modifiers/operatorInfix"), Pattern.compile("^(.*)\\.kts?$"), TargetBackend.ANY, true); } @TestMetadata("LocalFunctions.kt") @@ -12777,7 +12777,7 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest { } public void testAllFilesPresentInMultimodule() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/multimodule"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/multimodule"), Pattern.compile("^(.*)\\.kts?$"), TargetBackend.ANY, true); } @TestMetadata("internal.kt") @@ -12819,7 +12819,7 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest { } public void testAllFilesPresentInDuplicateClass() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/multimodule/duplicateClass"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/multimodule/duplicateClass"), Pattern.compile("^(.*)\\.kts?$"), TargetBackend.ANY, true); } @TestMetadata("collectionMethodStub.kt") @@ -12897,7 +12897,7 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest { } public void testAllFilesPresentInDuplicateMethod() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/multimodule/duplicateMethod"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/multimodule/duplicateMethod"), Pattern.compile("^(.*)\\.kts?$"), TargetBackend.ANY, true); } @TestMetadata("classGenericsInParams.kt") @@ -13035,7 +13035,7 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest { } public void testAllFilesPresentInDuplicateSuper() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/multimodule/duplicateSuper"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/multimodule/duplicateSuper"), Pattern.compile("^(.*)\\.kts?$"), TargetBackend.ANY, true); } @TestMetadata("differentSuperTraits.kt") @@ -13068,7 +13068,7 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest { } public void testAllFilesPresentInHiddenClass() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/multimodule/hiddenClass"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/multimodule/hiddenClass"), Pattern.compile("^(.*)\\.kts?$"), TargetBackend.ANY, true); } @TestMetadata("deprecatedHiddenImportPriority.kt") @@ -13102,7 +13102,7 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest { } public void testAllFilesPresentInMultiplatform() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/multiplatform"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/multiplatform"), Pattern.compile("^(.*)\\.kts?$"), TargetBackend.ANY, true); } @TestMetadata("headerFunInNonHeaderClass.kt") @@ -13164,7 +13164,7 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest { } public void testAllFilesPresentInDefaultArguments() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/multiplatform/defaultArguments"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/multiplatform/defaultArguments"), Pattern.compile("^(.*)\\.kts?$"), TargetBackend.ANY, true); } @TestMetadata("annotationArgumentEquality.kt") @@ -13217,7 +13217,7 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest { } public void testAllFilesPresentInDeprecated() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/multiplatform/deprecated"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/multiplatform/deprecated"), Pattern.compile("^(.*)\\.kts?$"), TargetBackend.ANY, true); } @TestMetadata("header.kt") @@ -13240,7 +13240,7 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest { } public void testAllFilesPresentInEnum() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/multiplatform/enum"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/multiplatform/enum"), Pattern.compile("^(.*)\\.kts?$"), TargetBackend.ANY, true); } @TestMetadata("constructorInHeaderEnum.kt") @@ -13273,7 +13273,7 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest { } public void testAllFilesPresentInGeneric() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/multiplatform/generic"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/multiplatform/generic"), Pattern.compile("^(.*)\\.kts?$"), TargetBackend.ANY, true); } @TestMetadata("functionTypeParameterBounds.kt") @@ -13321,7 +13321,7 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest { } public void testAllFilesPresentInHeaderClass() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/multiplatform/headerClass"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/multiplatform/headerClass"), Pattern.compile("^(.*)\\.kts?$"), TargetBackend.ANY, true); } @TestMetadata("baseExpectClassWithoutConstructor.kt") @@ -13484,7 +13484,7 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest { } public void testAllFilesPresentInInlineClasses() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/multiplatform/inlineClasses"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/multiplatform/inlineClasses"), Pattern.compile("^(.*)\\.kts?$"), TargetBackend.ANY, true); } @TestMetadata("expectActualInlineClass.kt") @@ -13502,7 +13502,7 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest { } public void testAllFilesPresentInJava() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/multiplatform/java"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/multiplatform/java"), Pattern.compile("^(.*)\\.kts?$"), TargetBackend.ANY, true); } @TestMetadata("flexibleTypes.kt") @@ -13525,7 +13525,7 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest { } public void testAllFilesPresentInTopLevelFun() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/multiplatform/topLevelFun"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/multiplatform/topLevelFun"), Pattern.compile("^(.*)\\.kts?$"), TargetBackend.ANY, true); } @TestMetadata("callHeaderFun.kt") @@ -13603,7 +13603,7 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest { } public void testAllFilesPresentInTopLevelProperty() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/multiplatform/topLevelProperty"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/multiplatform/topLevelProperty"), Pattern.compile("^(.*)\\.kts?$"), TargetBackend.ANY, true); } @TestMetadata("differentKindsOfProperties.kt") @@ -13627,7 +13627,7 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest { } public void testAllFilesPresentInNamedArguments() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/namedArguments"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/namedArguments"), Pattern.compile("^(.*)\\.kts?$"), TargetBackend.ANY, true); } @TestMetadata("allowForJavaAnnotation.kt") @@ -13705,7 +13705,7 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest { } public void testAllFilesPresentInNullabilityAndSmartCasts() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/nullabilityAndSmartCasts"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/nullabilityAndSmartCasts"), Pattern.compile("^(.*)\\.kts?$"), TargetBackend.ANY, true); } @TestMetadata("AssertNotNull.kt") @@ -13903,7 +13903,7 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest { } public void testAllFilesPresentInNullableTypes() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/nullableTypes"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/nullableTypes"), Pattern.compile("^(.*)\\.kts?$"), TargetBackend.ANY, true); } @TestMetadata("baseWithNullableUpperBound.kt") @@ -13976,7 +13976,7 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest { } public void testAllFilesPresentInNumbers() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/numbers"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/numbers"), Pattern.compile("^(.*)\\.kts?$"), TargetBackend.ANY, true); } @TestMetadata("characterIsNotANumber.kt") @@ -14009,7 +14009,7 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest { } public void testAllFilesPresentInObjects() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/objects"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/objects"), Pattern.compile("^(.*)\\.kts?$"), TargetBackend.ANY, true); } @TestMetadata("invokeOnInnerObject.kt") @@ -14091,7 +14091,7 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest { } public void testAllFilesPresentInKt21515() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/objects/kt21515"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/objects/kt21515"), Pattern.compile("^(.*)\\.kts?$"), TargetBackend.ANY, true); } @TestMetadata("annotationConstructor.kt") @@ -14230,7 +14230,7 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest { } public void testAllFilesPresentInOperatorRem() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/operatorRem"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/operatorRem"), Pattern.compile("^(.*)\\.kts?$"), TargetBackend.ANY, true); } @TestMetadata("DeprecatedModAssignOperatorConventions.kt") @@ -14373,7 +14373,7 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest { } public void testAllFilesPresentInOperatorsOverloading() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/operatorsOverloading"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/operatorsOverloading"), Pattern.compile("^(.*)\\.kts?$"), TargetBackend.ANY, true); } @TestMetadata("AssignOperatorAmbiguity.kt") @@ -14456,7 +14456,7 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest { } public void testAllFilesPresentInOverload() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/overload"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/overload"), Pattern.compile("^(.*)\\.kts?$"), TargetBackend.ANY, true); } @TestMetadata("ConflictingOlverloadsGenericFunctions.kt") @@ -14629,7 +14629,7 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest { } public void testAllFilesPresentInOverride() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/override"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/override"), Pattern.compile("^(.*)\\.kts?$"), TargetBackend.ANY, true); } @TestMetadata("AllPrivateFromSuperTypes.kt") @@ -14886,7 +14886,7 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest { } public void testAllFilesPresentInClashesOnInheritance() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/override/clashesOnInheritance"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/override/clashesOnInheritance"), Pattern.compile("^(.*)\\.kts?$"), TargetBackend.ANY, true); } @TestMetadata("covariantOverrides.kt") @@ -14959,7 +14959,7 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest { } public void testAllFilesPresentInParameterNames() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/override/parameterNames"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/override/parameterNames"), Pattern.compile("^(.*)\\.kts?$"), TargetBackend.ANY, true); } @TestMetadata("changeOnOverrideDiagnostic.kt") @@ -15012,7 +15012,7 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest { } public void testAllFilesPresentInTypeParameters() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/override/typeParameters"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/override/typeParameters"), Pattern.compile("^(.*)\\.kts?$"), TargetBackend.ANY, true); } @TestMetadata("classAndTwoInterfaceBounds.kt") @@ -15046,7 +15046,7 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest { } public void testAllFilesPresentInParenthesizedTypes() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/parenthesizedTypes"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/parenthesizedTypes"), Pattern.compile("^(.*)\\.kts?$"), TargetBackend.ANY, true); } @TestMetadata("annotationsOnNullableParenthesizedTypes.kt") @@ -15074,7 +15074,7 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest { } public void testAllFilesPresentInPlatformTypes() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/platformTypes"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/platformTypes"), Pattern.compile("^(.*)\\.kts?$"), TargetBackend.ANY, true); } @TestMetadata("delegateByComplexInheritance.kt") @@ -15186,7 +15186,7 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest { } public void testAllFilesPresentInCommonSupertype() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/platformTypes/commonSupertype"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/platformTypes/commonSupertype"), Pattern.compile("^(.*)\\.kts?$"), TargetBackend.ANY, true); } @TestMetadata("collectionOrNull.kt") @@ -15239,7 +15239,7 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest { } public void testAllFilesPresentInGenericVarianceViolation() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/platformTypes/genericVarianceViolation"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/platformTypes/genericVarianceViolation"), Pattern.compile("^(.*)\\.kts?$"), TargetBackend.ANY, true); } @TestMetadata("listSuperType.kt") @@ -15292,7 +15292,7 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest { } public void testAllFilesPresentInIntersection() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/platformTypes/intersection"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/platformTypes/intersection"), Pattern.compile("^(.*)\\.kts?$"), TargetBackend.ANY, true); } @TestMetadata("map.kt") @@ -15310,7 +15310,7 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest { } public void testAllFilesPresentInMethodCall() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/platformTypes/methodCall"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/platformTypes/methodCall"), Pattern.compile("^(.*)\\.kts?$"), TargetBackend.ANY, true); } @TestMetadata("entrySet.kt") @@ -15408,7 +15408,7 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest { } public void testAllFilesPresentInNotNullTypeParameter() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/platformTypes/notNullTypeParameter"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/platformTypes/notNullTypeParameter"), Pattern.compile("^(.*)\\.kts?$"), TargetBackend.ANY, true); } @TestMetadata("enhancementFromAnnotation.kt") @@ -15456,7 +15456,7 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest { } public void testAllFilesPresentInNullabilityWarnings() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/platformTypes/nullabilityWarnings"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/platformTypes/nullabilityWarnings"), Pattern.compile("^(.*)\\.kts?$"), TargetBackend.ANY, true); } @TestMetadata("arithmetic.kt") @@ -15624,7 +15624,7 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest { } public void testAllFilesPresentInRawTypes() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/platformTypes/rawTypes"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/platformTypes/rawTypes"), Pattern.compile("^(.*)\\.kts?$"), TargetBackend.ANY, true); } @TestMetadata("arrays.kt") @@ -15722,7 +15722,7 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest { } public void testAllFilesPresentInTypeEnhancement() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/platformTypes/typeEnhancement"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/platformTypes/typeEnhancement"), Pattern.compile("^(.*)\\.kts?$"), TargetBackend.ANY, true); } @TestMetadata("overriddenExtensions.kt") @@ -15756,7 +15756,7 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest { } public void testAllFilesPresentInPrivateInFile() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/privateInFile"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/privateInFile"), Pattern.compile("^(.*)\\.kts?$"), TargetBackend.ANY, true); } @TestMetadata("kt12429.kt") @@ -15784,7 +15784,7 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest { } public void testAllFilesPresentInProperties() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/properties"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/properties"), Pattern.compile("^(.*)\\.kts?$"), TargetBackend.ANY, true); } @TestMetadata("extensionPropertyMustHaveAccessorsOrBeAbstract.kt") @@ -15806,7 +15806,7 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest { } public void testAllFilesPresentInInferenceFromGetters() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/properties/inferenceFromGetters"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/properties/inferenceFromGetters"), Pattern.compile("^(.*)\\.kts?$"), TargetBackend.ANY, true); } @TestMetadata("blockBodyGetter.kt") @@ -15880,7 +15880,7 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest { } public void testAllFilesPresentInQualifiedExpression() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/qualifiedExpression"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/qualifiedExpression"), Pattern.compile("^(.*)\\.kts?$"), TargetBackend.ANY, true); } @TestMetadata("calleeExpressionAsCallExpression.kt") @@ -15943,7 +15943,7 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest { } public void testAllFilesPresentInReassignment() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/reassignment"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/reassignment"), Pattern.compile("^(.*)\\.kts?$"), TargetBackend.ANY, true); } @TestMetadata("dowhile.kt") @@ -16001,7 +16001,7 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest { } public void testAllFilesPresentInRecovery() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/recovery"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/recovery"), Pattern.compile("^(.*)\\.kts?$"), TargetBackend.ANY, true); } @TestMetadata("emptyTypeArgs.kt") @@ -16034,7 +16034,7 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest { } public void testAllFilesPresentInRedeclarations() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/redeclarations"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/redeclarations"), Pattern.compile("^(.*)\\.kts?$"), TargetBackend.ANY, true); } @TestMetadata("ClassRedeclarationInDifferentFiles.kt") @@ -16172,9 +16172,9 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest { runTest("compiler/testData/diagnostics/tests/redeclarations/RedeclaringPrivateToFile.kt"); } - @TestMetadata("ScriptAndClassConflict.kt") + @TestMetadata("ScriptAndClassConflict.kts") public void testScriptAndClassConflict() throws Exception { - runTest("compiler/testData/diagnostics/tests/redeclarations/ScriptAndClassConflict.kt"); + runTest("compiler/testData/diagnostics/tests/redeclarations/ScriptAndClassConflict.kts"); } @TestMetadata("SingletonAndFunctionSameName.kt") @@ -16216,7 +16216,7 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest { } public void testAllFilesPresentInShadowedExtension() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/redeclarations/shadowedExtension"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/redeclarations/shadowedExtension"), Pattern.compile("^(.*)\\.kts?$"), TargetBackend.ANY, true); } @TestMetadata("extensionFunShadowedByInnerClassConstructor.kt") @@ -16300,7 +16300,7 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest { } public void testAllFilesPresentInReflection() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/reflection"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/reflection"), Pattern.compile("^(.*)\\.kts?$"), TargetBackend.ANY, true); } @TestMetadata("noReflectionInClassPath.kt") @@ -16318,7 +16318,7 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest { } public void testAllFilesPresentInRegressions() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/regressions"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/regressions"), Pattern.compile("^(.*)\\.kts?$"), TargetBackend.ANY, true); } @TestMetadata("AmbiguityOnLazyTypeComputation.kt") @@ -17030,7 +17030,7 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest { } public void testAllFilesPresentInKt7585() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/regressions/kt7585"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/regressions/kt7585"), Pattern.compile("^(.*)\\.kts?$"), TargetBackend.ANY, true); } @TestMetadata("base.kt") @@ -17059,7 +17059,7 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest { } public void testAllFilesPresentInResolve() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/resolve"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/resolve"), Pattern.compile("^(.*)\\.kts?$"), TargetBackend.ANY, true); } @TestMetadata("ambiguityOnPropertiesWithTheSamePackageName.kt") @@ -17201,7 +17201,7 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest { } public void testAllFilesPresentInDslMarker() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/resolve/dslMarker"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/resolve/dslMarker"), Pattern.compile("^(.*)\\.kts?$"), TargetBackend.ANY, true); } @TestMetadata("annotatedFunctionType.kt") @@ -17329,7 +17329,7 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest { } public void testAllFilesPresentInInvoke() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/resolve/invoke"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/resolve/invoke"), Pattern.compile("^(.*)\\.kts?$"), TargetBackend.ANY, true); } @TestMetadata("extensionValueAsNonExtension.kt") @@ -17441,7 +17441,7 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest { } public void testAllFilesPresentInErrors() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/resolve/invoke/errors"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/resolve/invoke/errors"), Pattern.compile("^(.*)\\.kts?$"), TargetBackend.ANY, true); } @TestMetadata("ambiguityForInvoke.kt") @@ -17495,7 +17495,7 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest { } public void testAllFilesPresentInNestedCalls() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/resolve/nestedCalls"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/resolve/nestedCalls"), Pattern.compile("^(.*)\\.kts?$"), TargetBackend.ANY, true); } @TestMetadata("analyzeArgsInFreeExpressionPosition.kt") @@ -17553,7 +17553,7 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest { } public void testAllFilesPresentInNoCandidates() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/resolve/noCandidates"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/resolve/noCandidates"), Pattern.compile("^(.*)\\.kts?$"), TargetBackend.ANY, true); } @TestMetadata("kt2787.kt") @@ -17581,7 +17581,7 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest { } public void testAllFilesPresentInOverloadConflicts() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/resolve/overloadConflicts"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/resolve/overloadConflicts"), Pattern.compile("^(.*)\\.kts?$"), TargetBackend.ANY, true); } @TestMetadata("allLambdas.kt") @@ -17659,7 +17659,7 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest { } public void testAllFilesPresentInPriority() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/resolve/priority"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/resolve/priority"), Pattern.compile("^(.*)\\.kts?$"), TargetBackend.ANY, true); } @TestMetadata("invokeExtensionVsOther.kt") @@ -17732,7 +17732,7 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest { } public void testAllFilesPresentInSpecialConstructions() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/resolve/specialConstructions"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/resolve/specialConstructions"), Pattern.compile("^(.*)\\.kts?$"), TargetBackend.ANY, true); } @TestMetadata("constantsInIf.kt") @@ -17776,7 +17776,7 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest { } public void testAllFilesPresentInSamConversions() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/samConversions"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/samConversions"), Pattern.compile("^(.*)\\.kts?$"), TargetBackend.ANY, true); } @TestMetadata("DisabledForKTSimple.kt") @@ -17834,7 +17834,7 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest { } public void testAllFilesPresentInScopes() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/scopes"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/scopes"), Pattern.compile("^(.*)\\.kts?$"), TargetBackend.ANY, true); } @TestMetadata("AmbiguityBetweenRootAndPackage.kt") @@ -18036,7 +18036,7 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest { } public void testAllFilesPresentInClassHeader() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/scopes/classHeader"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/scopes/classHeader"), Pattern.compile("^(.*)\\.kts?$"), TargetBackend.ANY, true); } @TestMetadata("annotationOnClass.kt") @@ -18114,7 +18114,7 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest { } public void testAllFilesPresentInInheritance() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/scopes/inheritance"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/scopes/inheritance"), Pattern.compile("^(.*)\\.kts?$"), TargetBackend.ANY, true); } @TestMetadata("companionObject.kt") @@ -18196,7 +18196,7 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest { } public void testAllFilesPresentInStatics() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/scopes/inheritance/statics"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/scopes/inheritance/statics"), Pattern.compile("^(.*)\\.kts?$"), TargetBackend.ANY, true); } @TestMetadata("hidePrivateByPublic.kt") @@ -18308,7 +18308,7 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest { } public void testAllFilesPresentInCompanionObject() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/scopes/inheritance/statics/companionObject"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/scopes/inheritance/statics/companionObject"), Pattern.compile("^(.*)\\.kts?$"), TargetBackend.ANY, true); } @TestMetadata("inheritFromContainingClass_after.kt") @@ -18353,7 +18353,7 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest { } public void testAllFilesPresentInProtectedVisibility() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/scopes/protectedVisibility"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/scopes/protectedVisibility"), Pattern.compile("^(.*)\\.kts?$"), TargetBackend.ANY, true); } @TestMetadata("complexCompanion.kt") @@ -18446,13 +18446,73 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest { KotlinTestUtils.runTest(this::doTest, TargetBackend.ANY, testDataFilePath); } - public void testAllFilesPresentInScript() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/script"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true); + @TestMetadata("AccessForwardDeclarationInScript.kts") + public void testAccessForwardDeclarationInScript() throws Exception { + runTest("compiler/testData/diagnostics/tests/script/AccessForwardDeclarationInScript.kts"); } - @TestMetadata("varInScript.kt") + public void testAllFilesPresentInScript() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/script"), Pattern.compile("^(.*)\\.kts?$"), TargetBackend.ANY, true); + } + + @TestMetadata("ComplexScript.kts") + public void testComplexScript() throws Exception { + runTest("compiler/testData/diagnostics/tests/script/ComplexScript.kts"); + } + + @TestMetadata("destructuringDeclarationsScript.kts") + public void testDestructuringDeclarationsScript() throws Exception { + runTest("compiler/testData/diagnostics/tests/script/destructuringDeclarationsScript.kts"); + } + + @TestMetadata("imports.kts") + public void testImports() throws Exception { + runTest("compiler/testData/diagnostics/tests/script/imports.kts"); + } + + @TestMetadata("LateInit.kts") + public void testLateInit() throws Exception { + runTest("compiler/testData/diagnostics/tests/script/LateInit.kts"); + } + + @TestMetadata("NestedInnerClass.kts") + public void testNestedInnerClass() throws Exception { + runTest("compiler/testData/diagnostics/tests/script/NestedInnerClass.kts"); + } + + @TestMetadata("PrivateVal.kts") + public void testPrivateVal() throws Exception { + runTest("compiler/testData/diagnostics/tests/script/PrivateVal.kts"); + } + + @TestMetadata("resolveInitializerOfDestructuringDeclarationOnce.kts") + public void testResolveInitializerOfDestructuringDeclarationOnce() throws Exception { + runTest("compiler/testData/diagnostics/tests/script/resolveInitializerOfDestructuringDeclarationOnce.kts"); + } + + @TestMetadata("SimpleScript.kts") + public void testSimpleScript() throws Exception { + runTest("compiler/testData/diagnostics/tests/script/SimpleScript.kts"); + } + + @TestMetadata("topLevelPropertiesWithGetSet.kts") + public void testTopLevelPropertiesWithGetSet() throws Exception { + runTest("compiler/testData/diagnostics/tests/script/topLevelPropertiesWithGetSet.kts"); + } + + @TestMetadata("topLevelVariable.kts") + public void testTopLevelVariable() throws Exception { + runTest("compiler/testData/diagnostics/tests/script/topLevelVariable.kts"); + } + + @TestMetadata("typealiasInScript.kts") + public void testTypealiasInScript() throws Exception { + runTest("compiler/testData/diagnostics/tests/script/typealiasInScript.kts"); + } + + @TestMetadata("varInScript.kts") public void testVarInScript() throws Exception { - runTest("compiler/testData/diagnostics/tests/script/varInScript.kt"); + runTest("compiler/testData/diagnostics/tests/script/varInScript.kts"); } } @@ -18465,7 +18525,7 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest { } public void testAllFilesPresentInSealed() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/sealed"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/sealed"), Pattern.compile("^(.*)\\.kts?$"), TargetBackend.ANY, true); } @TestMetadata("DerivedTopLevel.kt") @@ -18663,7 +18723,7 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest { } public void testAllFilesPresentInSecondaryConstructors() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/secondaryConstructors"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/secondaryConstructors"), Pattern.compile("^(.*)\\.kts?$"), TargetBackend.ANY, true); } @TestMetadata("argumentsResolveInBodyAndDelegationCall.kt") @@ -18915,7 +18975,7 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest { } public void testAllFilesPresentInHeaderCallChecker() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/secondaryConstructors/headerCallChecker"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/secondaryConstructors/headerCallChecker"), Pattern.compile("^(.*)\\.kts?$"), TargetBackend.ANY, true); } @TestMetadata("innerInstanceCreation.kt") @@ -19004,7 +19064,7 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest { } public void testAllFilesPresentInSenselessComparison() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/senselessComparison"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/senselessComparison"), Pattern.compile("^(.*)\\.kts?$"), TargetBackend.ANY, true); } @TestMetadata("noExplicitType.kt") @@ -19027,7 +19087,7 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest { } public void testAllFilesPresentInShadowing() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/shadowing"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/shadowing"), Pattern.compile("^(.*)\\.kts?$"), TargetBackend.ANY, true); } @TestMetadata("noNameShadowingForSimpleParameters.kt") @@ -19105,7 +19165,7 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest { } public void testAllFilesPresentInSmartCasts() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/smartCasts"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/smartCasts"), Pattern.compile("^(.*)\\.kts?$"), TargetBackend.ANY, true); } @TestMetadata("alwaysNull.kt") @@ -19687,7 +19747,7 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest { } public void testAllFilesPresentInCastchecks() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/smartCasts/castchecks"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/smartCasts/castchecks"), Pattern.compile("^(.*)\\.kts?$"), TargetBackend.ANY, true); } @TestMetadata("basicOff.kt") @@ -19730,7 +19790,7 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest { } public void testAllFilesPresentInElvis() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/smartCasts/elvis"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/smartCasts/elvis"), Pattern.compile("^(.*)\\.kts?$"), TargetBackend.ANY, true); } @TestMetadata("basicOff.kt") @@ -19758,7 +19818,7 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest { } public void testAllFilesPresentInInference() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/smartCasts/inference"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/smartCasts/inference"), Pattern.compile("^(.*)\\.kts?$"), TargetBackend.ANY, true); } @TestMetadata("dependentOnPrevArg.kt") @@ -19831,7 +19891,7 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest { } public void testAllFilesPresentInIntersectionScope() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/smartCasts/intersectionScope"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/smartCasts/intersectionScope"), Pattern.compile("^(.*)\\.kts?$"), TargetBackend.ANY, true); } @TestMetadata("conflictTypeParameters.kt") @@ -19914,7 +19974,7 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest { } public void testAllFilesPresentInLoops() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/smartCasts/loops"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/smartCasts/loops"), Pattern.compile("^(.*)\\.kts?$"), TargetBackend.ANY, true); } @TestMetadata("assignElvisIfBreakInsideWhileTrue.kt") @@ -20207,7 +20267,7 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest { } public void testAllFilesPresentInObjectLiterals() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/smartCasts/objectLiterals"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/smartCasts/objectLiterals"), Pattern.compile("^(.*)\\.kts?$"), TargetBackend.ANY, true); } @TestMetadata("assignment.kt") @@ -20260,7 +20320,7 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest { } public void testAllFilesPresentInPublicVals() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/smartCasts/publicVals"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/smartCasts/publicVals"), Pattern.compile("^(.*)\\.kts?$"), TargetBackend.ANY, true); } @TestMetadata("customGetter.kt") @@ -20318,7 +20378,7 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest { } public void testAllFilesPresentInSafecalls() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/smartCasts/safecalls"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/smartCasts/safecalls"), Pattern.compile("^(.*)\\.kts?$"), TargetBackend.ANY, true); } @TestMetadata("anotherVal.kt") @@ -20481,7 +20541,7 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest { } public void testAllFilesPresentInVariables() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/smartCasts/variables"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/smartCasts/variables"), Pattern.compile("^(.*)\\.kts?$"), TargetBackend.ANY, true); } @TestMetadata("assignment.kt") @@ -20614,7 +20674,7 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest { } public void testAllFilesPresentInVarnotnull() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/smartCasts/varnotnull"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/smartCasts/varnotnull"), Pattern.compile("^(.*)\\.kts?$"), TargetBackend.ANY, true); } @TestMetadata("assignNestedWhile.kt") @@ -20888,7 +20948,7 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest { } public void testAllFilesPresentInSourceCompatibility() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/sourceCompatibility"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/sourceCompatibility"), Pattern.compile("^(.*)\\.kts?$"), TargetBackend.ANY, true); } @TestMetadata("inlineFunctionAlways.kt") @@ -20921,9 +20981,9 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest { runTest("compiler/testData/diagnostics/tests/sourceCompatibility/noLocalDelegatedProperty.kt"); } - @TestMetadata("noLocalDelegatedPropertyInScript.kt") + @TestMetadata("noLocalDelegatedPropertyInScript.kts") public void testNoLocalDelegatedPropertyInScript() throws Exception { - runTest("compiler/testData/diagnostics/tests/sourceCompatibility/noLocalDelegatedPropertyInScript.kt"); + runTest("compiler/testData/diagnostics/tests/sourceCompatibility/noLocalDelegatedPropertyInScript.kts"); } @TestMetadata("noMultiplatformProjects.kt") @@ -20945,7 +21005,7 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest { } public void testAllFilesPresentInApiVersion() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/sourceCompatibility/apiVersion"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/sourceCompatibility/apiVersion"), Pattern.compile("^(.*)\\.kts?$"), TargetBackend.ANY, true); } @TestMetadata("annotations.kt") @@ -21013,7 +21073,7 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest { } public void testAllFilesPresentInNoBoundCallableReferences() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/sourceCompatibility/noBoundCallableReferences"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/sourceCompatibility/noBoundCallableReferences"), Pattern.compile("^(.*)\\.kts?$"), TargetBackend.ANY, true); } @TestMetadata("boundCallableReference.kt") @@ -21047,7 +21107,7 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest { } public void testAllFilesPresentInSubstitutions() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/substitutions"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/substitutions"), Pattern.compile("^(.*)\\.kts?$"), TargetBackend.ANY, true); } @TestMetadata("kt1558-short.kt") @@ -21085,7 +21145,7 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest { } public void testAllFilesPresentInSubtyping() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/subtyping"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/subtyping"), Pattern.compile("^(.*)\\.kts?$"), TargetBackend.ANY, true); } @TestMetadata("extFunctionTypeAsSuperType.kt") @@ -21183,7 +21243,7 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest { } public void testAllFilesPresentInSuppress() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/suppress"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/suppress"), Pattern.compile("^(.*)\\.kts?$"), TargetBackend.ANY, true); } @TestMetadata("compiler/testData/diagnostics/tests/suppress/allWarnings") @@ -21195,7 +21255,7 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest { } public void testAllFilesPresentInAllWarnings() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/suppress/allWarnings"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/suppress/allWarnings"), Pattern.compile("^(.*)\\.kts?$"), TargetBackend.ANY, true); } @TestMetadata("suppressWarningsOnAnonymousObjectInVariable.kt") @@ -21258,7 +21318,7 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest { } public void testAllFilesPresentInManyWarnings() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/suppress/manyWarnings"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/suppress/manyWarnings"), Pattern.compile("^(.*)\\.kts?$"), TargetBackend.ANY, true); } @TestMetadata("mixed.kt") @@ -21316,7 +21376,7 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest { } public void testAllFilesPresentInOneWarning() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/suppress/oneWarning"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/suppress/oneWarning"), Pattern.compile("^(.*)\\.kts?$"), TargetBackend.ANY, true); } @TestMetadata("onBlockStatement.kt") @@ -21385,7 +21445,7 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest { } public void testAllFilesPresentInSyntheticExtensions() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/syntheticExtensions"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/syntheticExtensions"), Pattern.compile("^(.*)\\.kts?$"), TargetBackend.ANY, true); } @TestMetadata("compiler/testData/diagnostics/tests/syntheticExtensions/javaProperties") @@ -21402,7 +21462,7 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest { } public void testAllFilesPresentInJavaProperties() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/syntheticExtensions/javaProperties"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/syntheticExtensions/javaProperties"), Pattern.compile("^(.*)\\.kts?$"), TargetBackend.ANY, true); } @TestMetadata("Bases.kt") @@ -21555,7 +21615,7 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest { } public void testAllFilesPresentInSamAdapters() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/syntheticExtensions/samAdapters"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/syntheticExtensions/samAdapters"), Pattern.compile("^(.*)\\.kts?$"), TargetBackend.ANY, true); } @TestMetadata("Deprecated.kt") @@ -21654,7 +21714,7 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest { } public void testAllFilesPresentInTargetedBuiltIns() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/targetedBuiltIns"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/targetedBuiltIns"), Pattern.compile("^(.*)\\.kts?$"), TargetBackend.ANY, true); } @TestMetadata("concurrentMapRemove.kt") @@ -21696,7 +21756,7 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest { } public void testAllFilesPresentInBackwardCompatibility() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/targetedBuiltIns/backwardCompatibility"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/targetedBuiltIns/backwardCompatibility"), Pattern.compile("^(.*)\\.kts?$"), TargetBackend.ANY, true); } @TestMetadata("basic.kt") @@ -21745,7 +21805,7 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest { } public void testAllFilesPresentInThisAndSuper() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/thisAndSuper"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/thisAndSuper"), Pattern.compile("^(.*)\\.kts?$"), TargetBackend.ANY, true); } @TestMetadata("ambigousLabelOnThis.kt") @@ -21837,7 +21897,7 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest { } public void testAllFilesPresentInUnqualifiedSuper() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/thisAndSuper/unqualifiedSuper"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/thisAndSuper/unqualifiedSuper"), Pattern.compile("^(.*)\\.kts?$"), TargetBackend.ANY, true); } @TestMetadata("ambiguousSuperWithGenerics.kt") @@ -21916,7 +21976,7 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest { } public void testAllFilesPresentInTraitWithRequired() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/traitWithRequired"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/traitWithRequired"), Pattern.compile("^(.*)\\.kts?$"), TargetBackend.ANY, true); } @TestMetadata("traitRequiresAny.kt") @@ -21939,7 +21999,7 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest { } public void testAllFilesPresentInTypeParameters() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/typeParameters"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/typeParameters"), Pattern.compile("^(.*)\\.kts?$"), TargetBackend.ANY, true); } @TestMetadata("cannotHaveManyClassUpperBounds.kt") @@ -22002,7 +22062,7 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest { } public void testAllFilesPresentInTypealias() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/typealias"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/typealias"), Pattern.compile("^(.*)\\.kts?$"), TargetBackend.ANY, true); } @TestMetadata("annotationsOnTypeAliases.kt") @@ -22480,7 +22540,7 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest { } public void testAllFilesPresentInUnderscoresInNumericLiterals() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/underscoresInNumericLiterals"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/underscoresInNumericLiterals"), Pattern.compile("^(.*)\\.kts?$"), TargetBackend.ANY, true); } @TestMetadata("illegalUnderscores.kt") @@ -22503,7 +22563,7 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest { } public void testAllFilesPresentInUnit() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/unit"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/unit"), Pattern.compile("^(.*)\\.kts?$"), TargetBackend.ANY, true); } @TestMetadata("nullableUnit.kt") @@ -22521,7 +22581,7 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest { } public void testAllFilesPresentInVarargs() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/varargs"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/varargs"), Pattern.compile("^(.*)\\.kts?$"), TargetBackend.ANY, true); } @TestMetadata("AmbiguousVararg.kt") @@ -22674,7 +22734,7 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest { } public void testAllFilesPresentInVariance() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/variance"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/variance"), Pattern.compile("^(.*)\\.kts?$"), TargetBackend.ANY, true); } @TestMetadata("Class.kt") @@ -22751,7 +22811,7 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest { } public void testAllFilesPresentInPrivateToThis() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/variance/privateToThis"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/variance/privateToThis"), Pattern.compile("^(.*)\\.kts?$"), TargetBackend.ANY, true); } @TestMetadata("FunctionCall.kt") @@ -22785,7 +22845,7 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest { } public void testAllFilesPresentInWhen() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/when"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/when"), Pattern.compile("^(.*)\\.kts?$"), TargetBackend.ANY, true); } @TestMetadata("AnnotatedWhenStatement.kt") @@ -23112,7 +23172,7 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest { } public void testAllFilesPresentInWithSubjectVariable() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/when/withSubjectVariable"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true); + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/when/withSubjectVariable"), Pattern.compile("^(.*)\\.kts?$"), TargetBackend.ANY, true); } @TestMetadata("capturingInInitializer.kt") @@ -23198,79 +23258,6 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest { } } - @TestMetadata("compiler/testData/diagnostics/tests/script") - @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class Script extends AbstractDiagnosticsTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, TargetBackend.ANY, testDataFilePath); - } - - @TestMetadata("AccessForwardDeclarationInScript.kts") - public void testAccessForwardDeclarationInScript() throws Exception { - runTest("compiler/testData/diagnostics/tests/script/AccessForwardDeclarationInScript.kts"); - } - - public void testAllFilesPresentInScript() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/script"), Pattern.compile("^(.+)\\.kts$"), TargetBackend.ANY, true); - } - - @TestMetadata("ComplexScript.kts") - public void testComplexScript() throws Exception { - runTest("compiler/testData/diagnostics/tests/script/ComplexScript.kts"); - } - - @TestMetadata("destructuringDeclarationsScript.kts") - public void testDestructuringDeclarationsScript() throws Exception { - runTest("compiler/testData/diagnostics/tests/script/destructuringDeclarationsScript.kts"); - } - - @TestMetadata("imports.kts") - public void testImports() throws Exception { - runTest("compiler/testData/diagnostics/tests/script/imports.kts"); - } - - @TestMetadata("LateInit.kts") - public void testLateInit() throws Exception { - runTest("compiler/testData/diagnostics/tests/script/LateInit.kts"); - } - - @TestMetadata("NestedInnerClass.kts") - public void testNestedInnerClass() throws Exception { - runTest("compiler/testData/diagnostics/tests/script/NestedInnerClass.kts"); - } - - @TestMetadata("PrivateVal.kts") - public void testPrivateVal() throws Exception { - runTest("compiler/testData/diagnostics/tests/script/PrivateVal.kts"); - } - - @TestMetadata("resolveInitializerOfDestructuringDeclarationOnce.kts") - public void testResolveInitializerOfDestructuringDeclarationOnce() throws Exception { - runTest("compiler/testData/diagnostics/tests/script/resolveInitializerOfDestructuringDeclarationOnce.kts"); - } - - @TestMetadata("SimpleScript.kts") - public void testSimpleScript() throws Exception { - runTest("compiler/testData/diagnostics/tests/script/SimpleScript.kts"); - } - - @TestMetadata("topLevelPropertiesWithGetSet.kts") - public void testTopLevelPropertiesWithGetSet() throws Exception { - runTest("compiler/testData/diagnostics/tests/script/topLevelPropertiesWithGetSet.kts"); - } - - @TestMetadata("topLevelVariable.kts") - public void testTopLevelVariable() throws Exception { - runTest("compiler/testData/diagnostics/tests/script/topLevelVariable.kts"); - } - - @TestMetadata("typealiasInScript.kts") - public void testTypealiasInScript() throws Exception { - runTest("compiler/testData/diagnostics/tests/script/typealiasInScript.kts"); - } - } - @TestMetadata("compiler/testData/codegen/box/diagnostics") @TestDataPath("$PROJECT_ROOT") @RunWith(JUnit3RunnerWithInners.class) diff --git a/compiler/tests/org/jetbrains/kotlin/checkers/DiagnosticsTestWithStdLibGenerated.java b/compiler/tests/org/jetbrains/kotlin/checkers/DiagnosticsTestWithStdLibGenerated.java index 8d730246ec6..8153b531795 100644 --- a/compiler/tests/org/jetbrains/kotlin/checkers/DiagnosticsTestWithStdLibGenerated.java +++ b/compiler/tests/org/jetbrains/kotlin/checkers/DiagnosticsTestWithStdLibGenerated.java @@ -2512,11 +2512,6 @@ public class DiagnosticsTestWithStdLibGenerated extends AbstractDiagnosticsTestW runTest("compiler/testData/diagnostics/testsWithStdLib/experimental/overrideDifferentExperimentalities.kt"); } - @TestMetadata("scripts.kt") - public void testScripts() throws Exception { - runTest("compiler/testData/diagnostics/testsWithStdLib/experimental/scripts.kt"); - } - @TestMetadata("topLevel.kt") public void testTopLevel() throws Exception { runTest("compiler/testData/diagnostics/testsWithStdLib/experimental/topLevel.kt"); diff --git a/compiler/tests/org/jetbrains/kotlin/checkers/javac/DiagnosticsTestWithStdLibUsingJavacGenerated.java b/compiler/tests/org/jetbrains/kotlin/checkers/javac/DiagnosticsTestWithStdLibUsingJavacGenerated.java index 70a946a7a95..fbc33f73ace 100644 --- a/compiler/tests/org/jetbrains/kotlin/checkers/javac/DiagnosticsTestWithStdLibUsingJavacGenerated.java +++ b/compiler/tests/org/jetbrains/kotlin/checkers/javac/DiagnosticsTestWithStdLibUsingJavacGenerated.java @@ -2512,11 +2512,6 @@ public class DiagnosticsTestWithStdLibUsingJavacGenerated extends AbstractDiagno runTest("compiler/testData/diagnostics/testsWithStdLib/experimental/overrideDifferentExperimentalities.kt"); } - @TestMetadata("scripts.kt") - public void testScripts() throws Exception { - runTest("compiler/testData/diagnostics/testsWithStdLib/experimental/scripts.kt"); - } - @TestMetadata("topLevel.kt") public void testTopLevel() throws Exception { runTest("compiler/testData/diagnostics/testsWithStdLib/experimental/topLevel.kt"); diff --git a/compiler/tests/org/jetbrains/kotlin/checkers/javac/DiagnosticsUsingJavacTestGenerated.java b/compiler/tests/org/jetbrains/kotlin/checkers/javac/DiagnosticsUsingJavacTestGenerated.java index 6c2d82ef8f0..c22d40a33de 100644 --- a/compiler/tests/org/jetbrains/kotlin/checkers/javac/DiagnosticsUsingJavacTestGenerated.java +++ b/compiler/tests/org/jetbrains/kotlin/checkers/javac/DiagnosticsUsingJavacTestGenerated.java @@ -858,11 +858,6 @@ public class DiagnosticsUsingJavacTestGenerated extends AbstractDiagnosticsUsing runTest("compiler/testData/diagnostics/tests/annotations/ConstructorCall.kt"); } - @TestMetadata("DanglingInScript.kt") - public void testDanglingInScript() throws Exception { - runTest("compiler/testData/diagnostics/tests/annotations/DanglingInScript.kt"); - } - @TestMetadata("DanglingMixed.kt") public void testDanglingMixed() throws Exception { runTest("compiler/testData/diagnostics/tests/annotations/DanglingMixed.kt"); @@ -16172,11 +16167,6 @@ public class DiagnosticsUsingJavacTestGenerated extends AbstractDiagnosticsUsing runTest("compiler/testData/diagnostics/tests/redeclarations/RedeclaringPrivateToFile.kt"); } - @TestMetadata("ScriptAndClassConflict.kt") - public void testScriptAndClassConflict() throws Exception { - runTest("compiler/testData/diagnostics/tests/redeclarations/ScriptAndClassConflict.kt"); - } - @TestMetadata("SingletonAndFunctionSameName.kt") public void testSingletonAndFunctionSameName() throws Exception { runTest("compiler/testData/diagnostics/tests/redeclarations/SingletonAndFunctionSameName.kt"); @@ -18449,11 +18439,6 @@ public class DiagnosticsUsingJavacTestGenerated extends AbstractDiagnosticsUsing public void testAllFilesPresentInScript() throws Exception { KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/script"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true); } - - @TestMetadata("varInScript.kt") - public void testVarInScript() throws Exception { - runTest("compiler/testData/diagnostics/tests/script/varInScript.kt"); - } } @TestMetadata("compiler/testData/diagnostics/tests/sealed") @@ -20921,11 +20906,6 @@ public class DiagnosticsUsingJavacTestGenerated extends AbstractDiagnosticsUsing runTest("compiler/testData/diagnostics/tests/sourceCompatibility/noLocalDelegatedProperty.kt"); } - @TestMetadata("noLocalDelegatedPropertyInScript.kt") - public void testNoLocalDelegatedPropertyInScript() throws Exception { - runTest("compiler/testData/diagnostics/tests/sourceCompatibility/noLocalDelegatedPropertyInScript.kt"); - } - @TestMetadata("noMultiplatformProjects.kt") public void testNoMultiplatformProjects() throws Exception { runTest("compiler/testData/diagnostics/tests/sourceCompatibility/noMultiplatformProjects.kt"); diff --git a/compiler/tests/org/jetbrains/kotlin/generators/tests/GenerateCompilerTests.kt b/compiler/tests/org/jetbrains/kotlin/generators/tests/GenerateCompilerTests.kt index 25d7448785e..416c510580e 100644 --- a/compiler/tests/org/jetbrains/kotlin/generators/tests/GenerateCompilerTests.kt +++ b/compiler/tests/org/jetbrains/kotlin/generators/tests/GenerateCompilerTests.kt @@ -54,8 +54,7 @@ fun main(args: Array) { testGroup("compiler/tests", "compiler/testData") { testClass { - model("diagnostics/tests") - model("diagnostics/tests/script", extension = "kts") + model("diagnostics/tests", pattern = "^(.*)\\.kts?$") model("codegen/box/diagnostics") }