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

Function TestColon

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

Source from the content-addressed store, hash-verified

20}
21
22func TestColon(t *testing.T) {
23 sql := "x = ? AND y = ?"
24 s, _ := Colon.ReplacePlaceholders(sql)
25 assert.Equal(t, "x = :1 AND y = :2", s)
26}
27
28func TestAtp(t *testing.T) {
29 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…