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

Function TestStatementBuilder

statement_test.go:11–17  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

9)
10
11func TestStatementBuilder(t *testing.T) {
12 db := &DBStub{}
13 sb := StatementBuilder.RunWith(db)
14
15 sb.Select("test").Exec()
16 assert.Equal(t, "SELECT test", db.LastExecSql)
17}
18
19func TestStatementBuilderPlaceholderFormat(t *testing.T) {
20 db := &DBStub{}

Callers

nothing calls this directly

Calls 3

ExecMethod · 0.65
RunWithMethod · 0.45
SelectMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…