MCPcopy
hub / github.com/dropbox/godropbox / TestEqExpr

Method TestEqExpr

database/sqlbuilder/expression_test.go:204–214  ·  view source on GitHub ↗
(c *gc.C)

Source from the content-addressed store, hash-verified

202}
203
204func (s *ExprSuite) TestEqExpr(c *gc.C) {
205 expr := EqL(table1Col1, 321)
206
207 buf := &bytes.Buffer{}
208
209 err := expr.SerializeSql(buf)
210 c.Assert(err, gc.IsNil)
211
212 sql := buf.String()
213 c.Assert(sql, gc.Equals, "`table1`.`col1`=321")
214}
215
216func (s *ExprSuite) TestEqExprNilLHS(c *gc.C) {
217 expr := EqL(table1Col1, nil)

Callers

nothing calls this directly

Calls 3

EqLFunction · 0.85
SerializeSqlMethod · 0.65
StringMethod · 0.65

Tested by

no test coverage detected