x/tools/godoc: gofmt -s -w

Change-Id: Ic14a0ec2782b52a0dfe7e892af9f5549f92cb2ec
Reviewed-on: https://go-review.googlesource.com/32791
Reviewed-by: Alan Donovan <adonovan@google.com>
This commit is contained in:
David R. Jenni 2016-11-04 19:52:17 +01:00 committed by Alan Donovan
parent cc429c273c
commit 5984771995
2 changed files with 20 additions and 20 deletions

View File

@ -187,10 +187,10 @@ func checkPackagePath(t *testing.T, c *Corpus, ix *Index) {
want := map[string]map[string]bool{} want := map[string]map[string]bool{}
if c.IndexDocs || c.IndexGoCode || c.IndexFullText { if c.IndexDocs || c.IndexGoCode || c.IndexFullText {
want = map[string]map[string]bool{ want = map[string]map[string]bool{
"foo": map[string]bool{ "foo": {
"foo": true, "foo": true,
}, },
"bar": map[string]bool{ "bar": {
"bar": true, "bar": true,
"other/bar": true, "other/bar": true,
}, },
@ -207,13 +207,13 @@ func checkExports(t *testing.T, c *Corpus, ix *Index) {
want := map[string]map[string]SpotKind{} want := map[string]map[string]SpotKind{}
if c.IndexGoCode { if c.IndexGoCode {
want = map[string]map[string]SpotKind{ want = map[string]map[string]SpotKind{
"foo": map[string]SpotKind{ "foo": {
"Pi": ConstDecl, "Pi": ConstDecl,
"Foos": VarDecl, "Foos": VarDecl,
"Foo": TypeDecl, "Foo": TypeDecl,
"New": FuncDecl, "New": FuncDecl,
}, },
"other/bar": map[string]SpotKind{ "other/bar": {
"X": FuncDecl, "X": FuncDecl,
}, },
} }
@ -229,26 +229,26 @@ func checkIdents(t *testing.T, c *Corpus, ix *Index) {
want := map[SpotKind]map[string][]Ident{} want := map[SpotKind]map[string][]Ident{}
if c.IndexDocs { if c.IndexDocs {
want = map[SpotKind]map[string][]Ident{ want = map[SpotKind]map[string][]Ident{
PackageClause: map[string][]Ident{ PackageClause: {
"bar": []Ident{ "bar": {
{"bar", "bar", "bar", "Package bar is another example to test races."}, {"bar", "bar", "bar", "Package bar is another example to test races."},
{"other/bar", "bar", "bar", "Package bar is another bar package."}, {"other/bar", "bar", "bar", "Package bar is another bar package."},
}, },
"foo": []Ident{{"foo", "foo", "foo", "Package foo is an example."}}, "foo": {{"foo", "foo", "foo", "Package foo is an example."}},
"other": []Ident{{"other/bar", "bar", "bar", "Package bar is another bar package."}}, "other": {{"other/bar", "bar", "bar", "Package bar is another bar package."}},
}, },
ConstDecl: map[string][]Ident{ ConstDecl: {
"Pi": []Ident{{"foo", "foo", "Pi", ""}}, "Pi": {{"foo", "foo", "Pi", ""}},
}, },
VarDecl: map[string][]Ident{ VarDecl: {
"Foos": []Ident{{"foo", "foo", "Foos", ""}}, "Foos": {{"foo", "foo", "Foos", ""}},
}, },
TypeDecl: map[string][]Ident{ TypeDecl: {
"Foo": []Ident{{"foo", "foo", "Foo", "Foo is stuff."}}, "Foo": {{"foo", "foo", "Foo", "Foo is stuff."}},
}, },
FuncDecl: map[string][]Ident{ FuncDecl: {
"New": []Ident{{"foo", "foo", "New", ""}}, "New": {{"foo", "foo", "New", ""}},
"X": []Ident{{"other/bar", "bar", "X", ""}}, "X": {{"other/bar", "bar", "X", ""}},
}, },
} }
} }

View File

@ -26,9 +26,9 @@ func TestNewNameSpace(t *testing.T) {
t2.Bind("/fs1", mount, "/", vfs.BindReplace) t2.Bind("/fs1", mount, "/", vfs.BindReplace)
testcases := map[string][]bool{ testcases := map[string][]bool{
"/": []bool{false, true}, "/": {false, true},
"/fs1": []bool{true, true}, "/fs1": {true, true},
"/fs1/fs1file": []bool{true, true}, "/fs1/fs1file": {true, true},
} }
fss := []vfs.FileSystem{t1, t2} fss := []vfs.FileSystem{t1, t2}