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

Function TestPutExpression

pkg/sql/ast/ast_test.go:177–192  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

175}
176
177func TestPutExpression(t *testing.T) {
178 // Test putting nil expression
179 PutExpression(nil)
180
181 // Test putting Identifier
182 ident := &Identifier{Name: "test"}
183 PutExpression(ident)
184
185 // Test putting BinaryExpression
186 binExpr := &BinaryExpression{
187 Left: &Identifier{Name: "id"},
188 Operator: "=",
189 Right: &Identifier{Name: "1"},
190 }
191 PutExpression(binExpr)
192}

Callers

nothing calls this directly

Calls 1

PutExpressionFunction · 0.85

Tested by

no test coverage detected