From 26542a8bc52b7ee282bd109f43319d68c2da059c Mon Sep 17 00:00:00 2001 From: Brad Garcia Date: Mon, 6 Jan 2014 14:53:03 -0500 Subject: [PATCH] godoc: Update identifier indexing tests. R=bradfitz CC=golang-codereviews https://golang.org/cl/48170043 --- godoc/index_test.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/godoc/index_test.go b/godoc/index_test.go index e10460d5..9a71a47e 100644 --- a/godoc/index_test.go +++ b/godoc/index_test.go @@ -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", ""}}, },