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

Function TestInsertBuilderReplace

insert_test.go:103–112  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

101}
102
103func TestInsertBuilderReplace(t *testing.T) {
104 b := Replace("table").Values(1)
105
106 expectedSQL := "REPLACE INTO table VALUES (?)"
107
108 sql, _, err := b.ToSql()
109 assert.NoError(t, err)
110
111 assert.Equal(t, expectedSQL, sql)
112}

Callers

nothing calls this directly

Calls 3

ReplaceFunction · 0.85
ValuesMethod · 0.80
ToSqlMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…