diff options
author | Patrick Steinhardt <psteinhardt@gitlab.com> | 2021-08-31 08:53:45 +0300 |
---|---|---|
committer | Patrick Steinhardt <psteinhardt@gitlab.com> | 2021-08-31 08:53:45 +0300 |
commit | da12f147d256dadc5da02ef039aa83c6e13ab2ac (patch) | |
tree | 82c5886ad32e3e20bf3fe104df3a182fb4908e1e /internal/backup/backup_test.go | |
parent | 1fd682939f5b2697e80dbe70cca057887ec2077d (diff) |
global: Reformat sources with gofumpt
Reformat sources with gofumpt.
Diffstat (limited to 'internal/backup/backup_test.go')
-rw-r--r-- | internal/backup/backup_test.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/internal/backup/backup_test.go b/internal/backup/backup_test.go index aac05caac..081d21f28 100644 --- a/internal/backup/backup_test.go +++ b/internal/backup/backup_test.go @@ -100,11 +100,11 @@ func TestManager_Create(t *testing.T) { dirInfo, err := os.Stat(filepath.Dir(bundlePath)) require.NoError(t, err) - require.Equal(t, os.FileMode(0700), dirInfo.Mode().Perm(), "expecting restricted directory permissions") + require.Equal(t, os.FileMode(0o700), dirInfo.Mode().Perm(), "expecting restricted directory permissions") bundleInfo, err := os.Stat(bundlePath) require.NoError(t, err) - require.Equal(t, os.FileMode(0600), bundleInfo.Mode().Perm(), "expecting restricted file permissions") + require.Equal(t, os.FileMode(0o600), bundleInfo.Mode().Perm(), "expecting restricted file permissions") output := gittest.Exec(t, cfg, "-C", repoPath, "bundle", "verify", bundlePath) require.Contains(t, string(output), "The bundle records a complete history") @@ -244,7 +244,7 @@ func TestResolveSink(t *testing.T) { "token_uri": "https://accounts.google.com/o/oauth2/token", "auth_provider_x509_cert_url": "https://www.googleapis.com/oauth2/v1/certs", "client_x509_cert_url": "https://www.googleapis.com/robot/v1/metadata/x509/303724477529-compute%40developer.gserviceaccount.com" -}`), 0655)) +}`), 0o655)) for _, tc := range []struct { desc string |