Skip to content

Commit

Permalink
update operator tests
Browse files Browse the repository at this point in the history
Signed-off-by: Andres Taylor <[email protected]>
  • Loading branch information
systay committed Nov 2, 2022
1 parent ad5000a commit 079bc33
Show file tree
Hide file tree
Showing 2 changed files with 491 additions and 303 deletions.
3 changes: 3 additions & 0 deletions go/vt/vtgate/planbuilder/operators/operator_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,9 @@ func testString(op interface{}) string { // TODO
assignments = append(assignments, fmt.Sprintf("\t%s = %s", k, sqlparser.String(op.Assignments[k])))
}
return fmt.Sprintf("Update {\n\t%s\nassignments:\n%s\n}", tbl, strings.Join(assignments, "\n"))
case *Horizon:
src := indent(testString(op.Source))
return fmt.Sprintf("Horizon {\n\tQuery: \"%s\"\n\tInner:%s\n}", sqlparser.String(op.Select), src)
}
panic(fmt.Sprintf("%T", op))
}
Expand Down
Loading

0 comments on commit 079bc33

Please sign in to comment.