summaryrefslogtreecommitdiff
path: root/src/pkg/path/path_test.go
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2009-09-15 09:41:59 -0700
committerRuss Cox <rsc@golang.org>2009-09-15 09:41:59 -0700
commit0ebfa231d21b255d84cfdb8a618cfe397db6c497 (patch)
tree46eac6aefe26f0b9056bff646d960bcba3d076cf /src/pkg/path/path_test.go
parentc67478eb2cfefebf09d0c648efa24bb9578078ba (diff)
downloadgolang-0ebfa231d21b255d84cfdb8a618cfe397db6c497.tar.gz
more "declared and not used".
the last round omitted := range and only checked 1 out of N vars in a multi-var := R=r OCL=34624 CL=34638
Diffstat (limited to 'src/pkg/path/path_test.go')
-rw-r--r--src/pkg/path/path_test.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/pkg/path/path_test.go b/src/pkg/path/path_test.go
index 386c17c70..22e0b4d39 100644
--- a/src/pkg/path/path_test.go
+++ b/src/pkg/path/path_test.go
@@ -63,7 +63,7 @@ var cleantests = []CleanTest {
}
func TestClean(t *testing.T) {
- for i, test := range cleantests {
+ for _, test := range cleantests {
if s := Clean(test.path); s != test.clean {
t.Errorf("Clean(%q) = %q, want %q", test.path, s, test.clean);
}
@@ -83,7 +83,7 @@ var splittests = []SplitTest {
}
func TestSplit(t *testing.T) {
- for i, test := range splittests {
+ for _, test := range splittests {
if d, f := Split(test.path); d != test.dir || f != test.file {
t.Errorf("Split(%q) = %q, %q, want %q, %q", test.path, d, f, test.dir, test.file);
}
@@ -105,7 +105,7 @@ var jointests = []JoinTest {
}
func TestJoin(t *testing.T) {
- for i, test := range jointests {
+ for _, test := range jointests {
if p := Join(test.dir, test.file); p != test.path {
t.Errorf("Join(%q, %q) = %q, want %q", test.dir, test.file, p, test.path);
}
@@ -125,7 +125,7 @@ var exttests = []ExtTest {
}
func TestExt(t *testing.T) {
- for i, test := range exttests {
+ for _, test := range exttests {
if x := Ext(test.path); x != test.ext {
t.Errorf("Ext(%q) = %q, want %q", test.path, x, test.ext);
}