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

Function compareFroms

rel/sql_test.go:95–100  ·  view source on GitHub ↗

* func comparePb(t *testing.T, sl, sr SqlStatement) { lb, err := sl.ToPB() assert.True(t, err == nil, "Should not error on ToBP but got err=%v for %s", err, sl) rb, err := sr.ToPB() assert.True(t, err == nil, "Should not error on ToBP but got err=%v for %s", err, sr) assert.True(t, len(lb) > 0

(t *testing.T, fl, fr []*rel.SqlSource)

Source from the content-addressed store, hash-verified

93*/
94
95func compareFroms(t *testing.T, fl, fr []*rel.SqlSource) {
96 assert.True(t, len(fl) == len(fr), "must have same froms")
97 for i, f := range fl {
98 compareFrom(t, f, fr[i])
99 }
100}
101
102func compareFrom(t *testing.T, fl, fr *rel.SqlSource) {
103 assert.True(t, fl.Name == fr.Name)

Callers 1

compareAstFunction · 0.85

Calls 1

compareFromFunction · 0.85

Tested by

no test coverage detected