Skip to content
This repository was archived by the owner on Jan 28, 2021. It is now read-only.

Commit 09df997

Browse files
author
Juanjo Alvarez
committed
Remove redundant type declarations
Signed-off-by: Juanjo Alvarez <[email protected]>
1 parent efe4bba commit 09df997

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

mem/table_test.go

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -151,24 +151,24 @@ var tests = []struct {
151151
},
152152
indexColumns: []string{"col1", "col3"},
153153
expectedKeyValues: []*indexKeyValue{
154-
&indexKeyValue{sql.NewRow("a", int64(100)), &indexValue{Key: "0", Pos: 0}},
155-
&indexKeyValue{sql.NewRow("c", int64(100)), &indexValue{Key: "0", Pos: 1}},
156-
&indexKeyValue{sql.NewRow("e", int64(200)), &indexValue{Key: "0", Pos: 2}},
157-
&indexKeyValue{sql.NewRow("b", int64(100)), &indexValue{Key: "1", Pos: 0}},
158-
&indexKeyValue{sql.NewRow("d", int64(200)), &indexValue{Key: "1", Pos: 1}},
159-
&indexKeyValue{sql.NewRow("f", int64(200)), &indexValue{Key: "1", Pos: 2}},
154+
{sql.NewRow("a", int64(100)), &indexValue{Key: "0", Pos: 0}},
155+
{sql.NewRow("c", int64(100)), &indexValue{Key: "0", Pos: 1}},
156+
{sql.NewRow("e", int64(200)), &indexValue{Key: "0", Pos: 2}},
157+
{sql.NewRow("b", int64(100)), &indexValue{Key: "1", Pos: 0}},
158+
{sql.NewRow("d", int64(200)), &indexValue{Key: "1", Pos: 1}},
159+
{sql.NewRow("f", int64(200)), &indexValue{Key: "1", Pos: 2}},
160160
},
161161
lookup: &dummyLookup{
162162
values: map[string][]*indexValue{
163-
"0": []*indexValue{
164-
&indexValue{Key: "0", Pos: 0},
165-
&indexValue{Key: "0", Pos: 1},
166-
&indexValue{Key: "0", Pos: 2},
163+
"0": {
164+
{Key: "0", Pos: 0},
165+
{Key: "0", Pos: 1},
166+
{Key: "0", Pos: 2},
167167
},
168-
"1": []*indexValue{
169-
&indexValue{Key: "1", Pos: 0},
170-
&indexValue{Key: "1", Pos: 1},
171-
&indexValue{Key: "1", Pos: 2},
168+
"1": {
169+
{Key: "1", Pos: 0},
170+
{Key: "1", Pos: 1},
171+
{Key: "1", Pos: 2},
172172
},
173173
},
174174
},

0 commit comments

Comments
 (0)