mirror of
https://github.com/goreleaser/goreleaser.git
synced 2025-01-30 04:50:45 +02:00
chore: gofumpt
Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
This commit is contained in:
parent
b97f29f1d7
commit
7f40922ea2
@ -919,7 +919,7 @@ func TestFindFiles(t *testing.T) {
|
||||
Info: config.FileInfo{
|
||||
Owner: "carlos",
|
||||
Group: "users",
|
||||
Mode: 0755,
|
||||
Mode: 0o755,
|
||||
MTime: now,
|
||||
},
|
||||
},
|
||||
@ -933,7 +933,7 @@ func TestFindFiles(t *testing.T) {
|
||||
Info: config.FileInfo{
|
||||
Owner: "carlos",
|
||||
Group: "users",
|
||||
Mode: 0755,
|
||||
Mode: 0o755,
|
||||
MTime: now,
|
||||
},
|
||||
},
|
||||
@ -943,7 +943,7 @@ func TestFindFiles(t *testing.T) {
|
||||
Info: config.FileInfo{
|
||||
Owner: "carlos",
|
||||
Group: "users",
|
||||
Mode: 0755,
|
||||
Mode: 0o755,
|
||||
MTime: now,
|
||||
},
|
||||
},
|
||||
@ -953,7 +953,7 @@ func TestFindFiles(t *testing.T) {
|
||||
Info: config.FileInfo{
|
||||
Owner: "carlos",
|
||||
Group: "users",
|
||||
Mode: 0755,
|
||||
Mode: 0o755,
|
||||
MTime: now,
|
||||
},
|
||||
},
|
||||
@ -969,7 +969,7 @@ func TestFindFiles(t *testing.T) {
|
||||
Info: config.FileInfo{
|
||||
Owner: "carlos",
|
||||
Group: "users",
|
||||
Mode: 0755,
|
||||
Mode: 0o755,
|
||||
MTime: now,
|
||||
},
|
||||
},
|
||||
@ -983,7 +983,7 @@ func TestFindFiles(t *testing.T) {
|
||||
Info: config.FileInfo{
|
||||
Owner: "carlos",
|
||||
Group: "users",
|
||||
Mode: 0755,
|
||||
Mode: 0o755,
|
||||
MTime: now,
|
||||
},
|
||||
},
|
||||
@ -993,7 +993,7 @@ func TestFindFiles(t *testing.T) {
|
||||
Info: config.FileInfo{
|
||||
Owner: "carlos",
|
||||
Group: "users",
|
||||
Mode: 0755,
|
||||
Mode: 0o755,
|
||||
MTime: now,
|
||||
},
|
||||
},
|
||||
|
@ -107,7 +107,7 @@ func TestTarGzFileInfo(t *testing.T) {
|
||||
Source: "../testdata/foo.txt",
|
||||
Destination: "nope.txt",
|
||||
Info: config.FileInfo{
|
||||
Mode: 0755,
|
||||
Mode: 0o755,
|
||||
Owner: "carlos",
|
||||
Group: "root",
|
||||
MTime: now,
|
||||
@ -137,7 +137,7 @@ func TestTarGzFileInfo(t *testing.T) {
|
||||
found++
|
||||
require.Equal(t, "nope.txt", next.Name)
|
||||
require.Equal(t, now, next.ModTime)
|
||||
require.Equal(t, fs.FileMode(0755), next.FileInfo().Mode())
|
||||
require.Equal(t, fs.FileMode(0o755), next.FileInfo().Mode())
|
||||
require.Equal(t, "carlos", next.Uname)
|
||||
require.Equal(t, 0, next.Uid)
|
||||
require.Equal(t, "root", next.Gname)
|
||||
|
@ -106,7 +106,7 @@ func TestTarXzFileInfo(t *testing.T) {
|
||||
Source: "../testdata/foo.txt",
|
||||
Destination: "nope.txt",
|
||||
Info: config.FileInfo{
|
||||
Mode: 0755,
|
||||
Mode: 0o755,
|
||||
Owner: "carlos",
|
||||
Group: "root",
|
||||
MTime: now,
|
||||
@ -135,7 +135,7 @@ func TestTarXzFileInfo(t *testing.T) {
|
||||
found++
|
||||
require.Equal(t, "nope.txt", next.Name)
|
||||
require.Equal(t, now, next.ModTime)
|
||||
require.Equal(t, fs.FileMode(0755), next.FileInfo().Mode())
|
||||
require.Equal(t, fs.FileMode(0o755), next.FileInfo().Mode())
|
||||
require.Equal(t, "carlos", next.Uname)
|
||||
require.Equal(t, 0, next.Uid)
|
||||
require.Equal(t, "root", next.Gname)
|
||||
|
@ -96,7 +96,7 @@ func TestZipFileInfo(t *testing.T) {
|
||||
Source: "../testdata/foo.txt",
|
||||
Destination: "nope.txt",
|
||||
Info: config.FileInfo{
|
||||
Mode: 0755,
|
||||
Mode: 0o755,
|
||||
Owner: "carlos",
|
||||
Group: "root",
|
||||
MTime: now,
|
||||
@ -120,6 +120,6 @@ func TestZipFileInfo(t *testing.T) {
|
||||
for _, next := range r.File {
|
||||
require.Equal(t, "nope.txt", next.Name)
|
||||
require.Equal(t, now.Unix(), next.Modified.Unix())
|
||||
require.Equal(t, fs.FileMode(0755), next.FileInfo().Mode())
|
||||
require.Equal(t, fs.FileMode(0o755), next.FileInfo().Mode())
|
||||
}
|
||||
}
|
||||
|
@ -92,7 +92,7 @@ files:
|
||||
Info: FileInfo{
|
||||
Owner: "carlos",
|
||||
Group: "users",
|
||||
Mode: 0644,
|
||||
Mode: 0o644,
|
||||
MTime: now,
|
||||
},
|
||||
},
|
||||
|
Loading…
x
Reference in New Issue
Block a user