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

Function TestNotILikeToSql

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

Source from the content-addressed store, hash-verified

374}
375
376func TestNotILikeToSql(t *testing.T) {
377 b := NotILike{"name": "sq%"}
378 sql, args, err := b.ToSql()
379 assert.NoError(t, err)
380
381 expectedSql := "name NOT ILIKE ?"
382 assert.Equal(t, expectedSql, sql)
383
384 expectedArgs := []interface{}{"sq%"}
385 assert.Equal(t, expectedArgs, args)
386}
387
388func TestSqlEqOrder(t *testing.T) {
389 b := Eq{"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…