MCPcopy Create free account
hub / github.com/ajitpratap0/GoSQLX / TestAddSetClause_WithNumericValue

Function TestAddSetClause_WithNumericValue

pkg/transform/set_test.go:160–170  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

158}
159
160func TestAddSetClause_WithNumericValue(t *testing.T) {
161 stmt := mustParse(t, "UPDATE counters SET total = 0")
162
163 err := Apply(stmt, AddSetClause("total", "42"))
164 if err != nil {
165 t.Fatalf("AddSetClause with numeric: %v", err)
166 }
167
168 out := format(stmt)
169 assertContains(t, out, "42")
170}

Callers

nothing calls this directly

Calls 6

mustParseFunction · 0.85
ApplyFunction · 0.85
AddSetClauseFunction · 0.85
assertContainsFunction · 0.85
formatFunction · 0.70
FatalfMethod · 0.65

Tested by

no test coverage detected