diff --git a/compiler/fir/analysis-tests/tests-gen/org/jetbrains/kotlin/test/runners/FirDiagnosticTestSpecGenerated.java b/compiler/fir/analysis-tests/tests-gen/org/jetbrains/kotlin/test/runners/FirDiagnosticTestSpecGenerated.java index ca5d14810a7..1fe2b8b472d 100644 --- a/compiler/fir/analysis-tests/tests-gen/org/jetbrains/kotlin/test/runners/FirDiagnosticTestSpecGenerated.java +++ b/compiler/fir/analysis-tests/tests-gen/org/jetbrains/kotlin/test/runners/FirDiagnosticTestSpecGenerated.java @@ -21,7 +21,7 @@ import java.util.regex.Pattern; public class FirDiagnosticTestSpecGenerated extends AbstractFirDiagnosticTestSpec { @Test public void testAllFilesPresentInDiagnostics() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true, "helpers", "linked/annotations", "linked/built-in-types-and-their-semantics", "linked/control--and-data-flow-analysis.control-flow-graph.expressions-1.conditional-expressions", "linked/control--and-data-flow-analysis/performing-analysis-on-the-control-flow-graph", "linked/declarations/classifier-declaration/class-declaration/nested-and-inner-classifiers", "linked/declarations/classifier-declaration/classifier-initialization", "linked/declarations/classifier-declaration/data-class-declaration", "linked/declarations/function-declaration", "linked/declarations/property-declaration/property-initialization", "linked/declarations/type-alias", "linked/expressions/call-and-property-access-expressions", "linked/expressions/function-literals", "linked/inheritance", "linked/overload-resolution/c-level-partition", "linked/overload-resolution/determining-function-applicability-for-a-specific-call/rationale", "linked/overloadable-operators", "linked/statements/assignments/simple-assignments", "linked/type-inference/local-type-inference", "linked/type-inference/smart-casts/smart-cast-types", "linked/type-system/subtyping/subtyping-for-nullable-types", "linked/type-system/type-kinds/type-parameters"); + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true, "helpers", "linked\\annotations", "linked\\built-in-types-and-their-semantics", "linked\\control--and-data-flow-analysis.control-flow-graph.expressions-1.conditional-expressions", "linked\\control--and-data-flow-analysis\\performing-analysis-on-the-control-flow-graph", "linked\\declarations\\classifier-declaration\\class-declaration\\nested-and-inner-classifiers", "linked\\declarations\\classifier-declaration\\classifier-initialization", "linked\\declarations\\classifier-declaration\\data-class-declaration", "linked\\declarations\\function-declaration", "linked\\declarations\\property-declaration\\property-initialization", "linked\\declarations\\type-alias", "linked\\expressions\\call-and-property-access-expressions", "linked\\expressions\\function-literals", "linked\\inheritance", "linked\\overload-resolution\\c-level-partition", "linked\\overload-resolution\\determining-function-applicability-for-a-specific-call\\rationale", "linked\\overloadable-operators", "linked\\statements\\assignments\\simple-assignments", "linked\\type-inference\\local-type-inference", "linked\\type-inference\\smart-casts\\smart-cast-types", "linked\\type-system\\subtyping\\subtyping-for-nullable-types", "linked\\type-system\\type-kinds\\type-parameters"); } @Nested @@ -30,7 +30,57 @@ public class FirDiagnosticTestSpecGenerated extends AbstractFirDiagnosticTestSpe public class Linked { @Test public void testAllFilesPresentInLinked() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true, "annotations", "built-in-types-and-their-semantics", "control--and-data-flow-analysis.control-flow-graph.expressions-1.conditional-expressions", "control--and-data-flow-analysis/performing-analysis-on-the-control-flow-graph", "declarations/classifier-declaration/class-declaration/nested-and-inner-classifiers", "declarations/classifier-declaration/classifier-initialization", "declarations/classifier-declaration/data-class-declaration", "declarations/function-declaration", "declarations/property-declaration/property-initialization", "declarations/type-alias", "expressions/call-and-property-access-expressions", "expressions/function-literals", "inheritance", "overload-resolution/c-level-partition", "overload-resolution/determining-function-applicability-for-a-specific-call/rationale", "overloadable-operators", "statements/assignments/simple-assignments", "type-inference/local-type-inference", "type-inference/smart-casts/smart-cast-types", "type-system/subtyping/subtyping-for-nullable-types", "type-system/type-kinds/type-parameters"); + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true); + } + + @Nested + @TestMetadata("compiler/tests-spec/testData/diagnostics/linked/annotations") + @TestDataPath("$PROJECT_ROOT") + public class Annotations { + @Test + public void testAllFilesPresentInAnnotations() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/annotations"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true); + } + + @Nested + @TestMetadata("compiler/tests-spec/testData/diagnostics/linked/annotations/annotation-targets") + @TestDataPath("$PROJECT_ROOT") + public class Annotation_targets { + @Test + public void testAllFilesPresentInAnnotation_targets() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/annotations/annotation-targets"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true); + } + } + } + + @Nested + @TestMetadata("compiler/tests-spec/testData/diagnostics/linked/built-in-types-and-their-semantics") + @TestDataPath("$PROJECT_ROOT") + public class Built_in_types_and_their_semantics { + @Test + public void testAllFilesPresentInBuilt_in_types_and_their_semantics() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/built-in-types-and-their-semantics"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true); + } + + @Nested + @TestMetadata("compiler/tests-spec/testData/diagnostics/linked/built-in-types-and-their-semantics/built-in-integer-types-1") + @TestDataPath("$PROJECT_ROOT") + public class Built_in_integer_types_1 { + @Test + public void testAllFilesPresentInBuilt_in_integer_types_1() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/built-in-types-and-their-semantics/built-in-integer-types-1"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true); + } + + @Nested + @TestMetadata("compiler/tests-spec/testData/diagnostics/linked/built-in-types-and-their-semantics/built-in-integer-types-1/integer-type-widening") + @TestDataPath("$PROJECT_ROOT") + public class Integer_type_widening { + @Test + public void testAllFilesPresentInInteger_type_widening() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/built-in-types-and-their-semantics/built-in-integer-types-1/integer-type-widening"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true); + } + } + } } @Nested @@ -39,7 +89,7 @@ public class FirDiagnosticTestSpecGenerated extends AbstractFirDiagnosticTestSpe public class Control__and_data_flow_analysis { @Test public void testAllFilesPresentInControl__and_data_flow_analysis() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/control--and-data-flow-analysis"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true, "performing-analysis-on-the-control-flow-graph"); + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/control--and-data-flow-analysis"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true); } @Nested @@ -149,6 +199,36 @@ public class FirDiagnosticTestSpecGenerated extends AbstractFirDiagnosticTestSpe } } } + + @Nested + @TestMetadata("compiler/tests-spec/testData/diagnostics/linked/control--and-data-flow-analysis/performing-analysis-on-the-control-flow-graph") + @TestDataPath("$PROJECT_ROOT") + public class Performing_analysis_on_the_control_flow_graph { + @Test + public void testAllFilesPresentInPerforming_analysis_on_the_control_flow_graph() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/control--and-data-flow-analysis/performing-analysis-on-the-control-flow-graph"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true); + } + + @Nested + @TestMetadata("compiler/tests-spec/testData/diagnostics/linked/control--and-data-flow-analysis/performing-analysis-on-the-control-flow-graph/variable-initialization-analysis") + @TestDataPath("$PROJECT_ROOT") + public class Variable_initialization_analysis { + @Test + public void testAllFilesPresentInVariable_initialization_analysis() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/control--and-data-flow-analysis/performing-analysis-on-the-control-flow-graph/variable-initialization-analysis"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true); + } + } + } + } + + @Nested + @TestMetadata("compiler/tests-spec/testData/diagnostics/linked/control--and-data-flow-analysis.control-flow-graph.expressions-1.conditional-expressions") + @TestDataPath("$PROJECT_ROOT") + public class Control__and_data_flow_analysis_control_flow_graph_expressions_1_conditional_expressions { + @Test + public void testAllFilesPresentInControl__and_data_flow_analysis_control_flow_graph_expressions_1_conditional_expressions() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/control--and-data-flow-analysis.control-flow-graph.expressions-1.conditional-expressions"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true); + } } @Nested @@ -157,7 +237,7 @@ public class FirDiagnosticTestSpecGenerated extends AbstractFirDiagnosticTestSpe public class Declarations { @Test public void testAllFilesPresentInDeclarations() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/declarations"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true, "classifier-declaration/class-declaration/nested-and-inner-classifiers", "classifier-declaration/classifier-initialization", "classifier-declaration/data-class-declaration", "function-declaration", "property-declaration/property-initialization", "type-alias"); + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/declarations"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true); } @Nested @@ -166,7 +246,7 @@ public class FirDiagnosticTestSpecGenerated extends AbstractFirDiagnosticTestSpe public class Classifier_declaration { @Test public void testAllFilesPresentInClassifier_declaration() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/declarations/classifier-declaration"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true, "class-declaration/nested-and-inner-classifiers", "classifier-initialization", "data-class-declaration"); + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/declarations/classifier-declaration"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true); } @Nested @@ -175,7 +255,7 @@ public class FirDiagnosticTestSpecGenerated extends AbstractFirDiagnosticTestSpe public class Class_declaration { @Test public void testAllFilesPresentInClass_declaration() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/declarations/classifier-declaration/class-declaration"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true, "nested-and-inner-classifiers"); + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/declarations/classifier-declaration/class-declaration"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true); } @Nested @@ -517,6 +597,46 @@ public class FirDiagnosticTestSpecGenerated extends AbstractFirDiagnosticTestSpe } } } + + @Nested + @TestMetadata("compiler/tests-spec/testData/diagnostics/linked/declarations/classifier-declaration/class-declaration/nested-and-inner-classifiers") + @TestDataPath("$PROJECT_ROOT") + public class Nested_and_inner_classifiers { + @Test + public void testAllFilesPresentInNested_and_inner_classifiers() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/declarations/classifier-declaration/class-declaration/nested-and-inner-classifiers"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true); + } + } + } + + @Nested + @TestMetadata("compiler/tests-spec/testData/diagnostics/linked/declarations/classifier-declaration/classifier-initialization") + @TestDataPath("$PROJECT_ROOT") + public class Classifier_initialization { + @Test + public void testAllFilesPresentInClassifier_initialization() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/declarations/classifier-declaration/classifier-initialization"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true); + } + } + + @Nested + @TestMetadata("compiler/tests-spec/testData/diagnostics/linked/declarations/classifier-declaration/data-class-declaration") + @TestDataPath("$PROJECT_ROOT") + public class Data_class_declaration { + @Test + public void testAllFilesPresentInData_class_declaration() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/declarations/classifier-declaration/data-class-declaration"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true); + } + } + } + + @Nested + @TestMetadata("compiler/tests-spec/testData/diagnostics/linked/declarations/function-declaration") + @TestDataPath("$PROJECT_ROOT") + public class Function_declaration { + @Test + public void testAllFilesPresentInFunction_declaration() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/declarations/function-declaration"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true); } } @@ -526,7 +646,7 @@ public class FirDiagnosticTestSpecGenerated extends AbstractFirDiagnosticTestSpe public class Property_declaration { @Test public void testAllFilesPresentInProperty_declaration() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/declarations/property-declaration"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true, "property-initialization"); + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/declarations/property-declaration"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true); } @Nested @@ -564,6 +684,26 @@ public class FirDiagnosticTestSpecGenerated extends AbstractFirDiagnosticTestSpe } } } + + @Nested + @TestMetadata("compiler/tests-spec/testData/diagnostics/linked/declarations/property-declaration/property-initialization") + @TestDataPath("$PROJECT_ROOT") + public class Property_initialization { + @Test + public void testAllFilesPresentInProperty_initialization() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/declarations/property-declaration/property-initialization"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true); + } + } + } + + @Nested + @TestMetadata("compiler/tests-spec/testData/diagnostics/linked/declarations/type-alias") + @TestDataPath("$PROJECT_ROOT") + public class Type_alias { + @Test + public void testAllFilesPresentInType_alias() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/declarations/type-alias"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true); + } } } @@ -573,7 +713,7 @@ public class FirDiagnosticTestSpecGenerated extends AbstractFirDiagnosticTestSpe public class Expressions { @Test public void testAllFilesPresentInExpressions() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true, "call-and-property-access-expressions", "function-literals"); + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true); } @Nested @@ -694,6 +834,36 @@ public class FirDiagnosticTestSpecGenerated extends AbstractFirDiagnosticTestSpe } } + @Nested + @TestMetadata("compiler/tests-spec/testData/diagnostics/linked/expressions/call-and-property-access-expressions") + @TestDataPath("$PROJECT_ROOT") + public class Call_and_property_access_expressions { + @Test + public void testAllFilesPresentInCall_and_property_access_expressions() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/call-and-property-access-expressions"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true); + } + + @Nested + @TestMetadata("compiler/tests-spec/testData/diagnostics/linked/expressions/call-and-property-access-expressions/callable-references") + @TestDataPath("$PROJECT_ROOT") + public class Callable_references { + @Test + public void testAllFilesPresentInCallable_references() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/call-and-property-access-expressions/callable-references"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true); + } + } + + @Nested + @TestMetadata("compiler/tests-spec/testData/diagnostics/linked/expressions/call-and-property-access-expressions/navigation-operators") + @TestDataPath("$PROJECT_ROOT") + public class Navigation_operators { + @Test + public void testAllFilesPresentInNavigation_operators() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/call-and-property-access-expressions/navigation-operators"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true); + } + } + } + @Nested @TestMetadata("compiler/tests-spec/testData/diagnostics/linked/expressions/comparison-expressions") @TestDataPath("$PROJECT_ROOT") @@ -1764,6 +1934,26 @@ public class FirDiagnosticTestSpecGenerated extends AbstractFirDiagnosticTestSpe } } + @Nested + @TestMetadata("compiler/tests-spec/testData/diagnostics/linked/expressions/function-literals") + @TestDataPath("$PROJECT_ROOT") + public class Function_literals { + @Test + public void testAllFilesPresentInFunction_literals() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/function-literals"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true); + } + + @Nested + @TestMetadata("compiler/tests-spec/testData/diagnostics/linked/expressions/function-literals/lambda-literals") + @TestDataPath("$PROJECT_ROOT") + public class Lambda_literals { + @Test + public void testAllFilesPresentInLambda_literals() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/function-literals/lambda-literals"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true); + } + } + } + @Nested @TestMetadata("compiler/tests-spec/testData/diagnostics/linked/expressions/jump-expressions") @TestDataPath("$PROJECT_ROOT") @@ -3173,13 +3363,33 @@ public class FirDiagnosticTestSpecGenerated extends AbstractFirDiagnosticTestSpe } } + @Nested + @TestMetadata("compiler/tests-spec/testData/diagnostics/linked/inheritance") + @TestDataPath("$PROJECT_ROOT") + public class Inheritance { + @Test + public void testAllFilesPresentInInheritance() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/inheritance"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true); + } + + @Nested + @TestMetadata("compiler/tests-spec/testData/diagnostics/linked/inheritance/overriding") + @TestDataPath("$PROJECT_ROOT") + public class Overriding { + @Test + public void testAllFilesPresentInOverriding() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/inheritance/overriding"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true); + } + } + } + @Nested @TestMetadata("compiler/tests-spec/testData/diagnostics/linked/overload-resolution") @TestDataPath("$PROJECT_ROOT") public class Overload_resolution { @Test public void testAllFilesPresentInOverload_resolution() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/overload-resolution"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true, "c-level-partition", "determining-function-applicability-for-a-specific-call/rationale"); + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/overload-resolution"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true); } @Nested @@ -4174,6 +4384,16 @@ public class FirDiagnosticTestSpecGenerated extends AbstractFirDiagnosticTestSpe } } + @Nested + @TestMetadata("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/c-level-partition") + @TestDataPath("$PROJECT_ROOT") + public class C_level_partition { + @Test + public void testAllFilesPresentInC_level_partition() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/c-level-partition"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true); + } + } + @Nested @TestMetadata("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/callables-and-invoke-convention") @TestDataPath("$PROJECT_ROOT") @@ -4632,7 +4852,7 @@ public class FirDiagnosticTestSpecGenerated extends AbstractFirDiagnosticTestSpe public class Determining_function_applicability_for_a_specific_call { @Test public void testAllFilesPresentInDetermining_function_applicability_for_a_specific_call() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/determining-function-applicability-for-a-specific-call"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true, "rationale"); + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/determining-function-applicability-for-a-specific-call"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true); } @Nested @@ -4670,6 +4890,16 @@ public class FirDiagnosticTestSpecGenerated extends AbstractFirDiagnosticTestSpe } } } + + @Nested + @TestMetadata("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/determining-function-applicability-for-a-specific-call/rationale") + @TestDataPath("$PROJECT_ROOT") + public class Rationale { + @Test + public void testAllFilesPresentInRationale() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/determining-function-applicability-for-a-specific-call/rationale"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true); + } + } } @Nested @@ -4941,13 +5171,23 @@ public class FirDiagnosticTestSpecGenerated extends AbstractFirDiagnosticTestSpe } } + @Nested + @TestMetadata("compiler/tests-spec/testData/diagnostics/linked/overloadable-operators") + @TestDataPath("$PROJECT_ROOT") + public class Overloadable_operators { + @Test + public void testAllFilesPresentInOverloadable_operators() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/overloadable-operators"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true); + } + } + @Nested @TestMetadata("compiler/tests-spec/testData/diagnostics/linked/statements") @TestDataPath("$PROJECT_ROOT") public class Statements { @Test public void testAllFilesPresentInStatements() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/statements"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true, "assignments/simple-assignments"); + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/statements"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true); } @Nested @@ -4956,7 +5196,7 @@ public class FirDiagnosticTestSpecGenerated extends AbstractFirDiagnosticTestSpe public class Assignments { @Test public void testAllFilesPresentInAssignments() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/statements/assignments"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true, "simple-assignments"); + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/statements/assignments"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true); } @Nested @@ -5068,6 +5308,16 @@ public class FirDiagnosticTestSpecGenerated extends AbstractFirDiagnosticTestSpe } } } + + @Nested + @TestMetadata("compiler/tests-spec/testData/diagnostics/linked/statements/assignments/simple-assignments") + @TestDataPath("$PROJECT_ROOT") + public class Simple_assignments { + @Test + public void testAllFilesPresentInSimple_assignments() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/statements/assignments/simple-assignments"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true); + } + } } @Nested @@ -5211,7 +5461,17 @@ public class FirDiagnosticTestSpecGenerated extends AbstractFirDiagnosticTestSpe public class Type_inference { @Test public void testAllFilesPresentInType_inference() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/type-inference"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true, "local-type-inference", "smart-casts/smart-cast-types"); + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/type-inference"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true); + } + + @Nested + @TestMetadata("compiler/tests-spec/testData/diagnostics/linked/type-inference/local-type-inference") + @TestDataPath("$PROJECT_ROOT") + public class Local_type_inference { + @Test + public void testAllFilesPresentInLocal_type_inference() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/type-inference/local-type-inference"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true); + } } @Nested @@ -5220,7 +5480,7 @@ public class FirDiagnosticTestSpecGenerated extends AbstractFirDiagnosticTestSpe public class Smart_casts { @Test public void testAllFilesPresentInSmart_casts() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/type-inference/smart-casts"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true, "smart-cast-types"); + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/type-inference/smart-casts"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true); } @Nested @@ -5274,6 +5534,16 @@ public class FirDiagnosticTestSpecGenerated extends AbstractFirDiagnosticTestSpe } } } + + @Nested + @TestMetadata("compiler/tests-spec/testData/diagnostics/linked/type-inference/smart-casts/smart-cast-types") + @TestDataPath("$PROJECT_ROOT") + public class Smart_cast_types { + @Test + public void testAllFilesPresentInSmart_cast_types() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/type-inference/smart-casts/smart-cast-types"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true); + } + } } } @@ -5283,7 +5553,7 @@ public class FirDiagnosticTestSpecGenerated extends AbstractFirDiagnosticTestSpe public class Type_system { @Test public void testAllFilesPresentInType_system() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/type-system"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true, "subtyping/subtyping-for-nullable-types", "type-kinds/type-parameters"); + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/type-system"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true); } @Nested @@ -5372,7 +5642,7 @@ public class FirDiagnosticTestSpecGenerated extends AbstractFirDiagnosticTestSpe public class Subtyping { @Test public void testAllFilesPresentInSubtyping() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/type-system/subtyping"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true, "subtyping-for-nullable-types"); + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/type-system/subtyping"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true); } @Nested @@ -5423,6 +5693,16 @@ public class FirDiagnosticTestSpecGenerated extends AbstractFirDiagnosticTestSpe } } + @Nested + @TestMetadata("compiler/tests-spec/testData/diagnostics/linked/type-system/subtyping/subtyping-for-nullable-types") + @TestDataPath("$PROJECT_ROOT") + public class Subtyping_for_nullable_types { + @Test + public void testAllFilesPresentInSubtyping_for_nullable_types() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/type-system/subtyping/subtyping-for-nullable-types"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true); + } + } + @Nested @TestMetadata("compiler/tests-spec/testData/diagnostics/linked/type-system/subtyping/subtyping-rules") @TestDataPath("$PROJECT_ROOT") @@ -5546,7 +5826,7 @@ public class FirDiagnosticTestSpecGenerated extends AbstractFirDiagnosticTestSpe public class Type_kinds { @Test public void testAllFilesPresentInType_kinds() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/type-system/type-kinds"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true, "type-parameters"); + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/type-system/type-kinds"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true); } @Nested @@ -5658,6 +5938,16 @@ public class FirDiagnosticTestSpecGenerated extends AbstractFirDiagnosticTestSpe } } } + + @Nested + @TestMetadata("compiler/tests-spec/testData/diagnostics/linked/type-system/type-kinds/type-parameters") + @TestDataPath("$PROJECT_ROOT") + public class Type_parameters { + @Test + public void testAllFilesPresentInType_parameters() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/type-system/type-kinds/type-parameters"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true); + } + } } } } diff --git a/compiler/testData/diagnostics/tests/extensions/contextReceivers/functionalType.fir.kt b/compiler/testData/diagnostics/tests/extensions/contextReceivers/functionalType.fir.kt index 983d5793dc0..35d11766cd6 100644 --- a/compiler/testData/diagnostics/tests/extensions/contextReceivers/functionalType.fir.kt +++ b/compiler/testData/diagnostics/tests/extensions/contextReceivers/functionalType.fir.kt @@ -8,38 +8,38 @@ class R { context(C) fun R.f1(g: context(C) R.(Param) -> Unit) { - g(this@C, this@R, Param()) + g(this@C, this@R, Param()) } context(C) fun f2(g: context(C) (Param) -> Unit) { - g(this@C, Param()) + g(this@C, Param()) } context(C) fun R.f3(g: context(C) R.() -> Unit) { - g(this@C, this@R) + g(this@C, this@R) } context(C) fun f4(g: context(C) () -> Unit) { - g(this@C) + g(this@C) } fun test() { val lf1: context(C) R.(Param) -> Unit = { _ -> r - c + c } val lf2: context(C) (Param) -> Unit = { _ -> - c + c } val lf3: context(C) R.() -> Unit = { r - c + c } val lf4: context(C) () -> Unit = { - c + c } with(C()) { diff --git a/compiler/testData/diagnostics/tests/extensions/contextReceivers/noExplicitReceiver.fir.kt b/compiler/testData/diagnostics/tests/extensions/contextReceivers/noExplicitReceiver.fir.kt deleted file mode 100644 index 6185382af14..00000000000 --- a/compiler/testData/diagnostics/tests/extensions/contextReceivers/noExplicitReceiver.fir.kt +++ /dev/null @@ -1,18 +0,0 @@ -class A -class B -class C - -context(A) fun B.f() {} -context(A) fun B.g() { - f() -} -context(A) fun C.h() { - f() -} - -fun A.q(b: B) { - with(b) { - f() - } - f() -} \ No newline at end of file diff --git a/compiler/testData/diagnostics/tests/extensions/contextReceivers/noExplicitReceiver.kt b/compiler/testData/diagnostics/tests/extensions/contextReceivers/noExplicitReceiver.kt index 096fe15eb96..6b8a441f2ad 100644 --- a/compiler/testData/diagnostics/tests/extensions/contextReceivers/noExplicitReceiver.kt +++ b/compiler/testData/diagnostics/tests/extensions/contextReceivers/noExplicitReceiver.kt @@ -1,3 +1,5 @@ +// FIR_IDENTICAL + class A class B class C diff --git a/compiler/testData/diagnostics/tests/extensions/contextReceivers/superWithContext.fir.kt b/compiler/testData/diagnostics/tests/extensions/contextReceivers/superWithContext.fir.kt index 845c679ba49..6c7c4e3e8bc 100644 --- a/compiler/testData/diagnostics/tests/extensions/contextReceivers/superWithContext.fir.kt +++ b/compiler/testData/diagnostics/tests/extensions/contextReceivers/superWithContext.fir.kt @@ -13,7 +13,7 @@ class B : A() { inner class C { fun g() { super@B.f() - super@Context.h() + super@Context.h() } } } \ No newline at end of file diff --git a/compiler/testData/diagnostics/tests/extensions/contextReceivers/thisIdentifierInfo.fir.kt b/compiler/testData/diagnostics/tests/extensions/contextReceivers/thisIdentifierInfo.fir.kt index b65f8b5d7d1..2c22138a9b1 100644 --- a/compiler/testData/diagnostics/tests/extensions/contextReceivers/thisIdentifierInfo.fir.kt +++ b/compiler/testData/diagnostics/tests/extensions/contextReceivers/thisIdentifierInfo.fir.kt @@ -1,6 +1,6 @@ class A(val a: String?) context(A) fun f() { - if (this@A.a == null) return - this@A.a.length + if (this@A.a == null) return + this@A.a.length } \ No newline at end of file diff --git a/compiler/testData/diagnostics/tests/extensions/contextReceivers/thisWithCustomLabel.fir.kt b/compiler/testData/diagnostics/tests/extensions/contextReceivers/thisWithCustomLabel.fir.kt index 15f6f7123ad..f60db42652a 100644 --- a/compiler/testData/diagnostics/tests/extensions/contextReceivers/thisWithCustomLabel.fir.kt +++ b/compiler/testData/diagnostics/tests/extensions/contextReceivers/thisWithCustomLabel.fir.kt @@ -3,19 +3,19 @@ class B(val b: Any) class C(val c: Any) context(labelAInt@A, A, labelB@B) fun f() { - this@labelAInt.a.toFloat() - this@A.a.length - this@labelB.b - this@B + this@labelAInt.a.toFloat() + this@A.a.length + this@labelB.b + this@B } context(labelAInt@A, A, labelB@B) val C.p: Int get() { - this@labelAInt.a.toFloat() - this@A.a.length - this@B - this@labelB.b - this@C.c + this@labelAInt.a.toFloat() + this@A.a.length + this@B + this@labelB.b + this@C.c this@p.c this.c return 1 diff --git a/compiler/testData/diagnostics/tests/extensions/contextReceivers/thisWithReceiverLabelsClasses.fir.kt b/compiler/testData/diagnostics/tests/extensions/contextReceivers/thisWithReceiverLabelsClasses.fir.kt index dc65f167b48..c131919fc61 100644 --- a/compiler/testData/diagnostics/tests/extensions/contextReceivers/thisWithReceiverLabelsClasses.fir.kt +++ b/compiler/testData/diagnostics/tests/extensions/contextReceivers/thisWithReceiverLabelsClasses.fir.kt @@ -3,7 +3,7 @@ class A { } context(A) class B { - val prop = x + this@A.x + val prop = x + this@A.x - fun f() = x + this@A.x + fun f() = x + this@A.x } \ No newline at end of file diff --git a/compiler/testData/diagnostics/tests/extensions/contextReceivers/thisWithReceiverLabelsFunctions.fir.kt b/compiler/testData/diagnostics/tests/extensions/contextReceivers/thisWithReceiverLabelsFunctions.fir.kt index 85d27af256b..6dbf584fdf2 100644 --- a/compiler/testData/diagnostics/tests/extensions/contextReceivers/thisWithReceiverLabelsFunctions.fir.kt +++ b/compiler/testData/diagnostics/tests/extensions/contextReceivers/thisWithReceiverLabelsFunctions.fir.kt @@ -3,15 +3,15 @@ class B(val b: Any) class C(val c: Any) context(A, A, B) fun f() { - this@A.a.length - this@B.b + this@A.a.length + this@B.b this } context(A, A, B) fun C.f() { - this@A.a.length - this@B.b - this@C.c + this@A.a.length + this@B.b + this@C.c this@f.c this.c } \ No newline at end of file diff --git a/compiler/testData/diagnostics/tests/extensions/contextReceivers/thisWithReceiverLabelsProperties.fir.kt b/compiler/testData/diagnostics/tests/extensions/contextReceivers/thisWithReceiverLabelsProperties.fir.kt index 1322f1b4559..4e373d5c7da 100644 --- a/compiler/testData/diagnostics/tests/extensions/contextReceivers/thisWithReceiverLabelsProperties.fir.kt +++ b/compiler/testData/diagnostics/tests/extensions/contextReceivers/thisWithReceiverLabelsProperties.fir.kt @@ -4,24 +4,24 @@ class C(val c: Any) context(A, A, B) var p: Int get() { - this@A.a.toDouble() - this@A.a.length - this@B.b + this@A.a.toDouble() + this@A.a.length + this@B.b this return 1 } set(value) { - this@A.a.length - this@B.b + this@A.a.length + this@B.b this field = value } context(A, A, B) val C.p: Int get() { - this@A.a.length - this@B.b - this@C.c + this@A.a.length + this@B.b + this@C.c this@p.c this.c return 1