(t *testing.T)
| 26 | } |
| 27 | |
| 28 | func TestAtp(t *testing.T) { |
| 29 | sql := "x = ? AND y = ?" |
| 30 | s, _ := AtP.ReplacePlaceholders(sql) |
| 31 | assert.Equal(t, "x = @p1 AND y = @p2", s) |
| 32 | } |
| 33 | |
| 34 | func TestPlaceholders(t *testing.T) { |
| 35 | assert.Equal(t, Placeholders(2), "?,?") |
nothing calls this directly
no test coverage detected
searching dependent graphs…