(t *testing.T)
| 185 | } |
| 186 | |
| 187 | func 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 | |
| 193 | func TestDebugSqlizerErrors(t *testing.T) { |
| 194 | errorMsg := DebugSqlizer(Expr("x = ?", 1, 2)) // Not enough placeholders |
nothing calls this directly
no test coverage detected
searching dependent graphs…