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

Function TestNotLikeToSql

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

Source from the content-addressed store, hash-verified

350}
351
352func TestNotLikeToSql(t *testing.T) {
353 b := NotLike{"name": "%irrel"}
354 sql, args, err := b.ToSql()
355 assert.NoError(t, err)
356
357 expectedSql := "name NOT LIKE ?"
358 assert.Equal(t, expectedSql, sql)
359
360 expectedArgs := []interface{}{"%irrel"}
361 assert.Equal(t, expectedArgs, args)
362}
363
364func TestILikeToSql(t *testing.T) {
365 b := ILike{"name": "sq%"}

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…