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

Function TestDollar

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

Source from the content-addressed store, hash-verified

14}
15
16func TestDollar(t *testing.T) {
17 sql := "x = ? AND y = ?"
18 s, _ := Dollar.ReplacePlaceholders(sql)
19 assert.Equal(t, "x = $1 AND y = $2", s)
20}
21
22func TestColon(t *testing.T) {
23 sql := "x = ? AND y = ?"

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…