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

Function compareNode

rel/sql_test.go:137–143  ·  view source on GitHub ↗
(t *testing.T, n1, n2 expr.Node)

Source from the content-addressed store, hash-verified

135}
136
137func compareNode(t *testing.T, n1, n2 expr.Node) {
138 if n1 == nil && n2 == nil {
139 return
140 }
141 rv1, rv2 := reflect.ValueOf(n1), reflect.ValueOf(n2)
142 assert.True(t, rv1.Kind() == rv2.Kind(), "kinds match: %T %T", n1, n2)
143}
144
145func TestSqlRewriteTemp(t *testing.T) {
146

Callers 2

compareFromFunction · 0.85
compareAstColumnFunction · 0.85

Calls 1

KindMethod · 0.65

Tested by

no test coverage detected