TestPutIdentifierWithContent tests returning Identifiers to pool
(t *testing.T)
| 606 | |
| 607 | // TestPutIdentifierWithContent tests returning Identifiers to pool |
| 608 | func TestPutIdentifierWithContent(t *testing.T) { |
| 609 | t.Run("simple identifier", func(t *testing.T) { |
| 610 | id := GetIdentifier() |
| 611 | id.Name = "column_name" |
| 612 | PutIdentifier(id) |
| 613 | }) |
| 614 | |
| 615 | t.Run("nil identifier", func(t *testing.T) { |
| 616 | PutIdentifier(nil) // Should not panic |
| 617 | }) |
| 618 | } |
| 619 | |
| 620 | // TestPutBinaryExpressionWithContent tests returning BinaryExpressions to pool |
| 621 | func TestPutBinaryExpressionWithContent(t *testing.T) { |
nothing calls this directly
no test coverage detected