mirror of
https://github.com/golang/go
synced 2024-11-18 11:34:45 -07:00
cmd/gorename: fix test failure formatting.
Change-Id: Idbfb356225f4650446bffa80a43cec4679bcd507 Reviewed-on: https://go-review.googlesource.com/75976 Reviewed-by: Alan Donovan <adonovan@google.com>
This commit is contained in:
parent
032dfd515a
commit
9e72de2cfb
@ -370,7 +370,7 @@ func modifiedFiles(t *testing.T, dir string, packages map[string][]string) (resu
|
|||||||
file := filepath.Join(pkgDir, strconv.Itoa(i)+".go")
|
file := filepath.Join(pkgDir, strconv.Itoa(i)+".go")
|
||||||
// read file contents and compare to val
|
// read file contents and compare to val
|
||||||
if contents, err := ioutil.ReadFile(file); err != nil {
|
if contents, err := ioutil.ReadFile(file); err != nil {
|
||||||
t.Fatal("File missing: %s", err)
|
t.Fatalf("File missing: %s", err)
|
||||||
} else if string(contents) != val {
|
} else if string(contents) != val {
|
||||||
results = append(results, strings.TrimPrefix(dir, file))
|
results = append(results, strings.TrimPrefix(dir, file))
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user