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

Function TestSetOffset_Negative

pkg/transform/limit_test.go:121–127  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

119}
120
121func TestSetOffset_Negative(t *testing.T) {
122 stmt := mustParse(t, "SELECT * FROM users")
123 err := Apply(stmt, SetOffset(-5))
124 if err == nil {
125 t.Fatal("expected error for negative offset")
126 }
127}

Callers

nothing calls this directly

Calls 3

mustParseFunction · 0.85
ApplyFunction · 0.85
SetOffsetFunction · 0.85

Tested by

no test coverage detected