diff options
author | Russ Cox <rsc@golang.org> | 2009-10-27 22:47:54 -0700 |
---|---|---|
committer | Russ Cox <rsc@golang.org> | 2009-10-27 22:47:54 -0700 |
commit | 7bc607518c0d27a618ddbbf35d1d636da65bc581 (patch) | |
tree | 59cdfb7c6316bd02d9cfe4e298cf6fc40ffc0c4a /src/pkg/path | |
parent | b1f2d1c110b2d85468637ad06218428e17281ca2 (diff) | |
download | golang-7bc607518c0d27a618ddbbf35d1d636da65bc581.tar.gz |
files that are okay from the last gofmt round
R=gri
http://go/go-review/1015011
Diffstat (limited to 'src/pkg/path')
-rw-r--r-- | src/pkg/path/path_test.go | 22 |
1 files changed, 10 insertions, 12 deletions
diff --git a/src/pkg/path/path_test.go b/src/pkg/path/path_test.go index c895effe7..9036cc185 100644 --- a/src/pkg/path/path_test.go +++ b/src/pkg/path/path_test.go @@ -134,9 +134,9 @@ func TestExt(t *testing.T) { } type Node struct { - name string; - entries []*Node; // nil if the entry is a file - mark int; + name string; + entries []*Node; // nil if the entry is a file + mark int; } var tree = &Node{ @@ -156,13 +156,13 @@ var tree = &Node{ &Node{"u", nil, 0}, &Node{"v", nil, 0}, }, - 0 - } + 0, + }, }, - 0 - } + 0, + }, }, - 0 + 0, } func walkTree(n *Node, path string, f func(path string, n *Node)) { @@ -187,9 +187,7 @@ func makeTree(t *testing.T) { } func markTree(n *Node) { - walkTree(n, "", func(path string, n *Node) { - n.mark++; - }); + walkTree(n, "", func(path string, n *Node) { n.mark++ }); } func checkMarks(t *testing.T) { @@ -210,7 +208,7 @@ func mark(name string) { }); } -type TestVisitor struct {} +type TestVisitor struct{} func (v *TestVisitor) VisitDir(path string, d *os.Dir) bool { mark(d.Name); |