kittenipc/kitcom/internal/tsgo/fourslash/tests/gen/localFunction_test.go
2025-10-15 10:12:44 +03:00

28 lines
761 B
Go

package fourslash_test
import (
"testing"
"efprojects.com/kitten-ipc/kitcom/internal/tsgo/fourslash"
"efprojects.com/kitten-ipc/kitcom/internal/tsgo/testutil"
)
func TestLocalFunction(t *testing.T) {
t.Parallel()
t.Skip()
defer testutil.RecoverAndFail(t, "Panic on fourslash test")
const content = `function /*1*/foo() {
function /*2*/bar2() {
}
var y = function /*3*/bar3() {
}
}
var x = function /*4*/bar4() {
}`
f := fourslash.NewFourslash(t, nil /*capabilities*/, content)
f.VerifyQuickInfoAt(t, "1", "function foo(): void", "")
f.VerifyQuickInfoAt(t, "2", "(local function) bar2(): void", "")
f.VerifyQuickInfoAt(t, "3", "(local function) bar3(): void", "")
f.VerifyQuickInfoAt(t, "4", "(local function) bar4(): void", "")
}