(t *testing.T)
| 117 | } |
| 118 | |
| 119 | func TestReleaseStatements(t *testing.T) { |
| 120 | stmts := []Statement{ |
| 121 | &SelectStatement{Columns: []Expression{&Identifier{Name: "a"}}}, |
| 122 | &InsertStatement{TableName: "t"}, |
| 123 | &UpdateStatement{TableName: "t", Assignments: []UpdateExpression{{Column: &Identifier{Name: "x"}, Value: &LiteralValue{Value: "1"}}}}, |
| 124 | &DeleteStatement{TableName: "t"}, |
| 125 | } |
| 126 | ReleaseStatements(stmts) // should not panic |
| 127 | } |
nothing calls this directly
no test coverage detected