// 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.k2.inheritorsSearch;

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("kotlin.searching/kotlin.searching.test.k2")
@TestDataPath("$CONTENT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public abstract class KotlinDefinitionsSearcherMultiplatformTestGenerated extends AbstractKotlinDefinitionsSearcherMultiplatformTest {
    @RunWith(JUnit3RunnerWithInners.class)
    @TestMetadata("../testData/multiplatform/definitionsSearch/kotlinClass")
    public static class KotlinClass extends AbstractKotlinDefinitionsSearcherMultiplatformTest {
        @java.lang.Override
        @org.jetbrains.annotations.NotNull
        public final KotlinPluginMode getPluginMode() {
            return KotlinPluginMode.K2;
        }

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

        @TestMetadata("obj.kt")
        public void testObj() throws Exception {
            runTest("../testData/multiplatform/definitionsSearch/kotlinClass/obj.kt");
        }

        @TestMetadata("simple.kt")
        public void testSimple() throws Exception {
            runTest("../testData/multiplatform/definitionsSearch/kotlinClass/simple.kt");
        }
    }

    @RunWith(JUnit3RunnerWithInners.class)
    @TestMetadata("../testData/multiplatform/definitionsSearch/kotlinCallable")
    public static class KotlinCallable extends AbstractKotlinDefinitionsSearcherMultiplatformTest {
        @java.lang.Override
        @org.jetbrains.annotations.NotNull
        public final KotlinPluginMode getPluginMode() {
            return KotlinPluginMode.K2;
        }

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

        @TestMetadata("property.kt")
        public void testProperty() throws Exception {
            runTest("../testData/multiplatform/definitionsSearch/kotlinCallable/property.kt");
        }

        @TestMetadata("simple.kt")
        public void testSimple() throws Exception {
            runTest("../testData/multiplatform/definitionsSearch/kotlinCallable/simple.kt");
        }
    }
}
