23 lines
652 B
Go
23 lines
652 B
Go
package fourslash_test
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"efprojects.com/kitten-ipc/kitcom/internal/tsgo/fourslash"
|
|
"efprojects.com/kitten-ipc/kitcom/internal/tsgo/testutil"
|
|
)
|
|
|
|
func TestFindAllRefsUnresolvedSymbols1(t *testing.T) {
|
|
t.Parallel()
|
|
|
|
defer testutil.RecoverAndFail(t, "Panic on fourslash test")
|
|
const content = `let a: /*a0*/Bar;
|
|
let b: /*a1*/Bar<string>;
|
|
let c: /*a2*/Bar<string, number>;
|
|
let d: /*b0*/Bar./*c0*/X;
|
|
let e: /*b1*/Bar./*c1*/X<string>;
|
|
let f: /*b2*/Bar./*d0*/X./*e0*/Y;`
|
|
f := fourslash.NewFourslash(t, nil /*capabilities*/, content)
|
|
f.VerifyBaselineFindAllReferences(t, "a0", "a1", "a2", "b0", "b1", "b2", "c0", "c1", "d0", "e0")
|
|
}
|