aboutsummaryrefslogtreecommitdiffstats
path: root/swarm/api
diff options
context:
space:
mode:
authorferhat elmas <elmas.ferhat@gmail.com>2017-11-08 18:45:52 +0800
committerFelix Lange <fjl@users.noreply.github.com>2017-11-08 18:45:52 +0800
commit9619a610248e9630968ba1d9be8e214b645c9c55 (patch)
tree5844cfbee9a0ac5750dcc803cea461f75969f74e /swarm/api
parentbfdc0fa3622d7c3b421d2f5a6dda5746be41bfde (diff)
downloadgo-tangerine-9619a610248e9630968ba1d9be8e214b645c9c55.tar
go-tangerine-9619a610248e9630968ba1d9be8e214b645c9c55.tar.gz
go-tangerine-9619a610248e9630968ba1d9be8e214b645c9c55.tar.bz2
go-tangerine-9619a610248e9630968ba1d9be8e214b645c9c55.tar.lz
go-tangerine-9619a610248e9630968ba1d9be8e214b645c9c55.tar.xz
go-tangerine-9619a610248e9630968ba1d9be8e214b645c9c55.tar.zst
go-tangerine-9619a610248e9630968ba1d9be8e214b645c9c55.zip
all: gofmt -w -s (#15419)
Diffstat (limited to 'swarm/api')
-rw-r--r--swarm/api/client/client_test.go38
1 files changed, 19 insertions, 19 deletions
diff --git a/swarm/api/client/client_test.go b/swarm/api/client/client_test.go
index edf385dd0..c1d144e37 100644
--- a/swarm/api/client/client_test.go
+++ b/swarm/api/client/client_test.go
@@ -244,25 +244,25 @@ func TestClientFileList(t *testing.T) {
}
tests := map[string][]string{
- "": []string{"dir1/", "dir2/", "file1.txt", "file2.txt"},
- "file": []string{"file1.txt", "file2.txt"},
- "file1": []string{"file1.txt"},
- "file2.txt": []string{"file2.txt"},
- "file12": []string{},
- "dir": []string{"dir1/", "dir2/"},
- "dir1": []string{"dir1/"},
- "dir1/": []string{"dir1/file3.txt", "dir1/file4.txt"},
- "dir1/file": []string{"dir1/file3.txt", "dir1/file4.txt"},
- "dir1/file3.txt": []string{"dir1/file3.txt"},
- "dir1/file34": []string{},
- "dir2/": []string{"dir2/dir3/", "dir2/dir4/", "dir2/file5.txt"},
- "dir2/file": []string{"dir2/file5.txt"},
- "dir2/dir": []string{"dir2/dir3/", "dir2/dir4/"},
- "dir2/dir3/": []string{"dir2/dir3/file6.txt"},
- "dir2/dir4/": []string{"dir2/dir4/file7.txt", "dir2/dir4/file8.txt"},
- "dir2/dir4/file": []string{"dir2/dir4/file7.txt", "dir2/dir4/file8.txt"},
- "dir2/dir4/file7.txt": []string{"dir2/dir4/file7.txt"},
- "dir2/dir4/file78": []string{},
+ "": {"dir1/", "dir2/", "file1.txt", "file2.txt"},
+ "file": {"file1.txt", "file2.txt"},
+ "file1": {"file1.txt"},
+ "file2.txt": {"file2.txt"},
+ "file12": {},
+ "dir": {"dir1/", "dir2/"},
+ "dir1": {"dir1/"},
+ "dir1/": {"dir1/file3.txt", "dir1/file4.txt"},
+ "dir1/file": {"dir1/file3.txt", "dir1/file4.txt"},
+ "dir1/file3.txt": {"dir1/file3.txt"},
+ "dir1/file34": {},
+ "dir2/": {"dir2/dir3/", "dir2/dir4/", "dir2/file5.txt"},
+ "dir2/file": {"dir2/file5.txt"},
+ "dir2/dir": {"dir2/dir3/", "dir2/dir4/"},
+ "dir2/dir3/": {"dir2/dir3/file6.txt"},
+ "dir2/dir4/": {"dir2/dir4/file7.txt", "dir2/dir4/file8.txt"},
+ "dir2/dir4/file": {"dir2/dir4/file7.txt", "dir2/dir4/file8.txt"},
+ "dir2/dir4/file7.txt": {"dir2/dir4/file7.txt"},
+ "dir2/dir4/file78": {},
}
for prefix, expected := range tests {
actual := ls(prefix)