Skip to content

Commit

Permalink
more lint fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
EpsilonPrime committed Nov 20, 2024
1 parent 8f12257 commit fd45263
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions plan/plan_builder_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ func TestEmitEmptyPlan(t *testing.T) {
b := plan.NewBuilderDefault()
root := b.NamedScan([]string{"test"}, baseSchema)
err := root.ChangeMapping([]int32{})
require.NoError(t, err)
_, err = b.Plan(root, []string{})
require.NoError(t, err)

Expand All @@ -108,6 +109,8 @@ func TestBuildEmitOutOfRangePlan(t *testing.T) {
b := plan.NewBuilderDefault()
_, err := b.NamedScanRemap([]string{"test"},
baseSchema, []int32{2})
assert.ErrorIs(t, err, substraitgo.ErrInvalidRel)
assert.ErrorContains(t, err, "output mapping index out of range")

b = plan.NewBuilderDefault()
root := b.NamedScan([]string{"test"}, baseSchema)
Expand Down

0 comments on commit fd45263

Please sign in to comment.