diff options
author | Russ Cox <rsc@golang.org> | 2009-10-08 15:14:54 -0700 |
---|---|---|
committer | Russ Cox <rsc@golang.org> | 2009-10-08 15:14:54 -0700 |
commit | 79244ca7360f32db37710ab74c72214146397edf (patch) | |
tree | 0f7c5551b95f4e5dd567a4ac3233afeb0da61e99 /src/pkg/path/path_test.go | |
parent | 71b9ef8c235f052495a1fb29bd3945f7094998a9 (diff) | |
download | golang-79244ca7360f32db37710ab74c72214146397edf.tar.gz |
more lgtm files from gofmt
R=gri
OCL=35485
CL=35488
Diffstat (limited to 'src/pkg/path/path_test.go')
-rw-r--r-- | src/pkg/path/path_test.go | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/src/pkg/path/path_test.go b/src/pkg/path/path_test.go index 22e0b4d39..c6f18e595 100644 --- a/src/pkg/path/path_test.go +++ b/src/pkg/path/path_test.go @@ -5,14 +5,14 @@ package path import ( - "testing" + "testing"; ) type CleanTest struct { - path, clean string + path, clean string; } -var cleantests = []CleanTest { +var cleantests = []CleanTest{ // Already clean CleanTest{"", "."}, CleanTest{"abc", "abc"}, @@ -71,10 +71,10 @@ func TestClean(t *testing.T) { } type SplitTest struct { - path, dir, file string + path, dir, file string; } -var splittests = []SplitTest { +var splittests = []SplitTest{ SplitTest{"a/b", "a/", "b"}, SplitTest{"a/b/", "a/b/", ""}, SplitTest{"a/", "a/", ""}, @@ -91,10 +91,10 @@ func TestSplit(t *testing.T) { } type JoinTest struct { - dir, file, path string + dir, file, path string; } -var jointests = []JoinTest { +var jointests = []JoinTest{ JoinTest{"a", "b", "a/b"}, JoinTest{"a", "", "a"}, JoinTest{"", "b", "b"}, @@ -113,10 +113,10 @@ func TestJoin(t *testing.T) { } type ExtTest struct { - path, ext string + path, ext string; } -var exttests = []ExtTest { +var exttests = []ExtTest{ ExtTest{"path.go", ".go"}, ExtTest{"path.pb.go", ".go"}, ExtTest{"a.dir/b", ""}, @@ -131,4 +131,3 @@ func TestExt(t *testing.T) { } } } - |