From 2b268f9724bd034e68bf851dc6fad2104696a2a6 Mon Sep 17 00:00:00 2001 From: Nick Craig-Wood Date: Fri, 28 Feb 2020 16:56:33 +0000 Subject: [PATCH] build: fixup formatting after go1.14 go fmt changes --- cmd/mount2/node.go | 4 ++-- fs/sync/sync_test.go | 8 +++++--- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/cmd/mount2/node.go b/cmd/mount2/node.go index 3f00cdcec..dcf204c1a 100644 --- a/cmd/mount2/node.go +++ b/cmd/mount2/node.go @@ -81,8 +81,8 @@ func (n *Node) Statfs(ctx context.Context, out *fuse.StatfsOut) syscall.Errno { out.Blocks = fsBlocks // Total data blocks in file system. out.Bfree = fsBlocks // Free blocks in file system. out.Bavail = fsBlocks // Free blocks in file system if you're not root. - out.Files = 1E9 // Total files in file system. - out.Ffree = 1E9 // Free files in file system. + out.Files = 1e9 // Total files in file system. + out.Ffree = 1e9 // Free files in file system. out.Bsize = blockSize // Block size out.NameLen = 255 // Maximum file name length? out.Frsize = blockSize // Fragment size, smallest addressable data size in the file system. diff --git a/fs/sync/sync_test.go b/fs/sync/sync_test.go index 093d9e98a..69381fc0f 100644 --- a/fs/sync/sync_test.go +++ b/fs/sync/sync_test.go @@ -1593,9 +1593,11 @@ func testSyncBackupDir(t *testing.T, suffix string, suffixKeepExtension bool) { fstest.CheckItems(t, r.Fremote, file1b, file2, file3a, file1a) } -func TestSyncBackupDir(t *testing.T) { testSyncBackupDir(t, "", false) } -func TestSyncBackupDirWithSuffix(t *testing.T) { testSyncBackupDir(t, ".bak", false) } -func TestSyncBackupDirWithSuffixKeepExtension(t *testing.T) { testSyncBackupDir(t, "-2019-01-01", true) } +func TestSyncBackupDir(t *testing.T) { testSyncBackupDir(t, "", false) } +func TestSyncBackupDirWithSuffix(t *testing.T) { testSyncBackupDir(t, ".bak", false) } +func TestSyncBackupDirWithSuffixKeepExtension(t *testing.T) { + testSyncBackupDir(t, "-2019-01-01", true) +} // Test with Suffix set func testSyncSuffix(t *testing.T, suffix string, suffixKeepExtension bool) {