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

Function TestInsertBuilderNoRunner

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

Source from the content-addressed store, hash-verified

67}
68
69func TestInsertBuilderNoRunner(t *testing.T) {
70 b := Insert("test").Values(1)
71
72 _, err := b.Exec()
73 assert.Equal(t, RunnerNotSet, err)
74}
75
76func TestInsertBuilderSetMap(t *testing.T) {
77 b := Insert("table").SetMap(Eq{"field1": 1, "field2": 2, "field3": 3})

Callers

nothing calls this directly

Calls 3

InsertFunction · 0.85
ValuesMethod · 0.80
ExecMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…