MCPcopy Create free account
hub / github.com/araddon/qlbridge / compareAstColumn

Function compareAstColumn

rel/sql_test.go:111–116  ·  view source on GitHub ↗
(t *testing.T, colLeft, colRight *rel.Column)

Source from the content-addressed store, hash-verified

109}
110
111func compareAstColumn(t *testing.T, colLeft, colRight *rel.Column) {
112 assert.True(t, colLeft.As == colRight.As, "As: '%v' != '%v'", colLeft.As, colRight.As)
113 assert.True(t, colLeft.Comment == colRight.Comment, "Comments? '%s' '%s'", colLeft.Comment, colRight.Comment)
114 compareNode(t, colLeft.Guard, colRight.Guard)
115 compareNode(t, colLeft.Expr, colRight.Expr)
116}
117
118func compareAst(t *testing.T, in1, in2 rel.SqlStatement) {
119 switch s1 := in1.(type) {

Callers 1

compareAstFunction · 0.85

Calls 1

compareNodeFunction · 0.85

Tested by

no test coverage detected