Skip to content

Commit 32d2f11

Browse files
style(api,operator): gofmt test case-table struct alignment
gofmt -w on the two touched test files: the case-table struct fields in rest_helmrelease_spec_test.go and main_test.go were misaligned, and main_test.go carried a trailing blank line. CI runs no gofmt gate (pre-commit only runs make generate), so this would otherwise land unformatted. Address review feedback from lexfrei. Assisted-By: Claude <[email protected]> Signed-off-by: Myasnikov Daniil <[email protected]>
1 parent b2078de commit 32d2f11

2 files changed

Lines changed: 11 additions & 12 deletions

File tree

‎cmd/cozystack-operator/main_test.go‎

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -139,11 +139,11 @@ func TestInstallPlatformPackageSource_Updates(t *testing.T) {
139139

140140
func TestParsePlatformSourceURL(t *testing.T) {
141141
tests := []struct {
142-
name string
143-
url string
144-
wantType string
145-
wantURL string
146-
wantErr bool
142+
name string
143+
url string
144+
wantType string
145+
wantURL string
146+
wantErr bool
147147
}{
148148
{
149149
name: "OCI URL",
@@ -572,4 +572,3 @@ func TestGenerateGitRepository_InvalidRef(t *testing.T) {
572572
t.Fatal("expected error for invalid Git ref key, got nil")
573573
}
574574
}
575-

‎pkg/registry/apps/application/rest_helmrelease_spec_test.go‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -169,12 +169,12 @@ func TestConvertApplicationToHelmRelease_ZeroMaxHistory(t *testing.T) {
169169
// checked symmetric globals.
170170
func TestConvertApplicationToHelmRelease_PerAppTimeoutOverridesGlobal(t *testing.T) {
171171
cases := []struct {
172-
name string
173-
globalInstall time.Duration
174-
globalUpgrade time.Duration
175-
override time.Duration
176-
wantInstall time.Duration
177-
wantUpgrade time.Duration
172+
name string
173+
globalInstall time.Duration
174+
globalUpgrade time.Duration
175+
override time.Duration
176+
wantInstall time.Duration
177+
wantUpgrade time.Duration
178178
}{
179179
{
180180
name: "symmetric globals, override wins",

0 commit comments

Comments
 (0)