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

Function TestSequencePool_RoundTrip

pkg/sql/ast/ast_sequence_test.go:158–174  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

156}
157
158func TestSequencePool_RoundTrip(t *testing.T) {
159 s := ast.NewCreateSequenceStatement()
160 if s == nil {
161 t.Fatal("NewCreateSequenceStatement() returned nil")
162 }
163 s.Name = &ast.Identifier{Name: "test"}
164 ast.ReleaseCreateSequenceStatement(s)
165
166 s2 := ast.NewCreateSequenceStatement()
167 if s2 == nil {
168 t.Fatal("second NewCreateSequenceStatement() returned nil")
169 }
170 if s2.Name != nil {
171 t.Error("expected Name to be nil after release (pool zero-reset)")
172 }
173 ast.ReleaseCreateSequenceStatement(s2)
174}
175
176func TestSelectStatement_ConnectBy_SQLOrder(t *testing.T) {
177 limit := 10

Callers

nothing calls this directly

Calls 3

ErrorMethod · 0.45

Tested by

no test coverage detected