Fix formatting for gofmt with Go 1.11

This commit is contained in:
Alexander Neumann 2018-08-01 23:56:11 +02:00
parent 16e20676b6
commit aaff8803ef

View file

@ -194,12 +194,12 @@ func TestTestWalkFiles(t *testing.T) {
}, },
}, },
want: map[string]string{ want: map[string]string{
"foo": "<File>", "foo": "<File>",
"subdir": "<Dir>", "subdir": "<Dir>",
filepath.FromSlash("subdir/subfile"): "<File>", filepath.FromSlash("subdir/subfile"): "<File>",
"x": "<Dir>", "x": "<Dir>",
filepath.FromSlash("x/y"): "<Dir>", filepath.FromSlash("x/y"): "<Dir>",
filepath.FromSlash("x/y/link"): "<Symlink>", filepath.FromSlash("x/y/link"): "<Symlink>",
}, },
}, },
} }
@ -373,7 +373,7 @@ func TestTestEnsureSnapshot(t *testing.T) {
}{ }{
{ {
files: map[string]interface{}{ files: map[string]interface{}{
"foo": TestFile{Content: "foo"}, "foo": TestFile{Content: "foo"},
filepath.FromSlash("subdir/subfile"): TestFile{Content: "bar"}, filepath.FromSlash("subdir/subfile"): TestFile{Content: "bar"},
filepath.FromSlash("x/y/link"): TestSymlink{Target: filepath.FromSlash("../../foo")}, filepath.FromSlash("x/y/link"): TestSymlink{Target: filepath.FromSlash("../../foo")},
}, },