// Copyright 2000-2022 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.debugger.test.cases

import org.jetbrains.kotlin.idea.debugger.test.AbstractSmartStepIntoTest
import org.jetbrains.kotlin.test.utils.IgnoreTests
import java.nio.file.Paths

abstract class AbstractK2SmartStepIntoTest : AbstractSmartStepIntoTest() {
    override fun isFirPlugin(): Boolean = true

    override fun doTest(path: String) {
        IgnoreTests.runTestIfNotDisabledByFileDirective(
            Paths.get(path),
            IgnoreTests.DIRECTIVES.IGNORE_K2,
            directivePosition = IgnoreTests.DirectivePosition.LAST_LINE_IN_FILE
        ) {
            super.doTest(path)
        }
    }
}