TestLiteralValuePooling tests LiteralValue pooling
(t *testing.T)
| 659 | |
| 660 | // TestLiteralValuePooling tests LiteralValue pooling |
| 661 | func TestLiteralValuePooling(t *testing.T) { |
| 662 | t.Run("get and put literal value", func(t *testing.T) { |
| 663 | lit := GetLiteralValue() |
| 664 | lit.Value = "test_value" |
| 665 | lit.Type = "string" |
| 666 | PutLiteralValue(lit) |
| 667 | }) |
| 668 | |
| 669 | t.Run("nil literal value", func(t *testing.T) { |
| 670 | PutLiteralValue(nil) // Should not panic |
| 671 | }) |
| 672 | } |
| 673 | |
| 674 | // TestOrderByExpressionChildren tests OrderByExpression.Children() |
| 675 | func TestOrderByExpressionChildren(t *testing.T) { |
nothing calls this directly
no test coverage detected