Skip to content

Commit e246d5c

Browse files
committed
Linting issues fixed
1 parent a507063 commit e246d5c

File tree

1 file changed

+29
-29
lines changed

1 file changed

+29
-29
lines changed

hack/tools/release/notes/list_test.go

+29-29
Original file line numberDiff line numberDiff line change
@@ -85,106 +85,106 @@ func Test_githubFromToPRLister_listPRs(t *testing.T) {
8585
{
8686
name: "Successful PR Listing",
8787
fields: &githubFromToPRLister{
88-
client: &githubClient{
89-
repo: "kubernetes-sigs/kind",
88+
client: &githubClient{
89+
repo: "kubernetes-sigs/kind",
9090
},
9191
fromRef: ref{
9292
reType: "tags",
93-
value: "v0.26.0",
93+
value: "v0.26.0",
9494
},
9595
toRef: ref{
9696
reType: "tags",
97-
value: "v0.27.0",
97+
value: "v0.27.0",
9898
},
99-
branch: "main",
99+
branch: "main",
100100
},
101101
args: ref{
102102
reType: "tags",
103-
value: "v0.26.0",
103+
value: "v0.26.0",
104104
},
105105
wantErr: false,
106106
},
107107
{
108108
name: "Setting previousReleaseRef.value blank - should use toRef and fromRef from fields",
109109
fields: &githubFromToPRLister{
110-
client: &githubClient{
111-
repo: "kubernetes-sigs/kind",
110+
client: &githubClient{
111+
repo: "kubernetes-sigs/kind",
112112
},
113113
fromRef: ref{
114114
reType: "tags",
115-
value: "v0.26.0",
115+
value: "v0.26.0",
116116
},
117117
toRef: ref{
118118
reType: "tags",
119-
value: "v0.27.0",
119+
value: "v0.27.0",
120120
},
121-
branch: "main",
121+
branch: "main",
122122
},
123123
args: ref{
124124
reType: "tags",
125-
value: "",
125+
value: "",
126126
},
127127
wantErr: false,
128128
},
129129
{
130130
name: "Create PR List when fromRef is not set",
131131
fields: &githubFromToPRLister{
132-
client: &githubClient{
133-
repo: "kubernetes-sigs/kind",
132+
client: &githubClient{
133+
repo: "kubernetes-sigs/kind",
134134
},
135135
toRef: ref{
136136
reType: "tags",
137-
value: "v0.27.0",
137+
value: "v0.27.0",
138138
},
139-
branch: "main",
139+
branch: "main",
140140
},
141141
args: ref{
142142
reType: "tags",
143-
value: "v0.26.0",
143+
value: "v0.26.0",
144144
},
145145
wantErr: false,
146146
},
147147
{
148148
name: "Fail when previousReleaseRef.value is set to invalid",
149149
fields: &githubFromToPRLister{
150-
client: &githubClient{
151-
repo: "kubernetes-sigs/kind",
150+
client: &githubClient{
151+
repo: "kubernetes-sigs/kind",
152152
},
153153
fromRef: ref{
154154
reType: "tags",
155-
value: "v0.26.0",
155+
value: "v0.26.0",
156156
},
157157
toRef: ref{
158158
reType: "tags",
159-
value: "v0.27.0",
159+
value: "v0.27.0",
160160
},
161-
branch: "main",
161+
branch: "main",
162162
},
163163
args: ref{
164164
reType: "tags",
165-
value: "invalid",
165+
value: "invalid",
166166
},
167167
wantErr: true,
168168
},
169169
{
170170
name: "Fail when toRef and previousReleaseRef set blank",
171171
fields: &githubFromToPRLister{
172-
client: &githubClient{
173-
repo: "kubernetes-sigs/kind",
172+
client: &githubClient{
173+
repo: "kubernetes-sigs/kind",
174174
},
175175
fromRef: ref{
176176
reType: "tags",
177-
value: "v0.26.0",
177+
value: "v0.26.0",
178178
},
179179
toRef: ref{
180180
reType: "tags",
181-
value: "",
181+
value: "",
182182
},
183-
branch: "main",
183+
branch: "main",
184184
},
185185
args: ref{
186186
reType: "tags",
187-
value: "",
187+
value: "",
188188
},
189189
wantErr: true,
190190
},

0 commit comments

Comments
 (0)