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

Function TestInsertBuilderToSqlErr

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

Source from the content-addressed store, hash-verified

30}
31
32func TestInsertBuilderToSqlErr(t *testing.T) {
33 _, _, err := Insert("").Values(1).ToSql()
34 assert.Error(t, err)
35
36 _, _, err = Insert("x").ToSql()
37 assert.Error(t, err)
38}
39
40func TestInsertBuilderMustSql(t *testing.T) {
41 defer func() {

Callers

nothing calls this directly

Calls 3

InsertFunction · 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…