override fun getInfo()

in src/main/kotlin/com/pestphp/pest/PestTestRunLineMarkerProvider.kt [19:38]


    override fun getInfo(leaf: PsiElement): Info? {
        if (!leaf.containingFile.isPestTestFile(isSmart = true)) {
            return null
        }

        // Handle icons if the reference is a pest test.
        if (isPestTestReference(leaf)) {
            return getPestTest(
                leaf.parent as FunctionReferenceImpl,
                leaf.project,
            )
        }

        // Handle icon for running all tests in the file.
        if (PhpPsiUtil.isOfType(leaf, PhpTokenTypes.PHP_OPENING_TAG)) {
            return withExecutorActions(Run_run)
        }

        return null
    }