Skip to content

Commit d229a61

Browse files
committed
internal/lsp/cmd: re-enable the definition cmd tests
A lot has changed since golang/go#32794 was filed, and we now have many more tests for the command line. Fixes golang/go#32794 Change-Id: Ib268865a2345fd6676b2679bd76197c2d8658a85 Reviewed-on: https://go-review.googlesource.com/c/tools/+/204818 Run-TryBot: Rebecca Stambler <[email protected]> TryBot-Result: Gobot Gobot <[email protected]> Reviewed-by: Ian Cottrell <[email protected]>
1 parent 8dbcdeb commit d229a61

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

internal/lsp/cmd/test/definition.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,6 @@ var godefModes = []godefMode{
3434
}
3535

3636
func (r *runner) Definition(t *testing.T, spn span.Span, d tests.Definition) {
37-
// TODO: https://golang.org/issue/32794.
38-
if !*tests.UpdateGolden {
39-
t.Skip()
40-
}
4137
if d.IsType || d.OnlyHover {
4238
// TODO: support type definition, hover queries
4339
return

internal/lsp/testdata/godef/b/b.go.golden

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ foo/foo.go:1:1-30:16: defined here as myFoo "golang.org/x/tools/internal/lsp/foo
5757
"end": {
5858
"line": 30,
5959
"column": 16,
60-
"offset": 844
60+
"offset": 922
6161
}
6262
},
6363
"description": "myFoo \"golang.org/x/tools/internal/lsp/foo\" //@mark(myFoo, \"myFoo\"),godef(\"foo\", PackageFoo),godef(\"myFoo\", myFoo)"

0 commit comments

Comments
 (0)