// Copyright 2000-2025 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.

package org.jetbrains.kotlin.idea.fir.debugger.evaluate;

import com.intellij.testFramework.TestDataPath;
import org.jetbrains.kotlin.idea.base.plugin.KotlinPluginMode;
import org.jetbrains.kotlin.idea.base.test.TestRoot;
import org.jetbrains.kotlin.idea.test.JUnit3RunnerWithInners;
import org.jetbrains.kotlin.idea.test.KotlinTestUtils;
import org.jetbrains.kotlin.test.TestMetadata;
import org.junit.runner.RunWith;

/**
 * This class is generated by {@link org.jetbrains.kotlin.testGenerator.generator.TestGenerator}.
 * DO NOT MODIFY MANUALLY.
 */
@SuppressWarnings("all")
@TestRoot("fir/tests")
@TestDataPath("$CONTENT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public abstract class K2CodeFragmentHighlightingTestGenerated extends AbstractK2CodeFragmentHighlightingTest {
    @RunWith(JUnit3RunnerWithInners.class)
    @TestMetadata("../../idea/tests/testData/checker/codeFragments")
    public static class CodeFragments extends AbstractK2CodeFragmentHighlightingTest {
        @java.lang.Override
        @org.jetbrains.annotations.NotNull
        public final KotlinPluginMode getPluginMode() {
            return KotlinPluginMode.K2;
        }

        private void runTest(String testDataFilePath) throws Exception {
            KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
        }

        @TestMetadata("anonymousObject.kt")
        public void testAnonymousObject() throws Exception {
            runTest("../../idea/tests/testData/checker/codeFragments/anonymousObject.kt");
        }

        @TestMetadata("binaryExpression.kt")
        public void testBinaryExpression() throws Exception {
            runTest("../../idea/tests/testData/checker/codeFragments/binaryExpression.kt");
        }

        @TestMetadata("blockCodeFragment.kt")
        public void testBlockCodeFragment() throws Exception {
            runTest("../../idea/tests/testData/checker/codeFragments/blockCodeFragment.kt");
        }

        @TestMetadata("callExpression.kt")
        public void testCallExpression() throws Exception {
            runTest("../../idea/tests/testData/checker/codeFragments/callExpression.kt");
        }

        @TestMetadata("classHeader.kt")
        public void testClassHeader() throws Exception {
            runTest("../../idea/tests/testData/checker/codeFragments/classHeader.kt");
        }

        @TestMetadata("classHeaderWithTypeArguments.kt")
        public void testClassHeaderWithTypeArguments() throws Exception {
            runTest("../../idea/tests/testData/checker/codeFragments/classHeaderWithTypeArguments.kt");
        }

        @TestMetadata("contextElementAsStatement.kt")
        public void testContextElementAsStatement() throws Exception {
            runTest("../../idea/tests/testData/checker/codeFragments/contextElementAsStatement.kt");
        }

        @TestMetadata("elementAtIfWithoutBraces.kt")
        public void testElementAtIfWithoutBraces() throws Exception {
            runTest("../../idea/tests/testData/checker/codeFragments/elementAtIfWithoutBraces.kt");
        }

        @TestMetadata("elementAtWhenBranch.kt")
        public void testElementAtWhenBranch() throws Exception {
            runTest("../../idea/tests/testData/checker/codeFragments/elementAtWhenBranch.kt");
        }

        @TestMetadata("localVariables.kt")
        public void testLocalVariables() throws Exception {
            runTest("../../idea/tests/testData/checker/codeFragments/localVariables.kt");
        }

        @TestMetadata("localVariablesOnReturn.kt")
        public void testLocalVariablesOnReturn() throws Exception {
            runTest("../../idea/tests/testData/checker/codeFragments/localVariablesOnReturn.kt");
        }

        @TestMetadata("primaryConstructor.kt")
        public void testPrimaryConstructor() throws Exception {
            runTest("../../idea/tests/testData/checker/codeFragments/primaryConstructor.kt");
        }

        @TestMetadata("primaryConstructorLocal.kt")
        public void testPrimaryConstructorLocal() throws Exception {
            runTest("../../idea/tests/testData/checker/codeFragments/primaryConstructorLocal.kt");
        }

        @TestMetadata("privateFunArgumentsResolve.kt")
        public void testPrivateFunArgumentsResolve() throws Exception {
            runTest("../../idea/tests/testData/checker/codeFragments/privateFunArgumentsResolve.kt");
        }

        @TestMetadata("privateFunTypeArguments.kt")
        public void testPrivateFunTypeArguments() throws Exception {
            runTest("../../idea/tests/testData/checker/codeFragments/privateFunTypeArguments.kt");
        }

        @TestMetadata("privateMember.kt")
        public void testPrivateMember() throws Exception {
            runTest("../../idea/tests/testData/checker/codeFragments/privateMember.kt");
        }

        @TestMetadata("privateMembers.kt")
        public void testPrivateMembers() throws Exception {
            runTest("../../idea/tests/testData/checker/codeFragments/privateMembers.kt");
        }

        @TestMetadata("protectedMember.kt")
        public void testProtectedMember() throws Exception {
            runTest("../../idea/tests/testData/checker/codeFragments/protectedMember.kt");
        }

        @TestMetadata("secondaryConstructor.kt")
        public void testSecondaryConstructor() throws Exception {
            runTest("../../idea/tests/testData/checker/codeFragments/secondaryConstructor.kt");
        }

        @TestMetadata("secondaryConstructorWithoutBraces.kt")
        public void testSecondaryConstructorWithoutBraces() throws Exception {
            runTest("../../idea/tests/testData/checker/codeFragments/secondaryConstructorWithoutBraces.kt");
        }

        @TestMetadata("simpleNameExpression.kt")
        public void testSimpleNameExpression() throws Exception {
            runTest("../../idea/tests/testData/checker/codeFragments/simpleNameExpression.kt");
        }

        @TestMetadata("smartCasts.kt")
        public void testSmartCasts() throws Exception {
            runTest("../../idea/tests/testData/checker/codeFragments/smartCasts.kt");
        }

        @TestMetadata("startingFromReturn.kt")
        public void testStartingFromReturn() throws Exception {
            runTest("../../idea/tests/testData/checker/codeFragments/startingFromReturn.kt");
        }

        @TestMetadata("unusedEquals.kt")
        public void testUnusedEquals() throws Exception {
            runTest("../../idea/tests/testData/checker/codeFragments/unusedEquals.kt");
        }

        @TestMetadata("unusedEquals2.kt")
        public void testUnusedEquals2() throws Exception {
            runTest("../../idea/tests/testData/checker/codeFragments/unusedEquals2.kt");
        }

        @TestMetadata("withoutBodyFunction.kt")
        public void testWithoutBodyFunction() throws Exception {
            runTest("../../idea/tests/testData/checker/codeFragments/withoutBodyFunction.kt");
        }

        @TestMetadata("withoutBodyProperty.kt")
        public void testWithoutBodyProperty() throws Exception {
            runTest("../../idea/tests/testData/checker/codeFragments/withoutBodyProperty.kt");
        }
    }

    @RunWith(JUnit3RunnerWithInners.class)
    @TestMetadata("../../idea/tests/testData/checker/codeFragments/imports")
    public static class Imports extends AbstractK2CodeFragmentHighlightingTest {
        @java.lang.Override
        @org.jetbrains.annotations.NotNull
        public final KotlinPluginMode getPluginMode() {
            return KotlinPluginMode.K2;
        }

        private void runTest(String testDataFilePath) throws Exception {
            KotlinTestUtils.runTest(this::doTestWithImport, this, testDataFilePath);
        }

        @TestMetadata("hashMap.kt")
        public void testHashMap() throws Exception {
            runTest("../../idea/tests/testData/checker/codeFragments/imports/hashMap.kt");
        }
    }
}
