mirror of
https://github.com/golang/go.git
synced 2025-05-05 23:53:05 +00:00
godoc: Update identifier indexing tests.
R=bradfitz CC=golang-codereviews https://golang.org/cl/48170043
This commit is contained in:
parent
27d851fc2c
commit
26542a8bc5
@ -229,6 +229,13 @@ func checkIdents(t *testing.T, c *Corpus, ix *Index) {
|
||||
want := map[SpotKind]map[string][]Ident{}
|
||||
if c.IndexDocs {
|
||||
want = map[SpotKind]map[string][]Ident{
|
||||
PackageClause: map[string][]Ident{
|
||||
"bar": []Ident{
|
||||
{"/src/pkg/bar", "bar", "bar", "Package bar is another example to test races."},
|
||||
{"/src/pkg/other/bar", "bar", "bar", "Package bar is another bar package."},
|
||||
},
|
||||
"foo": []Ident{{"/src/pkg/foo", "foo", "foo", "Package foo is an example."}},
|
||||
},
|
||||
ConstDecl: map[string][]Ident{
|
||||
"Pi": []Ident{{"/src/pkg/foo", "foo", "Pi", ""}},
|
||||
},
|
||||
|
Loading…
x
Reference in New Issue
Block a user