MCPcopy Index your code
hub / github.com/Masterminds/squirrel / TestGtToSql

Function TestGtToSql

expr_test.go:146–156  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

144}
145
146func TestGtToSql(t *testing.T) {
147 b := Gt{"id": 1}
148 sql, args, err := b.ToSql()
149 assert.NoError(t, err)
150
151 expectedSql := "id > ?"
152 assert.Equal(t, expectedSql, sql)
153
154 expectedArgs := []interface{}{1}
155 assert.Equal(t, expectedArgs, args)
156}
157
158func TestGtOrEqToSql(t *testing.T) {
159 b := GtOrEq{"id": 1}

Callers

nothing calls this directly

Calls 1

ToSqlMethod · 0.95

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…