diff options
| author | Robert Griesemer <gri@golang.org> | 2009-11-09 21:23:52 -0800 |
|---|---|---|
| committer | Robert Griesemer <gri@golang.org> | 2009-11-09 21:23:52 -0800 |
| commit | 9aad19327eb719775a874f8f18bb15958db1d471 (patch) | |
| tree | c515081857e0b9ad897c6d35b0be64fe4c346688 /src/pkg/os/path_test.go | |
| parent | 073e240233589933c43143c997247c33206bb066 (diff) | |
| download | golang-9aad19327eb719775a874f8f18bb15958db1d471.tar.gz | |
- replaced gofmt expression formatting algorithm with
rsc's algorithm
- applied gofmt -w misc src
- partial CL (last chunk)
R=rsc, r
http://go/go-review/1024041
Diffstat (limited to 'src/pkg/os/path_test.go')
| -rw-r--r-- | src/pkg/os/path_test.go | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/pkg/os/path_test.go b/src/pkg/os/path_test.go index 2dce2c597..0baa90132 100644 --- a/src/pkg/os/path_test.go +++ b/src/pkg/os/path_test.go @@ -25,7 +25,7 @@ func TestMkdirAll(t *testing.T) { } // Make file. - fpath := path+"/file"; + fpath := path + "/file"; _, err = Open(fpath, O_WRONLY|O_CREAT, 0666); if err != nil { t.Fatalf("create %q: %s", fpath, err) @@ -64,8 +64,8 @@ func TestMkdirAll(t *testing.T) { func TestRemoveAll(t *testing.T) { // Work directory. path := "_obj/_TestRemoveAll_"; - fpath := path+"/file"; - dpath := path+"/dir"; + fpath := path + "/file"; + dpath := path + "/dir"; // Make directory with 1 file and remove. if err := MkdirAll(path, 0777); err != nil { @@ -109,7 +109,7 @@ func TestRemoveAll(t *testing.T) { t.Fatalf("MkdirAll %q: %s", dpath, err) } - for _, s := range []string{fpath, dpath+"/file1", path+"/zzz"} { + for _, s := range []string{fpath, dpath + "/file1", path + "/zzz"} { fd, err = Open(s, O_WRONLY|O_CREAT, 0666); if err != nil { t.Fatalf("create %q: %s", s, err) @@ -136,7 +136,7 @@ func TestRemoveAll(t *testing.T) { if err = Chmod(dpath, 0777); err != nil { t.Fatalf("Chmod %q 0777: %s", dpath, err) } - for _, s := range []string{fpath, path+"/zzz"} { + for _, s := range []string{fpath, path + "/zzz"} { if _, err := Lstat(s); err == nil { t.Fatalf("Lstat %q succeeded after partial RemoveAll", s) } |
