MCPcopy
hub / github.com/Masterminds/squirrel / TestAtp

Function TestAtp

placeholder_test.go:28–32  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

26}
27
28func 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
34func TestPlaceholders(t *testing.T) {
35 assert.Equal(t, Placeholders(2), "?,?")

Callers

nothing calls this directly

Calls 1

ReplacePlaceholdersMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…