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

Function TestEqBytesToSql

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

Source from the content-addressed store, hash-verified

108}
109
110func TestEqBytesToSql(t *testing.T) {
111 b := Eq{"id": []byte("test")}
112 sql, args, err := b.ToSql()
113 assert.NoError(t, err)
114
115 expectedSql := "id = ?"
116 assert.Equal(t, expectedSql, sql)
117
118 expectedArgs := []interface{}{[]byte("test")}
119 assert.Equal(t, expectedArgs, args)
120}
121
122func TestLtToSql(t *testing.T) {
123 b := Lt{"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…