Skip to content

Commit

Permalink
Remove unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
joechenrh committed Sep 20, 2024
1 parent 9ca24d4 commit 803f379
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions br/pkg/restore/ingestrec/ingest_recorder_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ func TestAddIngestRecorder(t *testing.T) {
[]*model.IndexInfo{
getIndex(1, []string{"x", "y"}),
},
json.RawMessage(`[1, "a", null, false]`),
json.RawMessage(`[1, false, [], false]`),
), false)
require.NoError(t, err)
f, cnt := hasOneItem(1, "%n,%n", []any{"x", "y"})
Expand All @@ -256,7 +256,7 @@ func TestAddIngestRecorder(t *testing.T) {
[]*model.IndexInfo{
getIndex(1, []string{"x", "y"}),
},
json.RawMessage(`[1, "a", null, false]`),
json.RawMessage(`[1, false, [], false]`),
), false)
require.NoError(t, err)
f, cnt := hasOneItem(1, "%n,%n", []any{"x", "y"})
Expand All @@ -277,7 +277,7 @@ func TestAddIngestRecorder(t *testing.T) {
[]*model.IndexInfo{
getIndex(1, []string{"x", "y"}),
},
json.RawMessage(`[1, "a", null, false]`),
json.RawMessage(`[1, false, [], false]`),
), true)
require.NoError(t, err)
f, cnt := hasOneItem(1, "%n,%n", []any{"x", "y"})
Expand Down Expand Up @@ -375,7 +375,7 @@ func TestIndexesKind(t *testing.T) {
[]*model.IndexInfo{
getIndex(1, []string{"x"}),
},
json.RawMessage(`[1, "a", nil, false]`),
json.RawMessage(`[1, false, [], false]`),
), false)
require.NoError(t, err)
err = recorder.UpdateIndexInfo(infoSchema)
Expand Down Expand Up @@ -472,7 +472,7 @@ func TestRewriteTableID(t *testing.T) {
[]*model.IndexInfo{
getIndex(1, []string{"x", "y"}),
},
json.RawMessage(`[1, "a", nil, false]`),
json.RawMessage(`[1, false, [], false]`),
), false)
require.NoError(t, err)
err = recorder.UpdateIndexInfo(infoSchema)
Expand Down

0 comments on commit 803f379

Please sign in to comment.