MCPcopy
hub / github.com/Masterminds/squirrel / TestWherePartString

Function TestWherePartString

where_test.go:39–43  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

37}
38
39func TestWherePartString(t *testing.T) {
40 sql, args, _ := newWherePart("x = ?", 1).ToSql()
41 assert.Equal(t, "x = ?", sql)
42 assert.Equal(t, []interface{}{1}, args)
43}
44
45func TestWherePartMap(t *testing.T) {
46 test := func(pred interface{}) {

Callers

nothing calls this directly

Calls 2

newWherePartFunction · 0.85
ToSqlMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…