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

Function TestExprEscaped

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

Source from the content-addressed store, hash-verified

410}
411
412func TestExprEscaped(t *testing.T) {
413 b := Expr("count(??)", Expr("x"))
414 sql, args, err := b.ToSql()
415 assert.NoError(t, err)
416
417 expectedSql := "count(??)"
418 assert.Equal(t, expectedSql, sql)
419
420 expectedArgs := []interface{}{Expr("x")}
421 assert.Equal(t, expectedArgs, args)
422}
423
424func TestExprRecursion(t *testing.T) {
425 {

Callers

nothing calls this directly

Calls 2

ExprFunction · 0.85
ToSqlMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…