mirror of
https://github.com/golang/go
synced 2024-11-19 09:34:52 -07:00
4ca280b5bd
specifically it uses them for the guru compatability tests This change radically increases the test coverage of the godef tests as it now works for all the jump to definition tests not just the specialized ones. Change-Id: I63547138566ac3de56344dcfddb758ed5f362a06 Reviewed-on: https://go-review.googlesource.com/c/tools/+/174937 Run-TryBot: Ian Cottrell <iancottrell@google.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Rebecca Stambler <rstambler@golang.org>
83 lines
1.4 KiB
Plaintext
83 lines
1.4 KiB
Plaintext
-- Random-definition --
|
|
godef/a/random.go:3:6-12: defined here as func Random() int
|
|
-- Random-definition-guru --
|
|
|
|
-- Random-definition-json --
|
|
{
|
|
"span": {
|
|
"uri": "file://godef/a/random.go",
|
|
"start": {
|
|
"line": 3,
|
|
"column": 6,
|
|
"offset": 16
|
|
},
|
|
"end": {
|
|
"line": 3,
|
|
"column": 12,
|
|
"offset": 22
|
|
}
|
|
},
|
|
"description": "func Random() int"
|
|
}
|
|
|
|
-- Random-definition-json-guru --
|
|
|
|
-- Random-hover --
|
|
func Random() int
|
|
-- Random2-definition --
|
|
godef/a/random.go:8:6-13: defined here as func Random2(y int) int
|
|
-- Random2-definition-guru --
|
|
godef/a/random.go:8:6: defined here as func Random2(y int) int
|
|
|
|
-- Random2-definition-json --
|
|
{
|
|
"span": {
|
|
"uri": "file://godef/a/random.go",
|
|
"start": {
|
|
"line": 8,
|
|
"column": 6,
|
|
"offset": 71
|
|
},
|
|
"end": {
|
|
"line": 8,
|
|
"column": 13,
|
|
"offset": 78
|
|
}
|
|
},
|
|
"description": "func Random2(y int) int"
|
|
}
|
|
|
|
-- Random2-definition-json-guru --
|
|
{
|
|
"objpos": "godef/a/random.go:8:6",
|
|
"desc": "func Random2(y int) int"
|
|
}
|
|
|
|
-- Random2-hover --
|
|
func Random2(y int) int
|
|
-- err-definition --
|
|
godef/a/a.go:14:6-9: defined here as var err error
|
|
-- err-definition-guru --
|
|
godef/a/a.go:14:6: defined here as var err
|
|
|
|
-- err-definition-json --
|
|
{
|
|
"span": {
|
|
"uri": "file://godef/a/a.go",
|
|
"start": {
|
|
"line": 14,
|
|
"column": 6,
|
|
"offset": 201
|
|
},
|
|
"end": {
|
|
"line": 14,
|
|
"column": 9,
|
|
"offset": 204
|
|
}
|
|
},
|
|
"description": "var err error"
|
|
}
|
|
|
|
-- err-hover --
|
|
var err error
|