Skip to content

Commit c3e7107

Browse files
committed
git cmd structure, adding flavor and acl to create flow, create list flavor endpoint
1 parent b671881 commit c3e7107

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

internal/cmd/git/flavor/list/list_test.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ func TestBuildRequest(t *testing.T) {
198198
func TestOutputResult(t *testing.T) {
199199
type args struct {
200200
outputFormat string
201-
instances []git.Flavor
201+
flavors []git.Flavor
202202
}
203203
tests := []struct {
204204
name string
@@ -211,16 +211,16 @@ func TestOutputResult(t *testing.T) {
211211
wantErr: false,
212212
},
213213
{
214-
name: "set empty instances slice",
214+
name: "set empty flavors slice",
215215
args: args{
216-
instances: []git.Flavor{},
216+
flavors: []git.Flavor{},
217217
},
218218
wantErr: false,
219219
},
220220
{
221-
name: "set empty instances in instances slice",
221+
name: "set empty flavors in flavors slice",
222222
args: args{
223-
instances: []git.Flavor{{}},
223+
flavors: []git.Flavor{{}},
224224
},
225225
wantErr: false,
226226
},
@@ -229,7 +229,7 @@ func TestOutputResult(t *testing.T) {
229229
p.Cmd = NewCmd(&params.CmdParams{Printer: p})
230230
for _, tt := range tests {
231231
t.Run(tt.name, func(t *testing.T) {
232-
if err := outputResult(p, tt.args.outputFormat, tt.args.instances); (err != nil) != tt.wantErr {
232+
if err := outputResult(p, tt.args.outputFormat, tt.args.flavors); (err != nil) != tt.wantErr {
233233
t.Errorf("outputResult() error = %v, wantErr %v", err, tt.wantErr)
234234
}
235235
})

0 commit comments

Comments
 (0)