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

Function TestNotEqToSql

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

Source from the content-addressed store, hash-verified

60}
61
62func TestNotEqToSql(t *testing.T) {
63 b := NotEq{"id": 1}
64 sql, args, err := b.ToSql()
65 assert.NoError(t, err)
66
67 expectedSql := "id <> ?"
68 assert.Equal(t, expectedSql, sql)
69
70 expectedArgs := []interface{}{1}
71 assert.Equal(t, expectedArgs, args)
72}
73
74func TestEqNotInToSql(t *testing.T) {
75 b := NotEq{"id": []int{1, 2, 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…