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

Function TestUpdateBuilderMustSql

update_test.go:50–57  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

48}
49
50func TestUpdateBuilderMustSql(t *testing.T) {
51 defer func() {
52 if r := recover(); r == nil {
53 t.Errorf("TestUpdateBuilderMustSql should have panicked!")
54 }
55 }()
56 Update("").MustSql()
57}
58
59func TestUpdateBuilderPlaceholders(t *testing.T) {
60 b := Update("test").SetMap(Eq{"x": 1, "y": 2})

Callers

nothing calls this directly

Calls 2

UpdateFunction · 0.85
MustSqlMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…