(t *testing.T)
| 156 | } |
| 157 | |
| 158 | func 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 | |
| 176 | func TestSelectStatement_ConnectBy_SQLOrder(t *testing.T) { |
| 177 | limit := 10 |
nothing calls this directly
no test coverage detected