Skip to content

Commit 0cddf11

Browse files
committed
TestRefSelections(): use git.ConfigEntry to store config settings
1 parent 544cca0 commit 0cddf11

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

git_sizer_test.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ func TestRefSelections(t *testing.T) {
151151
for i, p := range []struct {
152152
name string
153153
args []string
154-
config [][2]string
154+
config []git.ConfigEntry
155155
}{
156156
{ // 0
157157
name: "no arguments",
@@ -230,14 +230,14 @@ func TestRefSelections(t *testing.T) {
230230
{ // 17
231231
name: "branches-refgroup",
232232
args: []string{"--refgroup=mygroup"},
233-
config: [][2]string{
233+
config: []git.ConfigEntry{
234234
{"refgroup.mygroup.include", "refs/heads"},
235235
},
236236
},
237237
{ // 18
238238
name: "combination-refgroup",
239239
args: []string{"--refgroup=mygroup"},
240-
config: [][2]string{
240+
config: []git.ConfigEntry{
241241
{"refgroup.mygroup.include", "refs/heads"},
242242
{"refgroup.mygroup.include", "refs/tags"},
243243
{"refgroup.mygroup.exclude", "refs/heads/foo"},
@@ -262,8 +262,8 @@ func TestRefSelections(t *testing.T) {
262262

263263
path := clonePath
264264

265-
for _, c := range p.config {
266-
testutils.ConfigAdd(t, path, c[0], c[1])
265+
for _, e := range p.config {
266+
testutils.ConfigAdd(t, path, e.Key, e.Value)
267267
}
268268

269269
args := []string{"--show-refs", "--no-progress", "--json", "--json-version=2"}

0 commit comments

Comments
 (0)