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

Function TestDebugSqlizer

squirrel_test.go:187–191  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

185}
186
187func TestDebugSqlizer(t *testing.T) {
188 sqlizer := Expr("x = ? AND y = ? AND z = '??'", 1, "text")
189 expectedDebug := "x = '1' AND y = 'text' AND z = '?'"
190 assert.Equal(t, expectedDebug, DebugSqlizer(sqlizer))
191}
192
193func TestDebugSqlizerErrors(t *testing.T) {
194 errorMsg := DebugSqlizer(Expr("x = ?", 1, 2)) // Not enough placeholders

Callers

nothing calls this directly

Calls 2

ExprFunction · 0.85
DebugSqlizerFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…