1
0
mirror of https://github.com/golang/go synced 2024-11-18 08:54: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:
David R. Jenni 2017-11-05 10:25:41 +01:00 committed by Alan Donovan
parent 032dfd515a
commit 9e72de2cfb

View File

@ -370,7 +370,7 @@ func modifiedFiles(t *testing.T, dir string, packages map[string][]string) (resu
file := filepath.Join(pkgDir, strconv.Itoa(i)+".go")
// read file contents and compare to val
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 {
results = append(results, strings.TrimPrefix(dir, file))
}