aboutsummaryrefslogtreecommitdiff
path: root/gopls/internal/lsp/testdata/testy/testy_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'gopls/internal/lsp/testdata/testy/testy_test.go')
-rw-r--r--gopls/internal/lsp/testdata/testy/testy_test.go18
1 files changed, 18 insertions, 0 deletions
diff --git a/gopls/internal/lsp/testdata/testy/testy_test.go b/gopls/internal/lsp/testdata/testy/testy_test.go
new file mode 100644
index 000000000..a7e897840
--- /dev/null
+++ b/gopls/internal/lsp/testdata/testy/testy_test.go
@@ -0,0 +1,18 @@
+package testy
+
+import (
+ "testing"
+
+ sig "golang.org/lsptests/signature"
+ "golang.org/lsptests/snippets"
+)
+
+func TestSomething(t *testing.T) { //@item(TestSomething, "TestSomething(t *testing.T)", "", "func")
+ var x int //@mark(testyX, "x"),diag("x", "compiler", "x declared (and|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
+}