aboutsummaryrefslogtreecommitdiff
path: root/internal/lsp/testdata/testy/testy_test.go
blob: 4939f86b50ba0e080ee3a6c199b33b629e121935 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
package testy

import (
	"testing"

	sig "golang.org/x/tools/internal/lsp/signature"
	"golang.org/x/tools/internal/lsp/snippets"
)

func TestSomething(t *testing.T) { //@item(TestSomething, "TestSomething(t *testing.T)", "", "func")
	var x int //@mark(testyX, "x"),diag("x", "compiler", "x declared but not used", "error"),refs("x", testyX)
	a()       //@mark(testyA, "a")
}

func _() {
	_ = snippets.X(nil) //@signature("nil", "X(_ map[sig.Alias]types.CoolAlias) map[sig.Alias]types.CoolAlias", 0)
	var _ sig.Alias
}