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

Function TestDeleteWithQuery

delete_test.go:73–81  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

71}
72
73func TestDeleteWithQuery(t *testing.T) {
74 db := &DBStub{}
75 b := Delete("test").Where("id=55").Suffix("RETURNING path").RunWith(db)
76
77 expectedSql := "DELETE FROM test WHERE id=55 RETURNING path"
78 b.Query()
79
80 assert.Equal(t, expectedSql, db.LastQuerySql)
81}

Callers

nothing calls this directly

Calls 5

DeleteFunction · 0.85
QueryMethod · 0.65
RunWithMethod · 0.45
SuffixMethod · 0.45
WhereMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…