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

Function TestReleaseStatements

pkg/sql/ast/pool_coverage_test.go:119–127  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

117}
118
119func 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}

Callers

nothing calls this directly

Calls 1

ReleaseStatementsFunction · 0.85

Tested by

no test coverage detected