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

Function TestSqlEqOrder

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

Source from the content-addressed store, hash-verified

386}
387
388func TestSqlEqOrder(t *testing.T) {
389 b := Eq{"a": 1, "b": 2, "c": 3}
390 sql, args, err := b.ToSql()
391 assert.NoError(t, err)
392
393 expectedSql := "a = ? AND b = ? AND c = ?"
394 assert.Equal(t, expectedSql, sql)
395
396 expectedArgs := []interface{}{1, 2, 3}
397 assert.Equal(t, expectedArgs, args)
398}
399
400func TestSqlLtOrder(t *testing.T) {
401 b := Lt{"a": 1, "b": 2, "c": 3}

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…