Skip to content

Commit

Permalink
test: update test expectations
Browse files Browse the repository at this point in the history
Signed-off-by: Andres Taylor <[email protected]>
  • Loading branch information
systay committed Feb 28, 2025
1 parent 5033886 commit d901232
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -382,8 +382,8 @@ func TestVisitableRewrite(t *testing.T) {
Pre{visitable},
Pre{leaf},
Post{leaf},
Pre{visitable},
Pre{refContainer},
Post{visitable},
Post{refContainer},
})
}

Expand Down Expand Up @@ -418,6 +418,7 @@ func (tv *rewriteTestVisitor) post(cursor *Cursor) bool {
return true
}
func (tv *rewriteTestVisitor) assertEquals(t *testing.T, expected []step) {
t.Helper()
assertStepsEqual(t, tv.walk, expected)
}

Expand Down
2 changes: 2 additions & 0 deletions go/vt/sqlparser/rewriter_api.go
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,8 @@ type Cursor struct {
current *pathbuilder.ASTPathBuilder
}

// Visitable is the interface that needs to be implemented by all nodes that live outside the `sqlparser` package,
// in order to visit/rewrite/copy_on_rewrite these nodes.
type Visitable interface {
SQLNode
VisitThis() SQLNode
Expand Down

0 comments on commit d901232

Please sign in to comment.