MCPcopy Index your code
hub / github.com/dropbox/godropbox / TestInExprEmptyList

Method TestInExprEmptyList

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

Source from the content-addressed store, hash-verified

314}
315
316func (s *ExprSuite) TestInExprEmptyList(c *gc.C) {
317 values := []int32{}
318 expr := In(table1Col1, values)
319
320 buf := &bytes.Buffer{}
321
322 err := expr.SerializeSql(buf)
323 c.Assert(err, gc.IsNil)
324
325 sql := buf.String()
326 c.Assert(sql, gc.Equals, "FALSE")
327}
328
329func (s *ExprSuite) TestSqlFuncExprNilInArgList(c *gc.C) {
330 expr := SqlFunc("rand", nil)

Callers

nothing calls this directly

Calls 3

InFunction · 0.85
SerializeSqlMethod · 0.65
StringMethod · 0.65

Tested by

no test coverage detected