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

Method TestCValidLookup

database/sqlbuilder/table_test.go:26–36  ·  view source on GitHub ↗
(c *gc.C)

Source from the content-addressed store, hash-verified

24}
25
26func (s *TableSuite) TestCValidLookup(c *gc.C) {
27 col := table1.C("col1")
28
29 buf := &bytes.Buffer{}
30
31 err := col.SerializeSql(buf)
32 c.Assert(err, gc.IsNil)
33
34 sql := buf.String()
35 c.Assert(sql, gc.Equals, "`table1`.`col1`")
36}
37
38func (s *TableSuite) TestCInvalidLookup(c *gc.C) {
39 col := table1.C("foo")

Callers

nothing calls this directly

Calls 3

CMethod · 0.80
SerializeSqlMethod · 0.65
StringMethod · 0.65

Tested by

no test coverage detected