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

Function TestSetLimit_Negative

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

Source from the content-addressed store, hash-verified

79}
80
81func TestSetLimit_Negative(t *testing.T) {
82 stmt := mustParse(t, "SELECT * FROM users")
83 err := Apply(stmt, SetLimit(-1))
84 if err == nil {
85 t.Fatal("expected error for negative limit")
86 }
87}
88
89func TestSetLimit_NegativeLarge(t *testing.T) {
90 stmt := mustParse(t, "SELECT * FROM users")

Callers

nothing calls this directly

Calls 3

mustParseFunction · 0.85
ApplyFunction · 0.85
SetLimitFunction · 0.85

Tested by

no test coverage detected