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

Function TestSelectWithRemoveLimit

select_test.go:198–203  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

196}
197
198func TestSelectWithRemoveLimit(t *testing.T) {
199 sql, _, err := Select("*").From("foo").Limit(10).RemoveLimit().ToSql()
200
201 assert.NoError(t, err)
202 assert.Equal(t, "SELECT * FROM foo", sql)
203}
204
205func TestSelectWithRemoveOffset(t *testing.T) {
206 sql, _, err := Select("*").From("foo").Offset(10).RemoveOffset().ToSql()

Callers

nothing calls this directly

Calls 5

SelectFunction · 0.85
RemoveLimitMethod · 0.80
ToSqlMethod · 0.65
LimitMethod · 0.45
FromMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…