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

Function TestNotEqInEmptyToSql

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

Source from the content-addressed store, hash-verified

96}
97
98func TestNotEqInEmptyToSql(t *testing.T) {
99 b := NotEq{"id": []int{}}
100 sql, args, err := b.ToSql()
101 assert.NoError(t, err)
102
103 expectedSql := "(1=1)"
104 assert.Equal(t, expectedSql, sql)
105
106 expectedArgs := []interface{}{}
107 assert.Equal(t, expectedArgs, args)
108}
109
110func TestEqBytesToSql(t *testing.T) {
111 b := Eq{"id": []byte("test")}

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…