format go with gofumpt (with -lang=1.19)

Looks like the linter uses an explicit -lang, which (for go1.19)
results in some additional formatting for octal values.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
Sebastiaan van Stijn
2022-09-30 19:13:22 +02:00
parent 65438e008c
commit 616124525e
35 changed files with 74 additions and 74 deletions

View File

@ -118,7 +118,7 @@ func TestSetConfigsWithCredSpecAndConfigs(t *testing.T) {
// these are the default field values
UID: "0",
GID: "0",
Mode: 0444,
Mode: 0o444,
},
}), "expected configRefs to contain bar config")
}
@ -229,7 +229,7 @@ func TestSetConfigsOnlyConfigs(t *testing.T) {
// these are the default field values
UID: "0",
GID: "0",
Mode: 0444,
Mode: 0o444,
},
}))
}

View File

@ -1066,7 +1066,7 @@ func TestUpdateGetUpdatedConfigs(t *testing.T) {
Name: "foo",
UID: "0",
GID: "0",
Mode: 0444,
Mode: 0o444,
},
},
"barRef": {
@ -1076,7 +1076,7 @@ func TestUpdateGetUpdatedConfigs(t *testing.T) {
Name: "bar",
UID: "0",
GID: "0",
Mode: 0444,
Mode: 0o444,
},
},
"bazRef": {
@ -1086,7 +1086,7 @@ func TestUpdateGetUpdatedConfigs(t *testing.T) {
Name: "baz",
UID: "0",
GID: "0",
Mode: 0444,
Mode: 0o444,
},
},
"credRef": {