Skip to content

Commit

Permalink
gofumpt
Browse files Browse the repository at this point in the history
Signed-off-by: Tim Vaillancourt <[email protected]>
  • Loading branch information
timvaillancourt committed May 16, 2024
1 parent 45c854b commit 3ac2297
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions go/vt/vtgate/executor_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -493,7 +493,6 @@ func TestExecutorShowColumns(t *testing.T) {
sbclookup.BatchQueries = nil
})
}

}

func TestExecutorShow(t *testing.T) {
Expand Down Expand Up @@ -1827,7 +1826,6 @@ func TestGetPlanNormalized(t *testing.T) {
}

func TestGetPlanPriority(t *testing.T) {

testCases := []struct {
name string
sql string
Expand Down Expand Up @@ -1855,7 +1853,8 @@ func TestGetPlanPriority(t *testing.T) {
assert.NoError(t, err)
crticalityFromStatement, _ := sqlparser.GetPriorityFromStatement(stmt)

_, err = r.getPlan(context.Background(), vCursor, testCase.sql, stmt, makeComments("/* some comment */"), map[string]*querypb.BindVariable{}, nil, true, logStats)
_, err = r.getPlan(context.Background(), vCursor, testCase.sql, makeComments("/* some comment */"), map[string]*querypb.BindVariable{},
NewSafeSession(nil), logStats)
if testCase.expectedError != nil {
assert.ErrorIs(t, err, testCase.expectedError)
} else {
Expand All @@ -1865,7 +1864,6 @@ func TestGetPlanPriority(t *testing.T) {
}
})
}

}

func TestPassthroughDDL(t *testing.T) {
Expand Down Expand Up @@ -2166,9 +2164,8 @@ func TestExecutorExplain(t *testing.T) {

result, err = executorExec(executor, "explain format = vitess select 42", bindVars)
require.NoError(t, err)
expected :=
`[[VARCHAR("Projection") VARCHAR("") VARCHAR("") VARCHAR("") VARCHAR("UNKNOWN") VARCHAR("")] ` +
`[VARCHAR("└─ SingleRow") VARCHAR("") VARCHAR("") VARCHAR("") VARCHAR("UNKNOWN") VARCHAR("")]]`
expected := `[[VARCHAR("Projection") VARCHAR("") VARCHAR("") VARCHAR("") VARCHAR("UNKNOWN") VARCHAR("")] ` +
`[VARCHAR("└─ SingleRow") VARCHAR("") VARCHAR("") VARCHAR("") VARCHAR("UNKNOWN") VARCHAR("")]]`
require.Equal(t,
`[[VARCHAR("Projection") VARCHAR("") VARCHAR("") VARCHAR("") VARCHAR("UNKNOWN") VARCHAR("")] `+
`[VARCHAR("└─ SingleRow") VARCHAR("") VARCHAR("") VARCHAR("") VARCHAR("UNKNOWN") VARCHAR("")]]`,
Expand Down

0 comments on commit 3ac2297

Please sign in to comment.